Tuesday, June 3 at 3:52pm, Basil Fowler wrote:
On the end machine, there must be TWO defaults and gateways. My previous This is not correct, as Anders already pointed out.
post the routing table for machine 192.168.42.2 was a little distorted, with the lines being wrapped. The correct version is below ( 'metric' and 'ref' columns have been omitted to avoid line wrapping)
192.168.42.0 0.0.0.0 255.255.255.0 U eth0 127.0.0.0 0.0.0.0 255.0.0.0 U lo 0.0.0.0 192.168.42.2 0.0.0.0 UG eth0
You may have something that "works" but it's still not correct. I'm responding because I don't want others on the list to believe everything needs to be the way you worked it out. You should not have the line 0.0.0.0 192.168.42.2 0.0.0.0 UG eth0 in your route table for the end host. This is the default route entry, and the second column is the gateway host address, which must not be the address of the end system. It must be the address of a gateway host, in your case 10.0.0.1. Linux WILL allow you to configure multiple default routes, but this generally makes sense only if you have multiple interfaces, or you are running a routing protocol. On your end host, which appears from your descriptions to have only a single interface, neither having multiple default routes nor running a routing protocol is necessary. Regards, Jim