Date: Thu, 24 Apr 2014 10:31:36 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-questions@freebsd.org Subject: Re: Assigning network interface to specific NIC? Message-ID: <5358D9F8.9030208@infracaninophile.co.uk> In-Reply-To: <20140424090925.GA1330@aurora.oekb.co.at> References: <20140424090925.GA1330@aurora.oekb.co.at>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --6MGd14wn86D81htSAJJHSihWVmb2aXFGR Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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? >=20 > 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. >=20 > 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. >=20 > 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. Cheers, Matthew --6MGd14wn86D81htSAJJHSihWVmb2aXFGR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJTWNn/XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnbAwP/2DKbev4jFP7D3HLlxE+nPx/ B6G+BOGWoJXsuMQi+xSVPcv0nsiS23GkLbd37KsD9DV49hglnrEdveuK8RZJWIw+ h5guK8v28qkVIZ8CdoQ03HwgrKJwf7W/iQEYvs+09gwPhlL/SMC0bVbjh8rGYhn+ TmPOn9/fzd4KDcOoa696qTZ0/8W5dCnxMKEFQ0wQKfzRewaz4sdmPSQoopQuK4Vw CpbBQSG5Wn4eo9keeBHZ4tPePDpsX22Yo3140sFrof51Y0fyqm/7uEGN0Xvytkpr XqFqdOZ4XshxOz1Rx98yao3hdYgfst0SPwLgUq8x+gPhmsKSwIPCty/Is4GVBccu 6pXLngzPDVIEX7rbyjC+684VaDdt84pHDj4qmxeg3//onuDzPfXscoWXwAfywe2X DX37tj4H63DkNf6xB+iSHak4PEljG5BXWQDGe+uuc15kfVhlvdYvD+K+l2vBObU2 XQ8ek/e3dKX6fdQqTZZJgG4vP0IvYIv0jRyzJWw2jLFYtomsZUY8uw7RJkQPWygZ Y1NhjvRHlOlmle5iaiIhEMotsysMciHEivoOm0R1cf2v4LfSBumXisdX4GIJ/9Wq k2cdr0pVccwLI1JtmVvOCc9QVDVKXkXY1FuOeFNoy7gGMIHCiFHv/ktdoexHn9DU bFvN6fF4NknmxIF43uUz =RZm/ -----END PGP SIGNATURE----- --6MGd14wn86D81htSAJJHSihWVmb2aXFGR--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5358D9F8.9030208>