I am pleased to announce that thanks to everyone's help, I have resolved my problem. I doubt if I would ever have solved it without your help. As routing seems to a be a hardy perennial on this list, I would like to summarise the errors and solutions for the benefit of others. On a router machine ip forwarding must be enabled: ie 'cat /proc/sys/net/ipv4/ip_forward' should give '1' and masquerading must be enabled. To check, run 'iptables -t nat -L as root and an entry like Chain POSTROUTING (policy ACCEPT) target prot opt source destination MASQUERADE all -- anywhere anywhere must be present. On the end machine, there must be TWO defaults and gateways. My previous 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 When the line: 0.0.0.0 10.0.0.1 0.0.0.0 UG eth0 was added either manually or with RedHat's GUI netcfg, everything worked perfectly. My error was to believe that there can only be one default route and one gateway. Basil Fowler On Monday 02 Jun 2003 21:03, Anders Johansson wrote:
On Monday 02 June 2003 22.47, Basil Fowler wrote:
The end machine is 192.168.42.2
While I agree that in a working environment the machines should be on the same subnet, for sanity's sake during this investigation, I have given each of my two machines a completely different number to avoid confusion for myself and others :)
Machine 192.168.42.2 has a routing table (given by netstat -rn)
Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.42.0 0.0.0.0 255.255.255.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.42.2 0.0.0.0 UG 0 0 0 eth0
Here's your problem, your default route is localhost. That can never work. You need to set the default route to the 10.0.0.1 machine, however that's done in redhat
manually from the command line it's
route del -net 0.0.0.0 route add default gw 10.0.0.1 dev eth0
I can't say how it's configured in a red hat system
-- 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