how to add a few hundred ip on one interface?

Matthew Seaman m.seaman at
Fri Feb 11 06:07:55 UTC 2011

On 10/02/2011 23:52, patrick wrote:
> The standard way is to configure this in your /etc/rc.conf[.local]:
> ifconfig_re0="inet netmask 0xffffffnn"
> ifconfig_re0_alias0="inet netmask 0xffffffff"
> ifconfig_re0_alias1="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: matthew at               Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url :

More information about the freebsd-questions mailing list