Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Dec 2001 20:15:02 +0000
From:      Ceri <setantae@submonkey.net>
To:        Darren Pilgrim <dmp@pantherdragon.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Aliases don't get /32 netmask by default?
Message-ID:  <20011215201502.GA2292@rhadamanth>
In-Reply-To: <3C1B816C.74115797@pantherdragon.org>
References:  <3C1B816C.74115797@pantherdragon.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 15, 2001 at 08:59:24AM -0800, Darren Pilgrim wrote:
> I noticed that rc.network doesn't give alias addresses 32-bit netmasks
> by default.  This puzzles me, as alias addresses don't seem to work
> completely unless the netmask is 32 bits.  Is there a reason why a
> 32-bit netmask isn't automatically/forcibly added to an alias when
> being added?

It's only aliases on the same subnet as an address already assigned to the
interface that need the netmask set to /32.

For instance, this is fine :

setantae@shaft setantae$ grep ifconfig /etc/rc.conf 
ifconfig_ed0="inet 212.250.77.214 netmask 255.255.255.224"
ifconfig_ed0_alias0="inet 172.17.77.214 netmask 255.255.255.0"

Only if I wanted to add another address on the 212.250.77.192/27 or
172.17.77.0/24 networks would the netmask be set to /32.

Ceri

-- 
keep a mild groove on

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




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