Network interface aliasing?
m.seaman at infracaninophile.co.uk
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 192.0.2.2/24 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
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matthew at infracaninophile.co.uk Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20120307/321d8a30/signature.pgp
More information about the freebsd-questions