LinuxSteve
03-09-2002, 04:20 PM
Hi, I have a few questions I hope some kind soul can help me out with. I'd appreciate it greatly.
I've just made the move from W!nd*ws 2000 to Mandrake 8.1 on 2 of the 3 machines in a local network. All 3 machines are assigned dynamic IP addresses via DHCP from my ISP. This works great; they can all three see the outside world.
First question: The 2 Linux boxes cannot see either other nor the 'doze PC unless I add the dynamic IP addresses of the other machines by hand to /etc/hosts. But that's a PITA, because each time I power on or off a machine, it might get a different IP assignment from my ISP. I don't want to have to edit /etc/hosts by hand each time. Also, as far as I understand masquarading, I don't want to be using that, because all 3 machines can talk directly through a little 4 port hub to my DSL modem and on to the outside world. I don't want all IP traffic routed through one machine.
So my question is: How can I have the Linux boxes automatically detect the IP address of the other machines on the local network? The 'doze box seems to do this automatically somehow - it can ping the two Linux machines without ever having been told their IP addresses, but vice versa doesn't work.
Second question: each time I reboot my Linux boxes, something clobbers /etc/hosts :-). But I have things in /etc/hosts that I wanted to keep, such as: "127.0.0.1 ad.doubleclick.net". After a reboot, the hostname in the line above gets replaced with localhost. How can I find what is changing these lines on a reboot, and make it stop?
Thanks muchly!
New Linux Dude Steve
I've just made the move from W!nd*ws 2000 to Mandrake 8.1 on 2 of the 3 machines in a local network. All 3 machines are assigned dynamic IP addresses via DHCP from my ISP. This works great; they can all three see the outside world.
First question: The 2 Linux boxes cannot see either other nor the 'doze PC unless I add the dynamic IP addresses of the other machines by hand to /etc/hosts. But that's a PITA, because each time I power on or off a machine, it might get a different IP assignment from my ISP. I don't want to have to edit /etc/hosts by hand each time. Also, as far as I understand masquarading, I don't want to be using that, because all 3 machines can talk directly through a little 4 port hub to my DSL modem and on to the outside world. I don't want all IP traffic routed through one machine.
So my question is: How can I have the Linux boxes automatically detect the IP address of the other machines on the local network? The 'doze box seems to do this automatically somehow - it can ping the two Linux machines without ever having been told their IP addresses, but vice versa doesn't work.
Second question: each time I reboot my Linux boxes, something clobbers /etc/hosts :-). But I have things in /etc/hosts that I wanted to keep, such as: "127.0.0.1 ad.doubleclick.net". After a reboot, the hostname in the line above gets replaced with localhost. How can I find what is changing these lines on a reboot, and make it stop?
Thanks muchly!
New Linux Dude Steve