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

next in thread | previous in thread | raw e-mail | index | archive | help
Well, there it is.  Hard to believe I missed that one.  Thanks for the 
pointers to the docs, everyone.

S

At 09:41 AM 7/11/2002 -0500, Jack L. Stone wrote:
>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?5.1.0.14.2.20020711161023.03cd74b8>