Assigning network interface to specific NIC?
m.seaman at infracaninophile.co.uk
Thu Apr 24 09:32:00 UTC 2014
On 04/24/14 10:09, Ewald Jenisch wrote:
> Is there a way to assign a specific hardware interface (ethernet -
> broadcom) to an interface unter FreeBSD 10?
> My problem: I've got a server with six GE-interfaces - four onboard
> and two on an addon card. For unknown reasons FreeBSD assigns the
> first two interfaces (bge0+bge1) to the addon card and the remaining
> four (bge2 - bge5) to the onboard.
> Since this is somewhat confusing I'd like to have bge0 - bge3 assigned
> to the onboard interfaces and bge4+bge5 assigned to the addon card.
> Is there any way in FreeBSD10 to set this up?
ifconfig has a 'name' option allowing you to apply an arbitrary name to
any i/f. You probably can't call them bgeN (dunno -- never tried) but
you could do eg.
ifconfig bge2 name eth0
ifconfig bge3 name eth1
etc. It should be fairly obvious how to add that to /etc/rc.conf so it
happens automatically on reboots.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1029 bytes
Desc: OpenPGP digital signature
More information about the freebsd-questions