I’m using a Raspberry Pi running Raspbian as a router in my home network, with a USB ethernet adapter providing a second ethernet port. I would like to upgrade the hardware to an ORDOID C2 (much better network throughput) running DietPi (thanks for the great distro, guys!). When I connect my spare USB ethernet adapter to this system (ODROID/DietPi) I can see in dmesg that the device is recognized as a USB device. But it does not show up under /dev and ifconfig does not show any new network adapter, even if I connect a live ethernet cable.
Checking lsmod shows me that the driver module (asix.ko) has been loaded by the system. But I do not see usbnet nor mii (both of these modules are dependencies that get loaded if I connect this USB ethernet adapter to my Mint laptop. When I modprobe asix in DietPi I see no dependencies, but on my laptop both usbnet and mii are listed as dependencies. But (forgive me, I don’t remember all the stuff I did last night) something I saw in Dietpi gave me the impression that usbnet and mii might be built into the 3.14.79+ kernel. I modprobed all the other usb wifi drivers in DietPi and none of them list any dependencies. Is there some chance that none of these devices are actually going to work?
I tend to stay blissfully ignorant of the things in Linux that don’t give me trouble, so this is new territory for me. Is it reasonable to think that I should be able to add a second ethernet port to an ODROID C2 running DietPi? I really didn’t think there would be restrictions that might make that either really difficult or ridiculous. Maybe I bought the wrong hardware? I’ve been using a C2 for about a year as my home network’s main file server, running DietPi, and it has worked flawlessly the whole time. And my Raspberry Pi router has been working nicely for, um, not really sure but several years now. However, it is a bottleneck, and my ISP recently upgraded my connection speed to the point that the Pi has got to go. I’d really like to push this through, but at the moment I’m stuck. Suggestions?
It is possible, but not via dietpi-config
Quick check with Odroid C2 and Edimax EU-4208:
Bus 001 Device 003: ID 0b95:772b ASIX Electronics Corp. AX88772B
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@Odroid-C2:~# ip a
6: usbnet0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 00:50:b6:17:50:7f brd ff:ff:ff:ff:ff:ff
root@Odroid-C2:~# ifconfig usbnet0 10.10.10.1/24 up
root@Odroid-C2:~# ifconfig usbnet0
usbnet0 Link encap:Ethernet HWaddr 00:50:b6:17:50:7f
inet addr:10.10.10.1 Bcast:10.10.10.255 Mask:255.255.255.0
inet6 addr: fe80::250:b6ff:fe17:507f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:115 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:11631 (11.3 KiB) TX bytes:696 (696.0 B)
[3756635.529442] usb 1-1.1: new high-speed USB device number 6 using dwc_otg
[3756636.467192] asix 1-1.1:1.0 usbnet0: register 'asix' at usb-dwc2_b-1.1, ASIX AX88772B USB 2.0 Ethernet, 00:50:b6:17:50:7f
[3756983.235778] IPv6: ADDRCONF(NETDEV_UP): usbnet0: link is not ready
[3756983.239945] asix 1-1.1:1.0 usbnet0: link down
[3756985.033562] IPv6: ADDRCONF(NETDEV_CHANGE): usbnet0: link becomes ready
[3756985.034081] asix 1-1.1:1.0 usbnet0: link up, 100Mbps, full-duplex, lpa 0xC1E1
root@Odroid-C2:~# ping 10.10.10.10 -c 4
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
64 bytes from 10.10.10.10: icmp_seq=1 ttl=64 time=1.36 ms
64 bytes from 10.10.10.10: icmp_seq=2 ttl=64 time=0.572 ms
64 bytes from 10.10.10.10: icmp_seq=3 ttl=64 time=0.477 ms
64 bytes from 10.10.10.10: icmp_seq=4 ttl=64 time=0.463 ms
--- 10.10.10.10 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3001ms
rtt min/avg/max/mdev = 0.463/0.718/1.361/0.373 ms
for me it works here.
Thanks, k-plan for the prompt reply!
I somehow expected to see the new ethernet port in ifconfig even if it had not been told to go “up” yet. Also, I was unaware of the ip command, which I’m going to have to get more familiar with. It was working the whole time, just needed to be configured by someone who actually knows what they’re doing…