From owner-freebsd-net Wed Nov 17 15:47:55 1999 Delivered-To: freebsd-net@freebsd.org Received: from awfulhak.org (dynamic-27.max4-du-ws.dialnetwork.pavilion.co.uk [212.74.9.155]) by hub.freebsd.org (Postfix) with ESMTP id 3DD8614FD3 for ; Wed, 17 Nov 1999 15:47:50 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id XAA02171; Wed, 17 Nov 1999 23:06:46 GMT (envelope-from brian@lan.awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id XAA03573; Wed, 17 Nov 1999 23:11:14 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <199911172311.XAA03573@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.0 09/18/1999 To: Blaz Zupan Cc: Brian Somers , freebsd-net@FreeBSD.org, brian@hak.lan.Awfulhak.org Subject: Re: rinit: wrong ifa (0xc09ba580) was (0xc0854880) - candidate for removal In-Reply-To: Message from Blaz Zupan of "Wed, 17 Nov 1999 22:38:31 +0100." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 17 Nov 1999 23:11:14 +0000 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Sorry, I mustn't have read the whole message. This is a feature :-) It defeats the first-connection problem with dynamic IP numbers. It can be disabled with ``disable iface-alias'' and can be kept in control with an ``iface clear'' in ppp.linkdown - see share/examples/ppp.linkdown.sample. > On Wed, 17 Nov 1999, Brian Somers wrote: > > Nothing's changed of late here. Ppp will use whatever ``hostname'' > > resolves to as a default local address unless a ``set ifaddr'' is > > done. As you've got a ``set ifaddr'', I find it surprising that > > you see this message. > > Actually, I guess you probably did not notice the rest of my message. > > IMHO the behaviour change in ppp is, that now when ppp receives an IP > address (assigned by the dialup server it is dialing to), it does NOT > replace the IP address on the tunX interface, but simply adds it as an > alias on the interface. So every time you dial the internet, the interface > receives another IP address as an alias. In our case, after a day or two, > there are about 60 IP aliases assigned on the tunX interface. > > Previous versions of ppp simply _replaced_ the IP address that was present > on the interface before a new IP was assigned by the ppp peer. > > For example, after the machine is freshly rebooted, we see this: > > gatekeeper# ifconfig tun0 > tun0: flags=8051 mtu 1500 > inet 10.0.0.1 --> 10.0.0.2 netmask 0xffffffff > > After we dial the internet, the above addresses are _not_ replaced, but > the new addresses are added as an alias to the interface: > > gatekeeper# ifconfig tun0 > tun0: flags=8051 mtu 1500 > inet 10.0.0.1 --> 10.0.0.2 netmask 0xffffffff > inet 212.18.37.102 --> 212.18.32.20 netmask 0xffffff00 > > As time goes on, those secondary addresses pile up on the interface. I > believe that's why I get the "wrong ifa" message. Is there any reasoning > behind the secondary addresses or is this behaviour a bug? > > Regards, > > Blaz Zupan, blaz@amis.net, http://home.amis.net/blaz/ > Medinet d.o.o., Linhartova 21, 2000 Maribor, Slovenia > > -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message