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 -- Alex Suzuki ..::.. [EMAIL PROTECTED] ..::.. http://www.cynox.ch GEEK code: GCS d+(-) s a--->-- C+++ UL P+>++ L+++>++++ E- W+++$ N++ o? K? w-- !O !M V- PS+ !PE Y+ PGP- t+++ 5+ X@ R- tv--@ b+ DI D++ G-- e* h-- r++ y+