Thread: lsusb ifconfig association?
i'm trying figure out device which. i've got 4 usbs connected hubs (devices 5,6,8,9). i'm trying find out mac addrs are. there way see device eth?
code:gurt@mingus:/etc/udev/rules.d$ lsusb -t bus# 1 `-dev# 1 vendor 0x1d6b product 0x0002 |-dev# 2 vendor 0x058f product 0x6254 | |-dev# 5 vendor 0x0a46 product 0x9601 | `-dev# 6 vendor 0x0a46 product 0x0268 |-dev# 3 vendor 0x058f product 0x6254 | |-dev# 8 vendor 0x0a46 product 0x0268 | `-dev# 9 vendor 0x0a46 product 0x9601 `-dev# 4 vendor 0x0ace product 0x1215code:gurt@mingus:/etc/udev/rules.d$ ifconfig | grep eth eth0 link encap:ethernet hwaddr 00:e0:4d:8c:d6:e0 eth1 link encap:ethernet hwaddr 00:02:b3:28:52:2c eth2 link encap:ethernet hwaddr 00:02:b3:28:50:7f eth3 link encap:ethernet hwaddr 00:02:b3:28:50:80 eth4 link encap:ethernet hwaddr 00:02:b3:28:52:6a eth5 link encap:ethernet hwaddr 00:02:b3:28:52:6b eth6 link encap:ethernet hwaddr 00:02:b3:28:52:2d eth8 link encap:ethernet hwaddr 00:60:6e:35:8e:a2 eth9 link encap:ethernet hwaddr 00:60:6e:35:ce:a3 eth10 link encap:ethernet hwaddr 00:60:6e:92:4a:f4 eth11 link encap:ethernet hwaddr 00:60:6e:35:fc:a3
you might work way through /sys/class/net. have eth/wlan devices. if have wlan0, can check /sys/class/net/wlan0/device/vendor , /sys/class/net/wlan0/device/device vendor/device info match lsusb values.
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Hardware [ubuntu] lsusb ifconfig association?
Ubuntu
Comments
Post a Comment