From owner-freebsd-questions@FreeBSD.ORG Mon Sep 8 20:00:57 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25EAA1065671 for ; Mon, 8 Sep 2008 20:00:57 +0000 (UTC) (envelope-from bthielsen@safarivideonetworks.com) Received: from smtp.ltn.lvc.com (static-66-14-195-72.bdsl.verizon.net [66.14.195.72]) by mx1.freebsd.org (Postfix) with ESMTP id CC67D8FC13 for ; Mon, 8 Sep 2008 20:00:56 +0000 (UTC) (envelope-from bthielsen@safarivideonetworks.com) Received: from localhost (localhost [127.0.0.1]) by macgyver.ltn.lvc.com (Postfix) with ESMTP id E178B6A0B3C for ; Mon, 8 Sep 2008 16:00:55 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at macgyver.ltn.lvc.com Received: from macgyver.ltn.lvc.com ([127.0.0.1]) by localhost (macgyver.ltn.lvc.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id o7PCUiKjYwGQ for ; Mon, 8 Sep 2008 16:00:42 -0400 (EDT) Received: from heliax.ltn.lvc.com (heliax.ltn.lvc.com [10.10.101.200]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by macgyver.ltn.lvc.com (Postfix) with ESMTPSA id 217CB6A0B35 for ; Mon, 8 Sep 2008 16:00:41 -0400 (EDT) Message-Id: <450623E8-0D91-4088-BB92-FEB26F751C84@safarivideonetworks.com> From: benjamin thielsen To: freebsd-questions@freebsd.org In-Reply-To: <45DBB5D8-F8BB-43E0-8920-00A41AAE0EF6@olivent.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Date: Mon, 8 Sep 2008 16:00:41 -0400 References: <24450181-D401-401F-81B3-5EBFB9C737DF@safarivideonetworks.com> <45DBB5D8-F8BB-43E0-8920-00A41AAE0EF6@olivent.com> X-Mailer: Apple Mail (2.926) Subject: Re: changing network interface names X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2008 20:00:57 -0000 On Sep 08, 2008, at 12.03, Mikel King wrote: > > On Sep 8, 2008, at 11:24 AM, benjamin thielsen wrote: > >> hi- >> >> i have a computer with 2 ethernet interfaces (a dell poweredge >> 2900) on which the interface names are transposed logically versus >> physically (e.g. the interface labelled "ethernet 1" is named >> "bce1" and the interface labelled "ethernet 2" is labelled "bce0"). >> >> how can i change this, aside from using the ifconfig name argument? >> >> thanks >> -ben >> ____________________ > > Ben, > > The manpage for rc.conf includes the following example: > > It is also possible to rename interface by doing: > > ifconfig_ed0_name="net0" > ifconfig_net0="inet 10.0.0.1 netmask 0xffff0000" > > Obviously you can also do this manually w/ ifconfig, but I suspect > hat you'd like this change to occurr everytime you restart. > > > Cheers, > Mikel King hi- thanks for the reply. is there no other way aside from ifconfig? i was hoping for a mechanism to say something like "this device at pci address X should be considered the first interface" or such. pciconf - w seemed like it might be suitable, but i'm not quite sure how one would go about that. my goal is to be able to do it earlier in the boot process, and avoid playing musical interface names with ifconfig if i want to retain the existing naming convention. there must be some logic that relates to which interface is picked up or labelled first, no? thanks -ben