Mombu the GNU Linux Forum sponsored links

Go Back   Mombu the GNU Linux Forum > GNU_Linux > renaming network interface with udev ?
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 29th October 20:28
mikep
External User
 
Posts: 1
Default renaming network interface with udev ?


Using udev-025-r1 and baselayout-1.9.1
Here are my udev.rules for renaming the interfaces:

##Rename network interfaces
BUS="pci", SYSFS{device}="0x8169", NAME="eth0"
BUS="pci", SYSFS{device}="0x8139", NAME="eth1"

and syslog shows that the rules are applied:

udev[7620]: configured rule in '/etc/udev/rules.d//10-udev.rules' at line 3
applied, 'eth0' becomes 'eth1'

udev[7621]: configured rule in '/etc/udev/rules.d//10-udev.rules' at line 2
applied, 'eth1' becomes 'eth0'

However, the end result is that device 0x8139 is still configured as
eth0 as udevinfo shows:

udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful
attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.

looking at class device '/sys/class/net/eth0':
SYSFS{addr_len}="6"
SYSFS{address}="00:01:0a:10:a7:3b"
SYSFS{broadcast}="ff:ff:ff:ff:ff:ff"
SYSFS{features}="0x29"
SYSFS{flags}="0x1003"
SYSFS{ifindex}="2"
SYSFS{iflink}="2"
SYSFS{mtu}="1500"
SYSFS{tx_queue_len}="1000"
SYSFS{type}="1"

follow the class device's "device"
looking at the device chain at
'/sys/devices/pci0000:00/0000:00:08.0/0000:01:07.0':
BUS="pci"
ID="0000:01:07.0"
SYSFS{class}="0x020000"
SYSFS{detach_state}="0"
SYSFS{device}="0x8139"
SYSFS{irq}="5"
SYSFS{subsystem_device}="0x8139"
SYSFS{subsystem_vendor}="0x1436"
SYSFS{vendor}="0x10ec"
.......................................

Anyone have success with network interface renaming rules?


--
gentoo-user@gentoo.org mailing list
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666