From owner-freebsd-current Fri Mar 30 4:21:51 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 39D2837B718 for ; Fri, 30 Mar 2001 04:21:44 -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 f2UCLWk83409; Fri, 30 Mar 2001 15:21:32 +0300 (EEST) (envelope-from ru) Date: Fri, 30 Mar 2001 15:21:32 +0300 From: Ruslan Ermilov To: Alexander Leidinger Cc: current@FreeBSD.org Subject: Re: Recent interface/routing changes breaks on-demand PPP (+sppp) Message-ID: <20010330152132.C82273@sunbay.com> Mail-Followup-To: Alexander Leidinger , current@FreeBSD.org References: <20010330142805.A77411@sunbay.com> <200103301136.f2UBafo45830@Magelan.Leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200103301136.f2UBafo45830@Magelan.Leidinger.net>; from Alexander@leidinger.net on Fri, Mar 30, 2001 at 01:36:39PM +0200 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Mar 30, 2001 at 01:36:39PM +0200, Alexander Leidinger wrote: > On 30 Mar, Ruslan Ermilov wrote: > >> - if I put the interface down the first time after a login I have to > >> readd the defaultroute (only once, after additional "ifconfig > >> down/up" I didn't have to readd the defaultroute, it stays) > >> > > This is only possible if you have a routing daemon running. > > I didn't have a routing daemon running. > > > Otherwise, if the default route points to interface X, and > > you execute ``ifconfig X down'', all routes through X will > > be deleted including the default. Previously, the routing > > code did not delete ``static'' routes, now it does. > > What to do in this situation? I didn't want add the defaultroute > everytime (POLA). > But if we don't do this, we may end up using the wrong source IP address. Without my fixes, try this: 1) ifconfig isp1 X.X.X.1 .... 2) route add default -iface isp1 3) ifconfig isp1 X.X.X.2 4) ping some outside host 5) watch the packets will go from the wrong address (X.X.X.1) 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