Bug 20937

Summary: User-mode ppp fails to add default route
Product: Base System Reporter: john <john>
Component: binAssignee: Brian Somers <brian>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1-STABLE   
Hardware: Any   
OS: Any   

Description john 2000-08-30 11:10:01 UTC
 The following command is used to set the local and ISP address.

 set ifaddr 203.24.133.16/0 203.24.133.8/0 255.255.255.0 0.0.0.0

 Tried the following combinations of commands, all resulted in an
 invalid route as per the following error message. The included log
 is only for the last error, however the route that is trying to be
 added is the same for all cases, i.e. gateway 255.255.255.255

   add default HISADDR
   add! default HISADDR
   add 0 0 HISADDR
   add! 0 0 HISADDR
   add default 203.24.133.8
   add! default 203.24.133.8

Aug 30 20:47:54 sentinel ppp[10835]: tun0: Command: default: add! default 203.24.133.8  
Aug 30 20:47:54 sentinel ppp[10835]: tun0: TCP/IP: bundle_SetRoute failure: 
Aug 30 20:47:54 sentinel ppp[10835]: tun0: TCP/IP: bundle_SetRoute:  Cmd = Add! 
Aug 30 20:47:54 sentinel ppp[10835]: tun0: TCP/IP: bundle_SetRoute:  Dst = 0.0.0.0 
Aug 30 20:47:54 sentinel ppp[10835]: tun0: TCP/IP: bundle_SetRoute:  Gateway = 255.255.255.255 
Aug 30 20:47:54 sentinel ppp[10835]: tun0: TCP/IP: bundle_SetRoute:  Mask = 0.0.0.0 
Aug 30 20:47:54 sentinel ppp[10835]: tun0: Warning: Add! route failed: 0.0.0.0: errno: Network is unreachable

Fix: 

Not known.
How-To-Repeat: 
	Follow the example ppp.conf file.
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-08-30 11:20:05 UTC
Responsible Changed
From-To: freebsd-bugs->brian

Over to maintainer.
Comment 2 Brian Somers freebsd_committer freebsd_triage 2000-08-30 21:03:18 UTC
State Changed
From-To: open->feedback

Can you please add ``set log phase tun command tcp/ip debug ipcp'' 
to the start of your default section and comment out any other 
``set log'' commands, then do a ``netstat -rn'', start ppp, 
do another ``netstat -rn'', ``ping -c1 ftp.freebsd.org'' then do 
yet another ``netstat -rn'' and send me the output & ppp log ? 

I can't reproduce the problem here.... but you're not the only one 
to complain that something's wrong :-/ 

It would be interesting if you could try running ``show route'' 
and ``show iface'' from within ppp too - just to ensure that 
something sinister isn't going wrong :-I 

Ta
Comment 3 Brian Somers freebsd_committer freebsd_triage 2000-08-31 20:51:35 UTC
State Changed
From-To: feedback->closed

The submitter has confirmed that this is fixed by the latest 
change to defs.c