changing network interface names
benjamin thielsen
bthielsen at safarivideonetworks.com
Mon Sep 8 20:00:57 UTC 2008
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
More information about the freebsd-questions
mailing list