usb0 network interface

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
LogicalUnit
DD-WRT Novice


Joined: 18 Apr 2015
Posts: 32

PostPosted: Wed Jan 12, 2022 3:36    Post subject: usb0 network interface Reply with quote
Hi there,

I have a Raspberry Pi Zero which I have configured to use ethernet over USB. When I connect it to my other Linux devices, a usb0 interface appears on the host which I can use to communicate with the Pi. However this does not appear in DD-WRT when I connect the Pi to it. What is required to make the usb0 interface appear in DD-WRT so I can communicate with the Raspberry Pi Zero? Thank you.
Sponsor
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6855
Location: Romerike, Norway

PostPosted: Fri Jan 28, 2022 13:52    Post subject: Reply with quote
Have you enabled USB over IP on the Services->USB tab?
LogicalUnit
DD-WRT Novice


Joined: 18 Apr 2015
Posts: 32

PostPosted: Wed Apr 13, 2022 5:57    Post subject: Reply with quote
Per Yngve Berg wrote:
Have you enabled USB over IP on the Services->USB tab?


Ah thank you for this! I will enable that and try again Smile
LogicalUnit
DD-WRT Novice


Joined: 18 Apr 2015
Posts: 32

PostPosted: Thu Apr 14, 2022 12:37    Post subject: Reply with quote
I've enabled Core USB support and USB over IP, but I don't see a usb0 interface when I type ifconfig in my terminal sesssion.
LogicalUnit
DD-WRT Novice


Joined: 18 Apr 2015
Posts: 32

PostPosted: Thu Apr 14, 2022 12:45    Post subject: Reply with quote
ifconfig output
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7647

PostPosted: Sun Apr 17, 2022 14:19    Post subject: Reply with quote
You need an ethernet over USB driver on the dd-wrt side, probably cdc_ether which is a kernel module and therefore has to be built at the same time as the kernel. It is normally not included in dd-wrt in order to save flash space.

You don't need to enable USBIP, that is the opposite of what you want to do.
It transports a physical USB device from one computer to another over an ethernet connection.

_________________
Kernel panic: Aiee, killing interrupt handler!
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12812
Location: Netherlands

PostPosted: Sun Apr 17, 2022 18:23    Post subject: Reply with quote
Maybe this applies?:
https://wiki.dd-wrt.com/wiki/index.php?title=Special:PdfPrint&page=Cellular_Phone/USB_Modem_as_WAN_connection

Depending on kernel versions you want I have some modules lying around Smile

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
LogicalUnit
DD-WRT Novice


Joined: 18 Apr 2015
Posts: 32

PostPosted: Mon Apr 18, 2022 8:00    Post subject: Reply with quote
LOM wrote:
You need an ethernet over USB driver on the dd-wrt side, probably cdc_ether which is a kernel module and therefore has to be built at the same time as the kernel. It is normally not included in dd-wrt in order to save flash space.


Okay cool, thanks for the info. Kernel modules are an aspect of Linux I'm not super familiar with. Is this something that can be added to an existing setup, or do I need to build my own kernel manually? Any instructions on how to do this?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12812
Location: Netherlands

PostPosted: Mon Apr 18, 2022 9:53    Post subject: Reply with quote
I am also not an expert but kernel modules can be added on the fly (insmod or modprobe).

I can built the modules you want for K4.4. and K4.9

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum