From owner-freebsd-net@FreeBSD.ORG Wed May 5 16:08:29 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 92C2C1065678 for ; Wed, 5 May 2010 16:08:29 +0000 (UTC) (envelope-from john.bayly@tipstrade.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mx1.freebsd.org (Postfix) with ESMTP id 39DD18FC0A for ; Wed, 5 May 2010 16:08:28 +0000 (UTC) Received: from intra.tipstrade.net (w-87.cust-5147.ip.static.uno.uk.net [95.172.231.87]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0Lnlst-1NiJt92aTP-00hfdR; Wed, 05 May 2010 17:55:52 +0200 Received: from [192.168.0.30] (baylyj3.intra [192.168.0.30]) by intra.tipstrade.net (Postfix) with ESMTP id 157EA258E5F0 for ; Wed, 5 May 2010 16:54:46 +0100 (BST) Message-ID: <4BE19507.40706@tipstrade.net> Date: Wed, 05 May 2010 16:55:51 +0100 From: John Bayly User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-net@freebsd.org X-Provags-ID: V01U2FsdGVkX1+A3Pcf6gP/ehAC1L0ZVpmIPd3aTe/129vhCpG 12SEl28xZ0M+favrPqwFjyNRhQNh4EWlEK8htm3nC/lf6w2UH3 DfYmGentYemvS7whDBzb1/a4o6O3iPk Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ppp not removing address when disconnected X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 May 2010 16:08:29 -0000 I'm using ppp on FreeBSD 7.2-RELEASE. Got this immensely annoying issue that when the ADSL connection drops the IP address isn't being removed from the tun interface, making it look like the connection is still up. I've tries this in interactive mode: Using interface: tun0 ppp ON router> dial ppp ON router> Ppp ON router> PPp ON router> Warning: ff02:7::/32: Change route failed: errno: Network is unreachable PPP ON router> iface show tun0 (idx 7) mtu 1492 has 1 address: inet 81.134.xx.xx --> 81.134.yy.yy netmask 0xffffffff PPP ON router> close PPp ON router> Warning: ff02:7::/32: Change route failed: errno: Network is unreachable ppp ON router> ppp ON router> iface show tun0 (idx 7) mtu 1500 has 1 address: inet 81.134.xx.xx --> 81.134.yy.yy netmask 0xffffffff ppp ON router> iface clear ppp ON router> iface show tun0 (idx 7) mtu 1500 has 0 addresses: ppp ON router> As you can see, the interface comes up with an address when I dial, however when I close the connection, the interface still shows the address, it's only when I call "iface clear" that the address is removed. I added "iface clear" to my /etc/ppp/ppp.linkdown, but it makes no difference. This is because ppp is still in OPENED state (as per the man page: all addresses except for the NCP negotiated address are deleted from the interface.). I've confirmed this by turning on all logging, and seeing that the "iface clear" command is sent before "SendTerminateReq(4)" is called. Am I missing something in /etc/ppp/ppp.conf that tells ppp to remove the address when a connection is down? Many thanks, John