On Sunday 16 October 2005 11:10 am, Donald D Henson wrote:
There are three linux machines, but only one running 10.0, on my lan. Each machine's /etc/hosts file have all three of:
192.168.100.10 toshiba.site toshiba 192.168.100.20 linux.site linux 192.168.100.30 camino.site camino
The two 9.3 machine's NICs are configured as DHCP. They can access the Internet and can ping in either direction to/from each other. When toshiba is configured as DHCP, toshiba can access the Internet but cannot ping either of the other machines & vice versa. If I change toshiba to fixed IP addresses, I can ping everything on the local network but cannot access the Internet.
If you see any obvious mistakes in there, please let me know. If you have any thoughts on how to proceed, let me know that as well. Any assistance will be sincerely appreciated.
I don't see any obvious mistakes but you are leaving a lot of info out of your emails:
1) If the (non-toshiba machines running 9.3) above are DHCP, why do you know for sure what the IP addresses are?
Because I can ping them using either the hostname or the IP address.
2) If the machines in (1) are DHCP, I don't think they would have the addresses you show.
Concur. But I can still ping them using the static IPs.
3) When you change the toshiba to static IP, do you also set a default gateway? (that's what gets you to the internet)
I thought I was but route -n shows:
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
4) What is the address of your router? (I assume it's 192.168.100.1)
192.168.1.1
If it's 192.168.1.1 *WHY* are you setting up the router to hand out 192.168.100.xx addresses?? This puts the router on a different subnet than the machines and they will not be able to reach the router. In fact, I doubt if it is possible to get the router to do that so there is something fishy about the addresses you are showing. If they are NOT DCHP handed out addresses, then there is a big part of your problem.
5) What static address are you giving your toshiba?
192.168.100.10
Again, *all* of your addresses, whether DHCP or static should be on the same subnet ... i.e. 192.168.1.xx
6) When it is DHCP, have you checked route -n to see how the routing (gateway) is set up?
See above. It looks like my gateway settings are being ignored. Here's what route -n shows on linux (V9.3):
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
Since the machine you are showing here has eth0 on the '100' subnet, it's not going to be able to reach 1.1 on eth0. And you've got eth0 showing both 100.1 and 1.1 above. Compare yours with this: Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 where my router is on 192.168.0.1 and this machine is 192.168.0.3 FORGET about the 100.xx business... just keep to 1.xx as your subnet and I think your problems will go away.