From owner-freebsd-questions@FreeBSD.ORG Thu Apr 24 09:32:00 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8B3BA8C1 for ; Thu, 24 Apr 2014 09:32:00 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 31D821FC9 for ; Thu, 24 Apr 2014 09:32:00 +0000 (UTC) Received: from ox-dell39.ox.adestra.com (no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.8/8.14.8) with ESMTP id s3O9VipU059004 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 24 Apr 2014 10:31:52 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk s3O9VipU059004 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1398331912; bh=qsj83in//yhSzuO3r8HP+OmQzfDiWfw/dhM9QuOAN50=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Thu,=2024=20Apr=202014=2010:31:36=20+0100|From:=20Matthew =20Seaman=20|To:=20freebsd-questi ons@freebsd.org|Subject:=20Re:=20Assigning=20network=20interface=2 0to=20specific=20NIC?|References:=20<20140424090925.GA1330@aurora. oekb.co.at>|In-Reply-To:=20<20140424090925.GA1330@aurora.oekb.co.a t>; b=TrXNZoxXU9q0HYBKJGba0h08UVkWkcTPScVzQnS5pcWSEZnT50/TUcfuV2oGkGw9E 1x4u/IcWe8DfC0vgb/KAYJI5aY7vacBLp6BBe+7bkwEoC9zokWOBOUm7wU36CN62f0 I0pLs6kXIxbtYfBLb0bjgFKoRgrBmYMCSaXQd+N4= X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged) claimed to be ox-dell39.ox.adestra.com Message-ID: <5358D9F8.9030208@infracaninophile.co.uk> Date: Thu, 24 Apr 2014 10:31:36 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Assigning network interface to specific NIC? References: <20140424090925.GA1330@aurora.oekb.co.at> In-Reply-To: <20140424090925.GA1330@aurora.oekb.co.at> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6MGd14wn86D81htSAJJHSihWVmb2aXFGR" X-Virus-Scanned: clamav-milter 0.98.1 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RDNS_NONE autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2014 09:32:00 -0000 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--