ifconfig root@armadillo:~# LANG=C ifconfig eth0 Link encap:Ethernet HWaddr 00:11:0c:1d:07:ab inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::211:cff:fe1d:7ab/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:512 errors:0 dropped:251 overruns:0 frame:0 TX packets:790 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:64849 (63.3 KiB) TX bytes:117513 (114.7 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:16 errors:0 dropped:0 overruns:0 frame:0 TX packets:16 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2304 (2.2 KiB) TX bytes:2304 (2.2 KiB) rename11 Link encap:Ethernet HWaddr be:ec:c2:82:6a:03 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) usb0 Link encap:Ethernet HWaddr 02:80:79:97:85:40 inet addr:192.168.15.208 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::80:79ff:fe97:8540/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:150 errors:0 dropped:0 overruns:0 frame:0 TX packets:298 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:13018 (12.7 KiB) TX bytes:33825 (33.0 KiB) wlan0 Link encap:Ethernet HWaddr 98:84:e3:4c:77:10 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) udevadm -- rename11 root@armadillo:~# udevadm info --attribute-walk --path=/sys/class/net/rename11 Udevadm info 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/soc/30800000.aips-bus/30b10000.usb/ci_hdrc.0/gadget/net/rename11': KERNEL=="rename11" SUBSYSTEM=="net" DRIVER=="" ATTR{mtu}=="1500" ATTR{type}=="1" ATTR{netdev_group}=="0" ATTR{flags}=="0x1003" ATTR{dormant}=="0" ATTR{addr_assign_type}=="3" ATTR{dev_id}=="0x0" ATTR{iflink}=="11" ATTR{addr_len}=="6" ATTR{address}=="be:ec:c2:82:6a:03" ATTR{operstate}=="down" ATTR{broadcast}=="ff:ff:ff:ff:ff:ff" ATTR{tx_queue_len}=="1000" ATTR{ifalias}=="" ATTR{ifindex}=="11" ATTR{link_mode}=="0" ATTR{carrier}=="0" looking at parent device '/devices/soc/30800000.aips-bus/30b10000.usb/ci_hdrc.0/gadget': KERNELS=="gadget" SUBSYSTEMS=="" DRIVERS=="" ATTRS{suspended}=="0" looking at parent device '/devices/soc/30800000.aips-bus/30b10000.usb/ci_hdrc.0': KERNELS=="ci_hdrc.0" SUBSYSTEMS=="platform" DRIVERS=="ci_hdrc" ATTRS{uframe_periodic_max}=="0" looking at parent device '/devices/soc/30800000.aips-bus/30b10000.usb': KERNELS=="30b10000.usb" SUBSYSTEMS=="platform" DRIVERS=="imx_usb" looking at parent device '/devices/soc/30800000.aips-bus': KERNELS=="30800000.aips-bus" SUBSYSTEMS=="platform" DRIVERS=="" looking at parent device '/devices/soc': KERNELS=="soc" SUBSYSTEMS=="platform" DRIVERS=="" udevadm -- usb0 root@armadillo:~# udevadm info --attribute-walk --path=/sys/class/net/usb0 Udevadm info 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/soc/30800000.aips-bus/30b20000.usb/ci_hdrc.1/usb2/2-1/2-1:1.0/net/usb0': KERNEL=="usb0" SUBSYSTEM=="net" DRIVER=="" ATTR{mtu}=="1500" ATTR{type}=="1" ATTR{netdev_group}=="0" ATTR{flags}=="0x1003" ATTR{dormant}=="0" ATTR{addr_assign_type}=="0" ATTR{dev_id}=="0x0" ATTR{iflink}=="3" ATTR{addr_len}=="6" ATTR{address}=="02:80:79:97:85:40" ATTR{operstate}=="unknown" ATTR{broadcast}=="ff:ff:ff:ff:ff:ff" ATTR{tx_queue_len}=="1000" ATTR{ifalias}=="" ATTR{ifindex}=="3" ATTR{link_mode}=="0" ATTR{carrier}=="1" looking at parent device '/devices/soc/30800000.aips-bus/30b20000.usb/ci_hdrc.1/usb2/2-1/2-1:1.0': KERNELS=="2-1:1.0" SUBSYSTEMS=="usb" DRIVERS=="cdc_ether" ATTRS{bInterfaceClass}=="02" ATTRS{iad_bFunctionClass}=="02" ATTRS{iad_bFirstInterface}=="00" ATTRS{bInterfaceSubClass}=="06" ATTRS{bInterfaceProtocol}=="00" ATTRS{bNumEndpoints}=="01" ATTRS{iad_bFunctionSubClass}=="06" ATTRS{iad_bFunctionProtocol}=="00" ATTRS{supports_autosuspend}=="1" ATTRS{iad_bInterfaceCount}=="02" ATTRS{bAlternateSetting}==" 0" ATTRS{bInterfaceNumber}=="00" ATTRS{interface}=="CDC Ethernet Control Model (ECM)" looking at parent device '/devices/soc/30800000.aips-bus/30b20000.usb/ci_hdrc.1/usb2/2-1': KERNELS=="2-1" SUBSYSTEMS=="usb" DRIVERS=="usb" ATTRS{bDeviceSubClass}=="02" ATTRS{bDeviceProtocol}=="01" ATTRS{devpath}=="1" ATTRS{idVendor}=="1e2d" ATTRS{speed}=="480" ATTRS{bNumInterfaces}==" 4" ATTRS{bConfigurationValue}=="1" ATTRS{bMaxPacketSize0}=="64" ATTRS{busnum}=="2" ATTRS{devnum}=="2" ATTRS{configuration}=="SQN Multifunction Composite Gadget" ATTRS{bMaxPower}=="300mA" ATTRS{authorized}=="1" ATTRS{bmAttributes}=="a0" ATTRS{bNumConfigurations}=="1" ATTRS{maxchild}=="0" ATTRS{bcdDevice}=="0307" ATTRS{avoid_reset_quirk}=="0" ATTRS{quirks}=="0x0" ATTRS{serial}=="408597798002" ATTRS{version}==" 2.00" ATTRS{urbnum}=="2017" ATTRS{ltm_capable}=="no" ATTRS{manufacturer}=="Sequans Communications" ATTRS{removable}=="unknown" ATTRS{idProduct}=="00a0" ATTRS{bDeviceClass}=="ef" ATTRS{product}=="SQN" looking at parent device '/devices/soc/30800000.aips-bus/30b20000.usb/ci_hdrc.1/usb2': KERNELS=="usb2" SUBSYSTEMS=="usb" DRIVERS=="usb" ATTRS{bDeviceSubClass}=="00" ATTRS{bDeviceProtocol}=="01" ATTRS{devpath}=="0" ATTRS{idVendor}=="1d6b" ATTRS{speed}=="480" ATTRS{bNumInterfaces}==" 1" ATTRS{bConfigurationValue}=="1" ATTRS{bMaxPacketSize0}=="64" ATTRS{authorized_default}=="1" ATTRS{busnum}=="2" ATTRS{devnum}=="1" ATTRS{configuration}=="" ATTRS{bMaxPower}=="0mA" ATTRS{authorized}=="1" ATTRS{bmAttributes}=="e0" ATTRS{bNumConfigurations}=="1" ATTRS{maxchild}=="1" ATTRS{bcdDevice}=="0314" ATTRS{avoid_reset_quirk}=="0" ATTRS{quirks}=="0x0" ATTRS{serial}=="ci_hdrc.1" ATTRS{version}==" 2.00" ATTRS{urbnum}=="25" ATTRS{ltm_capable}=="no" ATTRS{manufacturer}=="Linux 3.14.79-at19 ehci_hcd" ATTRS{removable}=="unknown" ATTRS{idProduct}=="0002" ATTRS{bDeviceClass}=="09" ATTRS{product}=="EHCI Host Controller" looking at parent device '/devices/soc/30800000.aips-bus/30b20000.usb/ci_hdrc.1': KERNELS=="ci_hdrc.1" SUBSYSTEMS=="platform" DRIVERS=="ci_hdrc" ATTRS{uframe_periodic_max}=="0" looking at parent device '/devices/soc/30800000.aips-bus/30b20000.usb': KERNELS=="30b20000.usb" SUBSYSTEMS=="platform" DRIVERS=="imx_usb" looking at parent device '/devices/soc/30800000.aips-bus': KERNELS=="30800000.aips-bus" SUBSYSTEMS=="platform" DRIVERS=="" looking at parent device '/devices/soc': KERNELS=="soc" SUBSYSTEMS=="platform" DRIVERS==""