Ethernet device arrangement incorrect

Tags:

I am running Etch on an Intel Pentium-M.

There are two intel/e1000 built-in NICs on the motherboard and there is an additional PCI expansion NIC card that I would like to add to the system - it is also intel/e1000. My problem is this, when I add the expansion NIC, for some reason it gets setup as eth0 instead of eth2. I want it to be eth2, but instead an incorrect arrangement results. The 1st onboard NIC, which was originally eth0 becomes "eth_rename" and cannot be accessed. Apparently it did not get configured correctly at boot-time. The 2nd onboard NIC, which was originally eth1, remains eth1. And, the expansion NIC becomes eth0. Anyone know how I can get these boards configured correctly and in the proper arrangement?

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Are you using ifrename?

Hi there

I've never seen an interface be named eth_rename automatically. Do you have 'ifrename' installed (e.g. aptitude search "~iifrename")?

I suggest you remove it. To give consistent names to network interfaces, use udev rules instead:

Create a file named like 010_netinterfaces.rules in /etc/udev/rules.d with the following contents:

KERNEL="eth*",SYSFS{address}="xx:xx:xx:xx:xx:xx",NAME="eth0"
KERNEL="eth*",SYSFS{address}="yy:yy:yy:yy:yy:yy",NAME="eth1"
KERNEL="eth*",SYSFS{address}="zz:zz:zz:zz:zz:zz",NAME="eth2"

where the xx:... stuff are the respective MAC addresses of the interfaces.

I hope that helps.
Cheers, Georg

udev rule not needed

Hi there

I just checked whether the custom udev rule is needed for Etch. It is not. Etch's udev creates and updates the rule /etc/udev/rules.d/z45_persistent-net-generator.rules automatically at the first appearance of an interface (i.e. the interface names will not change anymore).

If you want to change the name, you can still do that by editing that rule.

Cheers, Georg

Syndicate content