Re: Network interface aliasing?
On Wed, Mar 7, 2012 at 8:39 AM, Brent Clark wrote: > Hiya > > 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. > setfib(1) -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Network interface aliasing?
On Mar 7, 2012, at 10:59 AM, Bas Smeelen wrote: > On 03/07/2012 04:24 PM, Mikel King wrote: >> On 3/7/12 9:39 AM, Brent Clark wrote: >>> Hiya >>> >>> 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. >>> >>> Thanks >>> Brent >> >> Brent, >> >> You can rename an interface to just about anything you wish. If the >> process allows for interface binding then you can use that new name. >> >> http://jafdip.com/index.php/2008/09/08/renaming-ethernet-interfaces-under-freebsd-7x/ >> > > This gives the interface a different name. > It does not create an alias name for the interface as far as I understand. > > Kind regards, > Bas > True but the alias option in BSD only allows for assigning another IP address to an existing interface. Taking a second look at this request it appears to be more of a subinterface phenomenon and not an alias at all. As far as I recall FreeBSD does not support this sort of subinterface naming. But I wonder if there's a way to create pseudo interfaces to pull something similar off, however wonder what's the point. cheers, m ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Network interface aliasing?
On 03/07/2012 04:24 PM, Mikel King wrote: > On 3/7/12 9:39 AM, Brent Clark wrote: >> Hiya >> >> 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. >> >> Thanks >> Brent > > Brent, > > You can rename an interface to just about anything you wish. If the > process allows for interface binding then you can use that new name. > > http://jafdip.com/index.php/2008/09/08/renaming-ethernet-interfaces-under-freebsd-7x/ > This gives the interface a different name. It does not create an alias name for the interface as far as I understand. Kind regards, Bas Disclaimer: http://www.ose.nl/email ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Network interface aliasing?
On 3/7/12 9:39 AM, Brent Clark wrote: Hiya 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. Thanks Brent Brent, You can rename an interface to just about anything you wish. If the process allows for interface binding then you can use that new name. http://jafdip.com/index.php/2008/09/08/renaming-ethernet-interfaces-under-freebsd-7x/ Regards, Mikel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Network interface aliasing?
On 03/07/2012 03:39 PM, Brent Clark wrote: > Hiya > > 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. What do you want to accomplish? Processes usually listen on adresses or sockets Disclaimer: http://www.ose.nl/email ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Network interface aliasing?
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: ipv4_addrs_em0="192.0.2.1/24 192.0.2.2/24" (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? Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Network interface aliasing?
Hiya 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. Thanks Brent ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"