From owner-freebsd-stable Fri Dec 15 12:16:13 2000 From owner-freebsd-stable@FreeBSD.ORG Fri Dec 15 12:16:07 2000 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by hub.freebsd.org (Postfix) with SMTP id 12BEE37B400 for ; Fri, 15 Dec 2000 12:16:07 -0800 (PST) Received: (qmail 12726 invoked by uid 0); 15 Dec 2000 20:16:05 -0000 Received: from p3ee21663.dip.t-dialin.net (HELO speedy.gsinet) (62.226.22.99) by mail.gmx.net (mail07) with SMTP; 15 Dec 2000 20:16:05 -0000 Received: (from sittig@localhost) by speedy.gsinet (8.8.8/8.8.8) id TAA12061 for freebsd-stable@freebsd.org; Fri, 15 Dec 2000 19:29:04 +0100 Date: Fri, 15 Dec 2000 19:29:04 +0100 From: Gerhard Sittig To: freebsd-stable@freebsd.org Subject: Re: PPP not deleting ip's Message-ID: <20001215192904.L253@speedy.gsinet> Mail-Followup-To: freebsd-stable@freebsd.org References: <20001214161733.A57811@lunatic.oneinsane.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20001214161733.A57811@lunatic.oneinsane.net>; from insane@lunatic.oneinsane.net on Thu, Dec 14, 2000 at 04:17:33PM -0800 Organization: System Defenestrators Inc. Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Dec 14, 2000 at 16:17 -0800, Ron 'The InSaNe One' Rosson wrote: > > I have a FreeBSD box running 4.1-R running as a Gateway machine > for a small LAN. It is using ijppp for the connection and all > is working well.. I got to looking at it and noticed that > everytime it disconnects it does not delete the IP address it > was assigned to before. So when it connects the next time and > gets a different IP it just adds it to tun0. Look at "man 8 ppp" and search for "iface clear". I have - "iface clear" plus some "!bg echo '...' > /dev/speaker" in ppp.linkup and - "set ifaddr 'as in ppp.conf'" and "iface clear" plus some noise in ppp.linkdown This will keep the one and only currently active IP on the interface and flush the obsolete ones. virtually yours 82D1 9B9C 01DC 4FB4 D7B4 61BE 3F49 4F77 72DE DA76 Gerhard Sittig true | mail -s "get gpg key" Gerhard.Sittig@gmx.net -- If you don't understand or are scared by any of the above ask your parents or an adult to help you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message