Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Feb 2011 06:07:43 +0000
From:      Matthew Seaman <>
Subject:   Re: how to add a few hundred ip on one interface?
Message-ID:  <>
In-Reply-To: <>
References:  <> <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 10/02/2011 23:52, patrick wrote:
> The standard way is to configure this in your /etc/rc.conf[.local]:
> ifconfig_re0=3D"inet netmask 0xffffffnn"
> ifconfig_re0_alias0=3D"inet netmask 0xffffffff"
> ifconfig_re0_alias1=3D"inet netmask 0xffffffff"
> ... etc.

That used to be the case, but in fact no longer.  Nowadays you can put
this single line into /etc/rc.conf to configure a whole raft of IP
addresses on an interface:


See rc.conf(5) for details.

> See
> for more info. Note that aliases should have a netmask of 0xffffffff
> (

Also something that was once true, but is actually no longer required.
Nowadays you can give alias IPs the natural netmask of the network they
belong to.  Which has the handy consequence that there's no real
distinction between what was the first address, and what are aliases --
so you can easily renumber an interface on the fly, simply by adding a
new address/netmask, then removing the old one.



Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP:     Ramsgate
JID:               Kent, CT11 9PW

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla -



Want to link to this message? Use this URL: <>