Network interface aliasing?

Matthew Seaman m.seaman at
Wed Mar 7 15:01:47 UTC 2012

On 07/03/2012 14:39, Brent Clark wrote:
> I would like to ask.
> Is it possible to, do network interface aliasing. Im not talking about
> ip aliasing.
> I basically want to bind one process to network interface vr0:0 and
> another process to vr0:1.

Yes, you can have alias addresses very easily:

    ifconfig em0 inet alias

or in /etc/rc.conf:


(But I think this is what you mean by IP aliasing?) Since this is BSD,
we don't have the SysV-ish idea of separate devices just for aliases.
In fact, in *BSD once you've added the alias, it's just one of the
addresses on the interface, co-equal with all the others.  You could go
on to remove the original address, which makes it easy to renumber a
host without downtime.

You usually don't need a separate device in any case: just configuring a
daemon to listen using a specific IP is all that is needed for almost
all purposes.  What exactly is it you are trying to achieve and why
isn't it suitable to use aliases as above?



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