You are not logged in.

#1 2009-07-22 02:15:41

anarxi
Member
From: schaumburg, IL
Registered: 2008-12-20
Posts: 55
Website

[solved] eth device name changes after reboot (2 nic)

I got two nic, eth0 and eth1 (integrated, and pci card). cable attached only to pci card, but after every reboot I have to change rc.conf from eth0, to eth1 and vice versa. how do I make it stay?

Last edited by anarxi (2009-07-22 14:54:37)


there is now knowledge that is not power

Offline

#2 2009-07-22 02:34:52

beroal
Member
From: Ukraine
Registered: 2009-06-07
Posts: 325
Website

Re: [solved] eth device name changes after reboot (2 nic)


we are not condemned to write ugly code

Offline

#3 2009-07-22 06:49:27

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [solved] eth device name changes after reboot (2 nic)

Additionally, if you only use one of them, you can just blacklist the driver for the other one.

Offline

#4 2009-07-22 11:59:17

anarxi
Member
From: schaumburg, IL
Registered: 2008-12-20
Posts: 55
Website

Re: [solved] eth device name changes after reboot (2 nic)

t.y.

SUBSYSTEM=="net", ATTRS{address}=="aa:bb:cc:dd:ee:ff", NAME="lan0"
SUBSYSTEM=="net", ATTRS{address}=="ff:ee:dd:cc:bb:aa", NAME="wlan0"

id the trick, but for the future reference maybe anyone know, how do I find out which modules are being loaded for which card?  (to use first solution from link)

MODULES=(8139too e100)

there is now knowledge that is not power

Offline

#5 2009-07-22 13:20:34

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: [solved] eth device name changes after reboot (2 nic)

udevadm info -a -p /sys/class/net/<yourdevice> | grep DRIVERS

although the first solution doesn't consistently work.

Offline

#6 2009-07-22 14:54:26

anarxi
Member
From: schaumburg, IL
Registered: 2008-12-20
Posts: 55
Website

Re: [solved] eth device name changes after reboot (2 nic)

stryder wrote:
udevadm info -a -p /sys/class/net/<yourdevice> | grep DRIVERS

although the first solution doesn't consistently work.

ty


there is now knowledge that is not power

Offline

#7 2009-07-22 23:04:52

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [solved] eth device name changes after reboot (2 nic)

lspci -k shows all devices with corresponding drivers/modules.

Offline

Board footer

Powered by FluxBB