vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I am trying to rename my eth devices using udev (otherwise they keep changing from boot to boot somewhere between eth0 and eth2). I try this: KERNEL="eth*", SYSFS{address}=="55:55:55:55:55:55", NAME="lan" KERNEL="eth*", SYSFS{address}=="66:66:66:66:66:66", NAME="wlan" (With the correct mac addresses of course, that I double checked a few times.) I wonder why this works with the wlan device (which uses the ipw2200 driver) while it does not work with the wired lan interface. That is created by the skge driver and even after this rule remains either eth0 or eth1... I thought that I could also try with a different udev line, like DRIVER="*skge*", NAME="lan" but I am not sure what the actual correct syntax was to find the skge driver in the device tree? Any hints? Peter. |
| |||
| On Thu, 27 Apr 2006 12:10:37 +0200, Peter Weilbacher wrote: > I am trying to rename my eth devices using udev (otherwise they keep > changing from boot to boot somewhere between eth0 and eth2). I try this: > > KERNEL="eth*", SYSFS{address}=="55:55:55:55:55:55", NAME="lan" > KERNEL="eth*", SYSFS{address}=="66:66:66:66:66:66", NAME="wlan" > > (With the correct mac addresses of course, that I double checked a few > times.) I wonder why this works with the wlan device (which uses the > ipw2200 driver) while it does not work with the wired lan > interface. [...] > > Any hints? Shamelessly copied from <http://reactivated.net/writing_udev_rules.html>: > # udevinfo -a -p /sys/class/net/eth0/ > looking at class device '/sys/class/net/eth0': > SYSFS{address}=="00:52:8b:d5:04:48" > > [...] make sure you use the MAC address you obtain from udevinfo (as > above), because it is case sensitive. Be careful when using utilities > such as ifconfig as they will capitalize the letters. Just something to watch out for - it may have caught you out. Hth, -- Ben Measures $email =~ s/is@silly/@/ |
| ||||
| Ben Measures wrote: > Shamelessly copied from <http://reactivated.net/writing_udev_rules.html>: >> # udevinfo -a -p /sys/class/net/eth0/ >> looking at class device '/sys/class/net/eth0': >> SYSFS{address}=="00:52:8b:d5:04:48" >> >> [...] make sure you use the MAC address you obtain from udevinfo (as >> above), because it is case sensitive. Be careful when using utilities >> such as ifconfig as they will capitalize the letters. > > Just something to watch out for - it may have caught you out. It did. ;-) With lower case it works fine. Thanks! Funny, because I was at that page before, probably I looked for the wrong keywords... In the meantime I also learned that I could silence the warnings about deprecated "%e" in the udev rules by just commenting the lines # ENV{ID_CDROM}=="?*", SYMLINK+="cdrom%e", GROUP="cdrom" # ENV{ID_CDROM_CD_RW}=="?*", SYMLINK+="cdrw%e" # ENV{ID_CDROM_DVD}=="?*", SYMLINK+="dvd%e" # ENV{ID_CDROM_DVD_R}=="?*", SYMLINK+="dvdrw%e" and to remove /dev/ttyS? before doing a reboot to silence some warnings that mknod did not work during the udev events process at startup. Now I am mostly happy with udev again. :-) But next time I will think harder before I update... Peter. |