This is normal behavior from my experience. I've never seen PPP replace a default route that already exists. If you only have a few known hosts or networks at the ISP you could build a script to inject those host and net routes into the table when PPP comes up. I've done this with PPTP. If you'd like to see my script I'll share. It shouldn't require much change to work for you. jc
Thusly Thwacked By Alex Suzuki: > Hi everybody, > > I asked the same question in the debian-user mailinglist, but I > didn't get an answer, maybe you guys can help me :) > I recently bought myself a new laptop, with a built-in ethernet > card an a lucent winmodem, which I got to work with drivers from > http://www.heby.de/ltmodem > > When at home, I connect my laptop to the inhouse lan and connect > to the internet through a DSL router. Its IP address in the lan > is 192.168.1.5, the gateway is 192.168.1.1 (router). > So my standard routing table looks like this. > > Destination Gateway Genmask Flags Metric Ref Use > Iface > localnet * 255.255.255.0 U 0 0 0 eth0 > default router 0.0.0.0 UG 0 0 0 eth0 > > I configured my ppp connection with pppconfig, and I have defaultroute > set. However, a default route already exists (it points to the lan gateway). > When I build up a connection using pon it connects, retrieves an > IP and the nameservers, but it does NOT set a new default route, > probably because one already exists. > As soon as the connection is up, my routing table looks like this > > Destination Gateway Genmask Flags Metric Ref Use > Iface > pop-ls-14-3-1.f * 255.255.255.255 UH 0 0 0 ppp0 > localnet * 255.255.255.0 U 0 0 0 eth0 > default router 0.0.0.0 UG 0 0 0 eth0 > > When I delete the default route before connecting using > /sbin/route del default > > and then connect with the ppp service, the default route is set > to the correct (new) value. > > Destination Gateway Genmask Flags Metric Ref Use > Iface > pop-ls-14-3-1.f * 255.255.255.255 UH 0 0 0 ppp0 > localnet * 255.255.255.0 U 0 0 0 eth0 > default pop-ls-14-3-1.f 0.0.0.0 UG 0 0 0 ppp0 > > Is there any way to automatically delete the default route when > connecting, and after disconnecting restore it? > I tried putting a script into /etc/ppp/ip-up.d and /etc/ppp/ip-down.d > but it didn't get executed. I checked the file attributes and it > was world-executable. I even put a > echo "1" >/home/user/blafile > but blafile was never created. > > Can somebody help? > > Thanks a lot > Alex