From owner-freebsd-current Mon Mar 19 7:37:11 2001 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 6C15937B718; Mon, 19 Mar 2001 07:36:55 -0800 (PST) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f2JFa9E65710; Mon, 19 Mar 2001 17:36:09 +0200 (EET) (envelope-from ru) Date: Mon, 19 Mar 2001 17:36:08 +0200 From: Ruslan Ermilov To: "Andrey A. Chernov" Cc: current@freebsd.org, brian@freebsd.org Subject: Re: Recent interface/routing changes breaks on-demand PPP Message-ID: <20010319173608.A64735@sunbay.com> Mail-Followup-To: "Andrey A. Chernov" , current@freebsd.org, brian@freebsd.org References: <20010319162514.A384@nagual.pp.ru> <20010319163337.A57176@sunbay.com> <20010319173947.A80886@nagual.pp.ru> <20010319164324.B57176@sunbay.com> <20010319175201.A81084@nagual.pp.ru> <20010319165639.A59540@sunbay.com> <20010319182346.A81488@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010319182346.A81488@nagual.pp.ru>; from ache@nagual.pp.ru on Mon, Mar 19, 2001 at 06:23:46PM +0300 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Mar 19, 2001 at 06:23:46PM +0300, Andrey A. Chernov wrote: > On Mon, Mar 19, 2001 at 16:56:40 +0200, Ruslan Ermilov wrote: > > On Mon, Mar 19, 2001 at 05:52:02PM +0300, Andrey A. Chernov wrote: > > > On Mon, Mar 19, 2001 at 16:43:24 +0200, Ruslan Ermilov wrote: > > > > On Mon, Mar 19, 2001 at 05:39:47PM +0300, Andrey A. Chernov wrote: > > > > > On Mon, Mar 19, 2001 at 16:33:37 +0200, Ruslan Ermilov wrote: > > > > > > On Mon, Mar 19, 2001 at 04:25:14PM +0300, Andrey A. Chernov wrote: > > > > > > > Now > > > > > > > > > > > > > > add default 1.1.1.1 > > > > > > > > > > > > > Perhaps, 1.1.1.1 should be written as HISADDR? > > > > > > > > > > > > > > > > No, it ALWAYS 1.1.1.1 and I have static IP address which not changed after > > > > > connection. HISADDR needed only when address changes on the fly. > > > > > > > > > > Moreover, my config works this way all this years. > > > > > > > > > Still, could you please try with HISADDR? > > > > > > > > > I try and it works with HISADDR. > > > But I see no reason why old working variant now broken. It is clear PPP > > > incompatibility with new interface way. > > > > > It's not only with PPP. Here is the relevant commitlog, read it carefully, > > especially its second part. > > > > > > Do you mean that "add" PPP command now intentionally broken for any > address excepting *ADDR? Then, what is the reason to have numeric argument > there? Or do you mean that PPP must be fixed now? Where is the fix? > I mean that: 1. If you use HISADDR, ppp(8) will automatically re-add route after link is brought down and then back up. 2. If you use static IP address in ppp.conf, ppp(8) will add that route only once. This route will also cache local interface address at the time the route is added. Execute `route -vn get default' to see what I am talking about. 3. The routing code was fixed to delete routes which use non-existent interface addresses. This code will wipe such a route. 4. If you need routes with static gateway addresses, put `add!' command to ppp.linkup script. This way, routes will be activated every time the link is up, and will use the correct source IP address. 5. This affects not only ppp(8). Add default route that points to the LAN; change the IP address on interface; observe that the default route has gone away. The reason is that if we don't do this, we may end up using the old (now non-existing) local IP address. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message