Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Mar 2012 15:01:34 +0000
From:      Matthew Seaman <>
Subject:   Re: Network interface aliasing?
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 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:               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: <>