The subject sounds like apples vs. oranges. On 10.08.2024 09:54, J Leslie Turriff via openSUSE Users wrote:
Long ago (openSUSE 6.3?) when I had only one machine and an analog modem, I set up /etc/hosts to map my IP address; as time went on I added a router, a network printer, an OS-X machine, etc., but my network was small enough that I could manage the devices with /etc/hosts. Currently I have satellite IP routed through a NetGear WiFi router, in which I have assigned the static addresses in my /etc/hosts file, but I want to migrate to the StarLink system that I recently bought. Unfortunately, the StarLink system's built-in router is a Black Box :-( that only supports devices via DHCP.
I do not understand it. Do you mean that if you statically configure the same address (and other parameters) that would have been received via DHCP it will not work? Have you tried it?
(It is already handling a WiFi laptop and several smart phones; the legacy devices on the NetGear router use an Ethernet network.)
My question is, do I just have to use YaST LAN to switch my network setting from Static to DHCP, or are there other changes required? (Both routers use the same 192.168.x.x address range, so it seems to me that just moving the Ethernet cable from one router to the other without assigning a new address ought to work, but there is no way to talk to the StarLink router if there is an address collision with devices it has already assigned.)
My /etc/hosts currently looks like this:
| wd=~ | $ cat /etc/hosts | # | # hosts This file describes a number of hostname-to-address | # mappings for the TCP/IP subsystem. It is mostly | # used at boot time, when no name servers are running. | # On small systems, this file can be used instead of a | # "named" name server. | # Syntax: | # | # IPv4 Address Fully Qualified Hostname Short Hostnames | #------------- ------------------------ ------------------- | 127.0.0.1 localhost | # | 192.168.1.1 grey.sixys.site grey router <== NetGear | 192.168.1.2 pinto.sixys.site pinto desktop1 | 192.168.1.3 philips.sixys.site philips TV | 192.168.1.4 chestnut.sixys.site chestnut desktop2 | 192.168.1.5 black.sixys.site black windows | 192.168.1.6 charcoal.sixys.site charcoal dell | #92.168.1.7 unused | #92.168.1.8 unused | 192.168.1.9 palomino.sixys.site palomino server | 192.168.1.10 buckskin.sixys.site buckskin printer | #92.168.1.11 unused | 192.168.1.12 chrome.sixys.site chrome laptop1 | 192.168.1.13 pinto-foal.sixys.site pinto-foal UPS | 192.168.1.14 toreador.sixys.site toreador laptop2 | # | 192.168.100.1 blueroan.sixys.site blueroan downlink <== ViaSat | # | #============================================================ | # IPv6 Address Hostnames | #------------- --------------------------------------------- | ::1 localhost ipv6-localhost ipv6-loopback | | fe00::0 ipv6-localnet | | ff00::0 ipv6-mcastprefix | ff02::1 ipv6-allnodes | ff02::2 ipv6-allrouters | ff02::3 ipv6-allhosts | # | #============================================================ | # DNS Servers: | # 192.168.1.1 | 99.197.99.99 | 99.196.99.99 | #============================================================ | rc=0 | @01:34:39 leslie@pinto
Leslie -- Platform: Linux Distribution: openSUSE Leap 15.6 - x86_64