From owner-freebsd-bugs Wed Apr 17 3:38:52 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from Awfulhak.org (gw.Awfulhak.org [217.204.245.18]) by hub.freebsd.org (Postfix) with ESMTP id 1107537B400; Wed, 17 Apr 2002 03:38:46 -0700 (PDT) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [IPv6:fec0::1:12]) by Awfulhak.org (8.12.2/8.11.6) with ESMTP id g3HAceEv041597; Wed, 17 Apr 2002 11:38:40 +0100 (BST) (envelope-from brian@freebsd-services.com) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.12.2/8.12.2) with ESMTP id g3HAcb11000812; Wed, 17 Apr 2002 11:38:37 +0100 (BST) (envelope-from brian@freebsd-services.com) Message-Id: <200204171038.g3HAcb11000812@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Ruslan Ermilov Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: kern/37173: ifconfig ... alias has problems setting aliases In-Reply-To: Message from Ruslan Ermilov of "Wed, 17 Apr 2002 01:00:13 PDT." <200204170800.g3H80DX86586@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 17 Apr 2002 11:38:37 +0100 From: Brian Somers Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > The following reply was made to PR kern/37173; it has been noted by GNATS. > > From: Ruslan Ermilov > To: Nicolas Rachinsky > Cc: bug-followup@FreeBSD.org > Subject: Re: kern/37173: ifconfig ... alias has problems setting aliases > Date: Wed, 17 Apr 2002 10:59:18 +0300 > > On Wed, Apr 17, 2002 at 12:10:09AM -0700, Nicolas Rachinsky wrote: > > The following reply was made to PR kern/37173; it has been noted by GNATS. > > > > From: Nicolas Rachinsky > > To: Martin.Kraemer@Fujitsu-Siemens.com > > Cc: FreeBSD-gnats-submit@FreeBSD.ORG > > Subject: Re: kern/37173: ifconfig ... alias has problems setting aliases > > Date: Wed, 17 Apr 2002 09:08:08 +0200 > > > > * Martin.Kraemer@Fujitsu-Siemens.com [2002-04-17 08:52:50 +0200]: > > > >Description: > > > Using FreeBSD-4.5-STABLE from ~2 months ago, I had no problems > > > setting several IP aliases on my xl0 interface by setting the > > > following in /etc/rc.conf: > > > ifconfig_xl0="inet 172.25.124.236 netmask 255.255.255.0" > > > ifconfig_xl0_alias0="inet 172.25.124.237 netmask 255.255.255.0" > > > ifconfig_xl0_alias1="inet 172.25.124.238 netmask 255.255.255.0" > > > ifconfig_xl0_alias2="inet 192.168.172.1 netmask 255.255.255.0" > > > With a current kernel however, after reboot only one or two of these > > > IP addresses are actually set. The other IP addresses are unset. > > > > From man ifconfig: > > | If the address is on the same subnet as the first network address for > > | this interface, a netmask of 0xffffffff has to be specified. > > > > Use netmask 255.255.255.255 for the aliases. > > > To be more precise, you should use netmask of all ones for aliases > in the same subnet only. See ifconfig(8) manpage for more details. For the record (PR)... This was recently fixed in -current. I have not merged the change into -stable as it's likely to break configurations like the one above. In short, -stable has (and will keep) the bug. -- Brian http://www.freebsd-services.com/ Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message