login
Header Space

 
 

ppp adds default route when nobody asks it to

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: misc <misc@...>
Date: Thursday, May 15, 2008 - 6:20 am

hi,

i hit a strange thing. my ppp.conf is short:

default:
 set log Phase Chat LCP IPCP CCP tun command
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK
ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"

mobile:
 set device /dev/ttyU0
 set dial "ABORT ERROR ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
           \"\" ATZ OK-ATZ-OK AT+CGDCONT=1,\\\"IP\\\",\\\"internet\\\"
OK \\dATD\\T TIMEOUT 40 CONNECT"
 set phone "*99#"
 set speed 460800
 set timeout 0

that's it. but when i run ppp and issue "dial mobile" it connects and
adds a default route:

$ netstat -rnf inet
Routing tables

Internet:
Destination        Gateway            Flags   Refs      Use   Mtu  Prio Iface
default            212.47.101.26      UH         0        0     -     4 tun0
default            10.19.255.126      UGS        1       12     -     4 ath0
...

why does it do that? manual and google say that it would do that in
case appropriate ppp.conf section included something like:

add default HISADDR

but in my case i don't want ppp to add a default route! not that there
is no ppp.linkup and ppp.linkdown as well. this route is also tough
enough to remove:

# route delete default 212.47.101.26
route: writing to routing socket: No such process
delete net default: gateway 212.47.101.26: not in table
#

may be somebody has seen this before and knows how to say to ppp to
stay away from the routing table?

thanks!
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ppp adds default route when nobody asks it to, Denis Doroshenko, (Thu May 15, 6:20 am)
Re: ppp adds default route when nobody asks it to, Douglas A. Tutty, (Thu May 15, 10:05 am)
Re: ppp adds default route when nobody asks it to, Denis Doroshenko, (Thu May 15, 10:28 am)
speck-geostationary