From owner-freebsd-current@FreeBSD.ORG Thu Oct 27 20:00:53 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0ADA16A41F; Thu, 27 Oct 2005 20:00:53 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from crumpet.united-ware.com (am-productions.biz [69.61.164.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D7DB43D49; Thu, 27 Oct 2005 20:00:53 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from bigguy.am-productions.biz (am-productions.biz [69.61.164.22]) (authenticated bits=0) by crumpet.united-ware.com (8.12.8p2/8.12.8) with ESMTP id j9RJxXGM035723 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Thu, 27 Oct 2005 15:59:36 -0400 (EDT) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: Brooks Davis Date: Thu, 27 Oct 2005 16:02:26 -0400 User-Agent: KMail/1.8.2 References: <41473.192.216.27.32.1129818223.squirrel@192.216.27.32> <200510201651.22346.jhb@freebsd.org> <20051020212903.GA7953@odin.ac.hmc.edu> In-Reply-To: <20051020212903.GA7953@odin.ac.hmc.edu> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart87051094.OBU6EzBK5x"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200510271602.33839.mistry.7@osu.edu> X-Spam-Status: No, hits=-3.0 required=5.0 tests=MYFREEBSD3 autolearn=no version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on crumpet.united-ware.com X-Virus-Scanned: ClamAV 0.87/1148/Tue Oct 25 15:34:12 2005 on crumpet.united-ware.com X-Virus-Status: Clean Cc: Tom McLaughlin , freebsd-current@freebsd.org Subject: Re: kern/87506 : [PATCH] Fix alias support on vr interfaces X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2005 20:00:54 -0000 --nextPart87051094.OBU6EzBK5x Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 20 October 2005 05:29 pm, Brooks Davis wrote: > On Thu, Oct 20, 2005 at 04:51:21PM -0400, John Baldwin wrote: > > On Thursday 20 October 2005 02:27 pm, Anish Mistry wrote: > > > On Thursday 20 October 2005 11:15 am, John Baldwin wrote: > > > > On Thursday 20 October 2005 10:23 am, Tom McLaughlin wrote: > > > > > Hi, would someone be available to look at kern PR 87506? I > > > > > found the problem while building a jail on my 6.0-RC1 box.=20 > > > > > When setting an alias on a vr device with ifconfig the > > > > > alias address replaces the initial address of the device.=20 > > > > > marcus@ took a look at the problem for me and provided the > > > > > patch for the vr interface which I tested and it resolved > > > > > the problem. Without the patch I can't create a jail that > > > > > is network accessible. > > > > > > > > > > Marcus also notes in the PR that the rl, sis, ti, and tl > > > > > may also be affected by this bug. If anyone has any other > > > > > questions or needs someone to test any changes to the patch > > > > > just let me know. I only have vr interfaces on my FreeBSD > > > > > machines though. Thanks. > > > > > > > > > > Tom > > > > > > > > I'm not sure that fix is really the right fix. The patch > > > > just makes vr(4) ignore changes to if_flags while the driver > > > > is up. Probably there is a bug in vr(4)'s handling of alias > > > > addresses. I did just reproduce this on my laptop's rl(4) > > > > interface though. I'll see if I can't figure out what is > > > > happening. > > > > > > I'm also seeing this too along with the following. > > > > > > I'm not sure if this is related, but I'm seeing the following > > > on RELENG_6 and CURRENT, but and older RELENG_5 as of ~2 months > > > ago doesn't show this problem. > > > I'm trying to setup my workstation with a normal DHCP'd address > > > and an alias IP for a jail running on the system, but the alias > > > setting wipes out all the other addresses on the interface. > > > in /etc/rc.conf: > > > ifconfig_rl0=3D"DHCP" > > > ifconfig_rl0_alias0=3D"inet 192.168.1.10 netmask 255.255.255.255" > > > > > > I've checked the rc boot order (on RELENG_6 and CURRENT) and it > > > seems correct: > > > netif > > > dhclient > > > netif > > > > > > I narrowed it down to: > > > dhclient rl0 > > > ifconfig rl0 inet 192.168.1.11 netmask 0xffffffff alias > > > [dhclient prints a message here saying connection closed and > > > exiting] > > > > > > All of the other addresses on the card are removed. > > > I'm also seeing this on dc. So thinking it to be a problem in > > > ifconfig I copied over the version from my RELENG_5 box, and > > > that did the same thing...so this seems to be present several > > > of the network drivers in RELENG_6/CURRENT. > > > > Yes, it seems to be an issue with dhclient. If I turn dhclient > > off and manually configure my NIC then the alias works fine: > > rl0: flags=3D8843 mtu 1500 > > options=3D8 > > inet6 fe80::290:f5ff:fe0e:c8e5%rl0 prefixlen 64 scopeid > > 0x2 inet 10.50.41.234 netmask 0xfffffe00 broadcast 10.50.41.255 > > inet 10.50.41.101 netmask 0xffffffff broadcast 10.50.41.101 ether > > 00:90:f5:0e:c8:e5 > > media: Ethernet autoselect (100baseTX ) > > status: active > > I believe the problem is that adding an address to a NIC causes a > call to ifp->if_init() which resets the media and triggers a > LINK_DOWN event in all too many cases. Using if_init here is > rather like driving finishing nails with a sledge hammer. > Has there been any resolution of this issue? Since 6.0 is just around=20 the corner. =2D-=20 Anish Mistry --nextPart87051094.OBU6EzBK5x Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDYTJZxqA5ziudZT0RAtFWAKDQH8a8t5n1KhGF9YMOvcUk2Zh6HwCgonm0 WBOaXNAAxmHg6JOyrQQSF0s= =cf91 -----END PGP SIGNATURE----- --nextPart87051094.OBU6EzBK5x--