network cards (2 or 3) not staying put..

Daniel Kahn Gillmor dkg-lists.ubuntu.com at fifthhorseman.net
Tue Jul 4 13:54:35 UTC 2006


On July 4, ogra at ubuntu.com said:

 > Am Dienstag, den 04.07.2006, 08:10 -0400 schrieb Alfred:
 > 
 > > has anyone had trouble with dual or triple network cards
 > > switching positions?  Example one bootup and card #1 is eth0 and
 > > the next it is eth3
 >
 > have a look at /etc/iftab and man iftab you can bind them fixed to
 > a interface name by specifying the MAC address.

You can also use udev on its own to handle this cleanly, without
involving ifrename:

  http://www.debian-administration.org/users/Utumno/weblog/2

For example:

[0 dkg at squeak ~]$ cat /etc/udev/netinterfaces.rules
KERNEL=="eth*",    SYSFS{address}=="29:19:db:4b:b6:6b",  NAME="3com"
KERNEL=="eth*",    SYSFS{address}=="d7:53:f6:7d:fd:d8",  NAME="wireless"
KERNEL=="eth*",    SYSFS{address}=="f1:c1:a1:27:10:f0",  NAME="wired"
KERNEL=="eth*",    SYSFS{address}=="26:df:48:50:b0:db:86:c5",   NAME="fw"
[0 dkg at squeak ~]$ ls -la /etc/udev/rules.d/010_netinterfaces.rules 
lrwxrwxrwx 1 root root 22 2006-06-05 01:36 /etc/udev/rules.d/010_netinterfaces.rules -> ../netinterfaces.rules
[0 dkg at squeak ~]$ 

hth,

	--dkg




More information about the edubuntu-devel mailing list