From owner-freebsd-questions Tue Nov 17 19:48:59 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA11222 for freebsd-questions-outgoing; Tue, 17 Nov 1998 19:48:59 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA11209 for ; Tue, 17 Nov 1998 19:48:51 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (woof.lan.Awfulhak.org [172.16.0.7]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id DAA09887; Wed, 18 Nov 1998 03:27:24 GMT (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (localhost [127.0.0.1]) by woof.lan.awfulhak.org (8.9.1/8.9.1) with ESMTP id DAA08214; Wed, 18 Nov 1998 03:27:23 GMT (envelope-from brian@woof.lan.awfulhak.org) Message-Id: <199811180327.DAA08214@woof.lan.awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Bruce Albrecht cc: freebsd-questions@FreeBSD.ORG Subject: Re: ppp -auto question In-reply-to: Your message of "Sun, 15 Nov 1998 22:18:23 CST." <13903.42895.850081.788100@zuhause.zuhause.mn.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 18 Nov 1998 03:27:21 +0000 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Before I upgraded to a current -current (previously running -current > from 12/97, now 11/11/98), when my ppp -auto disconnected, I set up my > ppp.linkdown to delete the old default route and set the default route > to a non-existant ip (10.0.2.20) that was the gateway ip address for > the now inactive ppp link. > > The ppp.conf file had > set ifaddr 10.0.2.15/0 10.0.2.20/0 255.255.255.0 0.0.0.0 > > The ppp.linkdown had > MYADDR: > delete default > add default 10.0.2.20 > > This worked really well, as sendmail would try to do a name lookup on > the link and I had 10.0.2.20 known to my local named. However, with > the way ppp works now, sendmail does a name lookup on the ip address > of the now inactive link, which forces ppp to reconnect to the ISP if > named has invalidated the IP from its cache. Is there any way to get > the old behaviour to work again? When I did a little fiddling around > with it, I either would get complaints about the default route already > existing or it wouldn't dial out after the first time. > > Any suggestions? Try doing the ``set ifaddr'' in ppp.linkdown (as well as in ppp.conf) without the delete/add lines above, and making sure that you ``add default hisaddr'' in ppp.conf. Ppp now treats things that use hisaddr and myaddr as being ``sticky'' - ie, when the IP number changes, the routes get re-applied. See the man page and the README.changes file for details. I'm surprised that ppp didn't behave the same before :-/ You may also want to do an ``iface clear'' in ppp.linkdown. -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message