Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jun 1997 07:55:47 -0500 (CDT)
From:      Dave Marquardt <marquard@zilker.net>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/3913: ppp's "delete ALL" doesn't work
Message-ID:  <199706201255.HAA03479@localhost.zilker.net>
Resent-Message-ID: <199706201300.GAA01425@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         3913
>Category:       bin
>Synopsis:       "delete ALL" command of /usr/sbin/ppp doesn't work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 20 06:00:01 PDT 1997
>Last-Modified:
>Originator:     Dave Marquardt
>Organization:
None
>Release:        FreeBSD 2.2-STABLE i386
>Environment:

	Packard-Bell 75 MHz Pentium
	USR 28.8K internal modem

>Description:

	Usually I just use one configuration of PPP to call my ISP.
	However, I wanted to dial up work, so I ran a different
	configuration.  I noticed that it connected but wouldn't
	talk.  Looking at the route table, I noticed that it still had
	old routes from my ISP dialin.  I'd never noticed this when I
	ran /usr/sbin/ppp on 2.1.0 all the way up to 2.1.6, and this
	is the first time I've tried this with 2.2-STABLE.

	Here's the configuration from my /etc/ppp/ppp.conf:

default:
 set afilter 0 permit 0/0 0/0
 set dfilter 0 permit 0/0 0/0
 set ifilter 0 permit 0/0 0/0
 set ofilter 0 permit 0/0 0/0
 set device /dev/cuaa0
 set speed 38400
# disable lqr
# deny lqr
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"

advantis:
 set log phase chat lcp
 set phone 4274031
 set login ""
 set ifaddr 32.225.40.139/0 204.146.240.17/0
 delete ALL
 add 0 0 204.146.240.17
 accept pap
 deny chap
 disable chap
 set authname XXXXXXXXXXXXXXXXXXXXX
 set authkey XXXXXXX
 set openmode active
 set accmap 0xffffffff
 deny lqr
 disable lqr 
 deny pred1
 disable pred1

Here's what the route table shows after I execute "ppp -auto
advantis".  Notice that the routes don't seem to be right.

ppp ON localhost> show route
default          204.238.120.28     ffffffff  UG     (2)
127.0.0.1        127.0.0.1          ffffffff  UH     (3)
198.252.182.129  204.238.120.28     ffffffff  UGH    (2)
204.146.240.17   32.225.40.139      ffffffff  UH     (2)
204.238.120.4    204.238.120.28     ffffffff  UGH    (2)
204.238.120.5    204.238.120.28     ffffffff  UGH    (2)

"delete ALL" has no effect.  "delete 0 204.238.120.28" gives me this:

ppp ON localhost> delete 0 204.238.120.28
ppp ON localhost> show route
127.0.0.1        127.0.0.1          ffffffff  UH     (3)
204.146.240.17   32.225.40.139      ffffffff  UH     (2)

I haven't done enough debugging to figure out if this is PPP or
something gone awry in the routing subsystem in the kernel.

>How-To-Repeat:

	Run "ppp -auto remote1".  Connect to it.  Kill it.  Run "ppp
	-auto remote2".  Note that the route table still has lots of
	routes pointing to remote1's remote address.

>Fix:
	
	One workaround, for me at least, is to flush the routing table
	with "route flush" between kill the first ppp session and
	starting the second.  This would probably be inadequate for
	folks that have other network interfaces beyond a single PPP
	connection.
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706201255.HAA03479>