https://bugzilla.novell.com/show_bug.cgi?id=365501
User sassmann@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=365501#c1
--- Comment #1 from Stefan Assmann 2008-02-28 02:17:27 MST ---
udevinfo -a -p /sys/class/net/eth0/
Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/ps3_system/sb_04/net/eth0':
KERNEL=="eth0"
SUBSYSTEM=="net"
DRIVER==""
ATTR{addr_len}=="6"
ATTR{iflink}=="2"
ATTR{ifindex}=="2"
ATTR{features}=="0x402"
ATTR{type}=="1"
ATTR{link_mode}=="0"
ATTR{address}=="00:19:c5:5c:c2:7f"
ATTR{broadcast}=="ff:ff:ff:ff:ff:ff"
ATTR{carrier}=="1"
ATTR{dormant}=="0"
ATTR{operstate}=="unknown"
ATTR{mtu}=="1500"
ATTR{flags}=="0x1023"
ATTR{tx_queue_len}=="1000"
looking at parent device '/devices/ps3_system/sb_04/net':
KERNELS=="net"
SUBSYSTEMS==""
DRIVERS==""
looking at parent device '/devices/ps3_system/sb_04':
KERNELS=="sb_04"
SUBSYSTEMS=="ps3_system_bus"
DRIVERS=="ps3_gelic_driver"
ATTRS{modalias}=="ps3:3"
looking at parent device '/devices/ps3_system':
KERNELS=="ps3_system"
SUBSYSTEMS==""
DRIVERS==""
udevinfo -a -p /sys/class/net/eth1_rename_ren/
Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/ps3_system/sb_04/net/eth1_rename_ren':
KERNEL=="eth1_rename_ren"
SUBSYSTEM=="net"
DRIVER==""
ATTR{addr_len}=="6"
ATTR{iflink}=="3"
ATTR{ifindex}=="3"
ATTR{features}=="0x402"
ATTR{type}=="1"
ATTR{link_mode}=="0"
ATTR{address}=="00:19:c5:5c:c2:7f"
ATTR{broadcast}=="ff:ff:ff:ff:ff:ff"
ATTR{operstate}=="down"
ATTR{mtu}=="1500"
ATTR{flags}=="0x1002"
ATTR{tx_queue_len}=="1000"
looking at parent device '/devices/ps3_system/sb_04/net':
KERNELS=="net"
SUBSYSTEMS==""
DRIVERS==""
looking at parent device '/devices/ps3_system/sb_04':
KERNELS=="sb_04"
SUBSYSTEMS=="ps3_system_bus"
DRIVERS=="ps3_gelic_driver"
ATTRS{modalias}=="ps3:3"
looking at parent device '/devices/ps3_system':
KERNELS=="ps3_system"
SUBSYSTEMS==""
DRIVERS==""
/etc/udev/rules.d/70-persistent-net.rules
# net device
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:19:c5:5c:c2:7e", ATTR{type}=="1", NAME="eth1_rename_ren"
# net device
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:19:c5:5c:c2:7f", ATTR{type}=="1", NAME="eth0"
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.