From owner-freebsd-current Mon Mar 19 9:37:51 2001 Delivered-To: freebsd-current@freebsd.org Received: from mout1.freenet.de (mout1.freenet.de [194.97.50.132]) by hub.freebsd.org (Postfix) with ESMTP id D9E6F37B719; Mon, 19 Mar 2001 09:37:46 -0800 (PST) (envelope-from netchild@leidinger.net) Received: from [194.97.50.135] (helo=mx2.freenet.de) by mout1.freenet.de with esmtp (Exim 3.22 #1) id 14f3bE-0002Ul-00; Mon, 19 Mar 2001 18:37:44 +0100 Received: from b822e.pppool.de ([213.7.130.46] helo=Magelan.Leidinger.net) by mx2.freenet.de with esmtp (Exim 3.22 #1) id 14f3bE-0001yC-00; Mon, 19 Mar 2001 18:37:44 +0100 Received: from Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.11.3/8.11.3) with ESMTP id f2JHYaQ07672; Mon, 19 Mar 2001 18:34:37 +0100 (CET) (envelope-from netchild@Leidinger.net) Message-Id: <200103191734.f2JHYaQ07672@Magelan.Leidinger.net> Date: Mon, 19 Mar 2001 18:34:34 +0100 (CET) From: Alexander Leidinger Subject: Re: Recent interface/routing changes breaks on-demand PPP To: ru@FreeBSD.ORG Cc: ache@nagual.pp.ru, current@FreeBSD.ORG In-Reply-To: <20010319173608.A64735@sunbay.com> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by Magelan.Leidinger.net id f2JHYaQ07672 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 19 M=E4r, Ruslan Ermilov wrote: > 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. Yesterday I did a buildworld and an installworld with sources which contain the fixed routing code (cvsup at ~3pm CET). Today I tried to dialout-on-demand right after boot. I use ISDN and have defaultrouter=3D"-interface isp1" in my rc.conf. It didn't worked and I found the reason withhin a minute. There wasn't a defaultroute. So I just added the defaultroute and everything was fine... until the next time my system tried to dialout-on-demand. There wasn't a defaultroute again. Boring. Ok, I just added the defaultroute again and the system dialed out. After this second "route add default -interface isp1" the defaultroute didn't disappeared for several dialouts. I haven't rebooted yet to try to reproduce it. Perhaps some interesting facts: ---snip--- (33) netchild@ttyp2 % ifconfig isp1 =20 isp1: flags=3Da010 mtu 1500 inet 0.0.0.0 --> 0.0.0.1 netmask 0xffff0000=20 ether 00:00:00:00:00:00=20 [Yes, it's down at the moment, I didn't want to dialout at the moment.] (34) netchild@ttyp2 % route -vn get default u: inet 0.0.0.0; u: inet 0.0.0.0; u: link ; RTM_GET: Report Metrics: len = 168, pid: 0, seq 1, errno 0, flags: locks: inits:=20 sockaddrs: default default=20 route to: default destination: default mask: default interface: isp1 flags: recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu = expire 0 0 0 0 0 0 1500 = 0=20 locks: inits:=20 sockaddrs: default isp1:0.0.0.0.0.0 default isp1:0.0.0.0.0.0 default (35) netchild@ttyp2 % netstat -nr Routing tables Internet: Destination Gateway Flags Refs Use Netif Ex= pire default 0:0:0:0:0:0 USc 37 3 isp1 0.0.0.1 0.0.0.0 UH 0 0 isp1 127.0.0.1 127.0.0.1 UH 2 31942 lo0 ---snip--- Don't worry if this problem is solved by the commit which fixed a PR (I've seen it on cvs-all, but hadn't time to have a look at it). Bye, Alexander. --=20 It's not a bug, it's tradition! http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint =3D C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message