Date: Mon, 19 Mar 2001 18:34:34 +0100 (CET) From: Alexander Leidinger <Alexander@Leidinger.net> To: ru@FreeBSD.ORG Cc: ache@nagual.pp.ru, current@FreeBSD.ORG Subject: Re: Recent interface/routing changes breaks on-demand PPP Message-ID: <200103191734.f2JHYaQ07672@Magelan.Leidinger.net> In-Reply-To: <20010319173608.A64735@sunbay.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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<POINTOPOINT,LINK1,MULTICAST> 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:<UP,GATEWAY,STATIC> locks: inits:=20 sockaddrs: <DST,NETMASK,IFP> default default=20 route to: default destination: default mask: default interface: isp1 flags: <UP,DONE,STATIC,PRCLONING> recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu = expire 0 0 0 0 0 0 1500 = 0=20 locks: inits:=20 sockaddrs: <DST,GATEWAY,NETMASK,IFP,IFA> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103191734.f2JHYaQ07672>