2.1.120: Problems with default route and ppp demand dialing

Henrik Storner (storner@image.dk)
Mon, 7 Sep 1998 22:36:09 +0200 (CEST)


This is weird. I am using the demand-dialing feature of pppd 2.3.5,
and this has worked fine for several months. However, it breaks with
2.1.120.

pppd is started with the demand option and a couple of "bogus"
IP adresses for the remote/local side. I then setup the default
route to point at ppp0:

osiris:~ $ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0

BUT, when I ping my ISP, the link comes up, and then *the default route
disappears* :

[root@osiris storner]# ping www.image.dk
PING www.image.dk (194.234.57.29): 56 data bytes
[delay while the link is brought up]
ping: sendto: Network is unreachable
ping: wrote www.image.dk 64 chars, ret=-1

--- www.image.dk ping statistics ---
7 packets transmitted, 0 packets received, 100% packet loss
[root@osiris storner]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
194.234.58.75 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

This works in 2.1.119 - the default route that was setup before the link
came up stays in place, and happily routes my traffic over the dial-up
link.

I am not using the 'defaultroute' option with pppd. Previously
this had no effect, as pppd would not replace an existing default
route.

[checking] Well yes, it works if I add the 'defaultroute' option
to the pppd command line.

Was this change intentional ?

-- 
Henrik Storner  |  "testing? What's that? If it compiles, it is good, 
                |   if it boots up it is perfect."
                |                                    Linus Torvalds

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/faq.html