Hi Folks, I have a bit of a conundrum. Maybe there's just some simple trick I'm missing. Sorry for the lengthy background below!
I've been happily running a dialup connection to the outside world on my 3-4 machine home LAN. In this, one machine has the modem and does the dialup, and the others have a default route which points to that machine. This has no default route in general, but when kppp completes the dialup connection it installs one via ppp0, and deletes it when kppp closes down.
This works fine: all the other machines can find any address outside when this machine has its default ppp0 route up.
Now I finally have ADSL broadband as well. This connects via a Voyager 205 ADSL modem. This has IP address 192.168.1.1.
Here the situation is that, if I put a second NIC in any of the machines as eth1, give it IP address 192.168.1.3 (since this is the first in line of IP addresses which the modem gives out) and also manually install a default route to the net 192.168.1.0 via eth1, then from that machine I can also readily access the outside world.
However, I have not managed to configure the machines so as to route through the ADSL machine via its eth1 in a similar way to ppp0. Say machine C has the ADSL modem on eth1, and machines A, B and C are linked over a network on eth0 for each. The C can see the Net, while A and B can not.
Here is the outline of the configuration.
A 192.168.0.1 eth0
B 192.168.0.7 eth0
C 192.168.0.6 eth0 192.168.2.0 vmnet1 [bridging network for VMWare] 192.168.1.3 eth1 --> 192.168.1.1 [ADSL modem/router] xxx.yyy.x.w ppp0 [when dialled up, ISP's dynamic IP]
The other side of the ADSL router gets a fixed IP from the ISP, but I never need to see this.
Now for what happens when not using ADSL, just dialup.
[1] 'route' for A gives ----------------------- 192.168.0.0 * 255.255.255.0 U 0 0 555 eth0 loopback * 255.0.0.0 U 0 0 11 lo default C 0.0.0.0 UG 0 0 19 eth0
[2] 'route for B gives ---------------------- 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default Co 0.0.0.0 UG 0 0 19 eth0
[3] 'route' for C, when not dialled up, gives --------------------------------------------- Destination Gateway Genmask Flags ... Iface 192.168.2.0 * 255.255.255.0 U ... vmnet1 192.168.1.0 * 255.255.255.0 U ... eth1 192.168.0.0 * 255.255.255.0 U ... eth0
[4] and, when C has dialled up ------------------------------ imsnet-cl10-hg1 * 255.255.255.255 UH ... ppp0 192.168.2.0 * 255.255.255.0 U ... vmnet1 192.168.1.0 * 255.255.255.0 U ... eth1 192.168.0.0 * 255.255.255.0 U ... eth0 default msnet-cl10-hg1 0. 0. 0.0 UG ... ppp0
In this configuration, as described above, all three machines can reach the Net without problems, routing through ppp0 on C.
Now, with the ADSL router in place on C, I make the change analagous to [3]->[4] above, by adding the route to the ADSL 192.168.1.1 and the default route to the same on eth1.
But this does not work. While C has no problems seeing the net, beither A nor B can. I feel stumped here, but -- as I say -- there's undoubtedly something simple I;ve overlooked.
Comments and suggestions most welcom!
Best wishes to all, Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@nessie.mcc.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 25-Oct-05 Time: 18:54:56 ------------------------------ XFMail ------------------------------