> Before dialup, here is the outpur from route -n:
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 24.19.214.63 0.0.0.0 255.255.255.255 UH 0 0 0
> eth0
> 192.168.0.1 0.0.0.0 255.255.255.255 UH 0 0 0
> eth1
> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0
> eth1
> 24.0.0.0 0.0.0.0 255.0.0.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 24.19.214.1 0.0.0.0 UG 0 0 0
> eth0
Okay, this shows a default route through the eth0 interface via the
IP address 24.19.214.1
Quote:> after dialup, the output is:
> 192.168.20.12 0.0.0.0 255.255.255.255 UH 0 0 0
> ppp0
> 192.168.0.1 0.0.0.0 255.255.255.255 UH 0 0 0
> eth1
> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0
> eth1
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
> lo
> 0.0.0.0 192.168.20.12 0.0.0.0 UG 0 0 0
> ppp0
This shows that you've remove the eth0 interface altogether and now
have a default route through the ppp0 interface via the IP address
192.168.20.2. That's okay but you can't remove the eth0 interface
and expect to connect to the Internet. So *don't* remove it. The
problem then is that pppd won't add a default route through the PPP
interface.
As I implied in my previous post these are two solutions to this:
(1) Put the line
/sbin/route add -net 192.168.20.0 $1
in /etc/ppp/ip-up. This will provide a network-specific route for any
packets to that network, so that's where they will be sent. Any other
packets bound for any IP address that's not in that network, or in any
other local network, to go through the PPP interface.
(2) Remove the pppd default route option and put the line
/sbin/route add default $1
in /etc/ppp/ip-up. This new default route will be the active default
route and all packets with non-local IP addresses are then sent to
the PPP interface. You won't have Internet access through the eth0
interface in this case, since the new default route will override
the one through eth0.
Both these PPP routes disappear when the PPP link is taken down by
pppd, and in the second case the default route to eth0 automatically
becomes the active default route. You need to make sure that the
first line of /etc/ppp/ip-up is "#!/bin/sh" since this is a shell
script run by pppd. I don't think it inherits any enviroment, thus
the use of full pathnames.
You've said that you tried the suggestions in my previous post. If one
of these more detailed descriptions of them doesn't get things working
the way you want then I'm clueless as to what's going on.
--
/* In my book, the first poster to resort to personal abuse in a Usenet
debate loses by default. - Rod Smith */