Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jul 2002 09:41:27 -0500
From:      "Jack L. Stone" <jackstone@sage-one.net>
To:        Steve Peterson <stevep-hv@zpfe.com>, stable@FreeBSD.ORG
Subject:   Re: 4.6 & IP aliases / ifconfig
Message-ID:  <3.0.5.32.20020711094127.02e79b20@mail.sage-one.net>
In-Reply-To: <5.1.0.14.2.20020711085737.01e32ff0@magpie.zpfe.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 09:06 AM 7.11.2002 -0500, Steve Peterson wrote:
>Just upgraded my server box from 4.4 to 4.6 via source, and my aliased IP 
>addresses didn't come up on system boot.
>
>rc.conf said:
>
>ifconfig_dc0="inet 209.46.51.22  netmask 255.255.255.240"
>ifconfig_dc0_alias0="inet 209.46.51.28 netmask 255.255.255.240"
>
>It's alias0 that isn't working.  Tried to add it from the command line and
got:
>
>[root@magpie ~]# ifconfig dc0 209.46.51.28 netmask 255.255.255.240 alias
>ifconfig: ioctl (SIOCAIFADDR): File exists
>[root@magpie ~]#
>
>Getting rid of the netmask spec lets the alias be added:
>
>[root@magpie ~]# ifconfig dc0 209.46.51.28  alias
>[root@magpie ~]#
>
>And removing the netmask spec in rc.conf makes it work at next boot time.
>
>Ideas on why I can't have a /28 alias?
>
By now you should be aware this subject is answered many times. On "28",
your netmask should be 255.255.255.255 (better yet, 0xffffffff) not the
"240". Try that and your troubles should go away.

In rc.conf
ifconfig_dc0="inet 209.46.51.22  netmask 255.255.255.240"
ifconfig_dc0_alias0="inet 209.46.51.28 netmask 255.255.255.255"
... or:
ifconfig_dc0_alias0="inet 209.46.51.28 netmask 0xffffffff"

Best regards,
Jack L. Stone,
Administrator

SageOne Net
http://www.sage-one.net
jackstone@sage-one.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.20020711094127.02e79b20>