With 2.6.x kernels it seems that it does not use the way like some documentation said. If you have sysfs mounted, type
find /sys -iname '*eth*' | grep usb as root. The only thing that should come up is some pieces of information what eth device it will be. I notice that /dev/usbdev3.2 was created the day that I tried my USB Linksys ethernet device.
The steps I used to figure it out:
1) login as root or use sudo
2) ifconfig
Code:
eth0 Link encap:Ethernet HWaddr 00:E0:4C:69:0A:0C
inet addr:192.168.1.170 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9752 errors:0 dropped:0 overruns:0 frame:0
TX packets:1446 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1608890 (1.5 Mb) TX bytes:1164127 (1.1 Mb)
Interrupt:17 Base address:0x4000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 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:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
3) ifconfig -a
Code:
eth0 Link encap:Ethernet HWaddr 00:E0:4C:69:0A:0C
inet addr:192.168.1.170 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9752 errors:0 dropped:0 overruns:0 frame:0
TX packets:1446 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1608890 (1.5 Mb) TX bytes:1164127 (1.1 Mb)
Interrupt:17 Base address:0x4000
eth1 Link encap:UNSPEC HWaddr 00-11-06-66-45-55-55-62-00-00-00-00-00-00-00-00
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)
eth2 Link encap:Ethernet HWaddr 00:E0:98:7A:5E:EE
UP BROADCAST RUNNING 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)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 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:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
4) I trial and error to bring up each eth device except eth0 and lo by typing [i]ifconfig ethX up[/]. Replace X with device number. Found that eth1 did not work, but eth2 did.
5) eth2 came up which match the output of
find /sys -iname '*eth*' | grep usb which was
/sys/devices/pci0000:00/0000:00:1e.0/0000:02:01.0/0000:03:08.0/usb3/3-3/3-3:1.0/net:eth2
so eth2 is actually my USB device. Who would of thought?
All you need to do is run ifconfig to set an IP address. Probably your eth device will be eth1. The reason why my was eth2 is because the script coldplug that Gentoo uses for hotplug loaded eth1394 module even though I do not have a firewire ethernet device.