D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] Naming a device with udev

 

I'm trying to give a friendly name to my interfaces.

I've googled on the subject and found various udev rule samples, none of 
which seem to work.

here's the output of udevinfo for what is presently eth0:-

  looking at device '/class/net/eth0':
     KERNEL=="eth0"
     SUBSYSTEM=="net"
     SYSFS{weight}=="16"
     SYSFS{tx_queue_len}=="1000"
     SYSFS{flags}=="0x1003"
     SYSFS{mtu}=="1500"
     SYSFS{operstate}=="up"
     SYSFS{dormant}=="0"
     SYSFS{carrier}=="1"
     SYSFS{broadcast}=="ff:ff:ff:ff:ff:ff"
     SYSFS{address}=="00:40:d0:97:0b:4f"
     SYSFS{link_mode}=="0"
     SYSFS{type}=="1"
     SYSFS{features}=="0x0"
     SYSFS{ifindex}=="2"
     SYSFS{iflink}=="2"
     SYSFS{addr_len}=="6"

   looking at device '/devices/pci0000:00/0000:00:1e.0/0000:09:08.0':
     ID=="0000:09:08.0"
     BUS=="pci"
     DRIVER=="e100"
 
SYSFS{modalias}=="pci:v00008086d00001092sv00001071sd00008258bc02sc00i00"
     SYSFS{local_cpus}=="ff"
     SYSFS{irq}=="66"
     SYSFS{class}=="0x020000"
     SYSFS{subsystem_device}=="0x8258"
     SYSFS{subsystem_vendor}=="0x1071"
     SYSFS{device}=="0x1092"
     SYSFS{vendor}=="0x8086"

   looking at device '/devices/pci0000:00/0000:00:1e.0':
     ID=="0000:00:1e.0"
     BUS=="pci"
     DRIVER==""
 
SYSFS{modalias}=="pci:v00008086d00002448sv00000000sd00000000bc06sc04i01"
     SYSFS{local_cpus}=="ff"
     SYSFS{irq}=="0"
     SYSFS{class}=="0x060401"
     SYSFS{subsystem_device}=="0x0000"
     SYSFS{subsystem_vendor}=="0x0000"
     SYSFS{device}=="0x2448"
     SYSFS{vendor}=="0x8086"

   looking at device '/devices/pci0000:00':
     ID=="pci0000:00"
     BUS==""
     DRIVER==""

I'm running Edgy

Thanks

James

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html