Now that I have got the system to work, I have performed certain experiments. I used route -del to remove the route 0.0.0.0 192.168.42.2 etc, leaving the 'correct' default in the routing table. This worked perfectly. I tried to set a system using netcfg and netconfig to avoid the duplicate. I failed. It seems that the requirements are not covered properly by the RedHat scripts. It seemed that the system needed to know firstly that all packets had to be directed to the interface eth0 #192.168.42.2, and then, having a route out of the machine, the packets could be dispatched to 10.0.0.1. I also tried to change the IP of the end machine to one in the 10.0.0.0 range, and the results were catastrophic. I note the the use of RedHat is considered not best practice, but for me it has one overwhelming advantage. I have found that on old hardware I can always load RH 7, and SuSE 8.0 invariably fails to boot. Regards Basil Fowler On Tuesday 03 Jun 2003 17:19, Jim Cunning wrote:
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
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com