Date: Wed, 17 Apr 2002 11:38:37 +0100 From: Brian Somers <brian@freebsd-services.com> To: Ruslan Ermilov <ru@FreeBSD.ORG> Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: kern/37173: ifconfig ... alias has problems setting aliases Message-ID: <200204171038.g3HAcb11000812@hak.lan.Awfulhak.org> In-Reply-To: Message from Ruslan Ermilov <ru@FreeBSD.ORG> of "Wed, 17 Apr 2002 01:00:13 PDT." <200204170800.g3H80DX86586@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> The following reply was made to PR kern/37173; it has been noted by GNATS. > > From: Ruslan Ermilov <ru@FreeBSD.org> > To: Nicolas Rachinsky <list@rachinsky.de> > 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 <list@rachinsky.de> > > 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 <brian@freebsd-services.com> <brian@Awfulhak.org> http://www.freebsd-services.com/ <brian@[uk.]FreeBSD.org> Don't _EVER_ lose your sense of humour ! <brian@[uk.]OpenBSD.org> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204171038.g3HAcb11000812>