On 26-Oct-05 Keith Watson wrote:
From: Ted.Harding@nessie.mcc.ac.uk Sent: 26 October 2005 13:11 5. I now add a default gateway to B
route add -net default gw 192.168.1.1
(this being the IP address of the router itself) and with this setup I can access the web quite freely from machine B.
The other two machines (A and C) each have default gateway B.
However, from neither of the other machines can I access the web at all.
This contrasts, however, with the behaviour when B is used to dial-up using an ordinary phone modem. Kppp does the business, and when it's done there's a default route on B via PPP through interface ppp0 to the outside world.
With this, and default routes on A and C as above, unchanged, all 3 machines can access the web freely.
Hi Ted,
I'm coming into this thread a bit late (and someone may have already suggested this) but have you tried
route add -net default gw 192.168.1.1
on machines A & C?
Regards,
Keith
Thanks for trying, Keith! However, when tried on C just now:
route add -net default gw 192.168.1.1 SIOCADDRT: Network is unreachable
-- not surprising since C (and A) are on Net 192.168.0.* only.
Routing table for C = 192.168.0.7 (similar for A = 192.168.0.1): ---------------------------------------------------------------- Destination Gateway Genmask Flags (blah) Iface 127.0.0.0 * 255.0.0.0 U (blah) lo 192.168.0.0 * 255.255.255.0 U (blah) eth0 default 192.168.0.6 0.0.0.0 UG (blah) eth0 = B
Routing table for B = 192.168.0.6: ---------------------------------- Destination Gateway Genmask Flags (blah) Iface 192.168.2.0 * 255.255.255.0 U (blah) 0 vmnet1 192.168.0.0 * 255.255.255.0 U (blah) 0 eth0 192.168.1.0 * 255.255.255.0 U (blah) 0 eth1 default 192.168.1.1 0.0.0.0 UG (blah) 0 eth1 = ADSL Router RJ45 interface
B is also = 192.168.1.3 on Net 192.168.1.* (being the ifconfig adrress of the 2nd NIC).
Does this give any clues?
As stated before, the above setup (minus the default route for B) works fine when B dials out using kppp: both A and C can route out through B. But, with the above as shown, only B can see out through the ADSL router.
Best wishes, Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@nessie.mcc.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 26-Oct-05 Time: 17:01:06 ------------------------------ XFMail ------------------------------