Android Phone connection over USB

Hello,

i tried to bind my old rooted android phone to my br-lan interface but have no plan how to do it.
When i type in on the phone "ifconfig" i have the interfaces: lo,rmnet0 and rndis0 when i activate thetering.
In Openwrt the usual usb0 device doesn't show up with only the package kmod-usb-net installed till i install the kmod-usb-net-rndis package than it shows up.
The rndis interface on the phone hast a IP something like that: 192.168.10.x
So tried a "ifconfig rndis0 0.0.0.0 0.0.0.0" on the phone and than hoped when i add the usb0 device to br-lan bridge in Openwrt it gets an IP from the dhcp server but that is not the case.
So the last thing i tried with usb0 attached to the br-lan bridge was an "ifconfig usb0 192.168.1.241" than the whole Router freezed and wasnt reachable on http or ssh.
So i think the rndis interface is just for WAN purposes.
Is there a way to make an ipv4 connection working on openwrt to and from the mobile phone with USB attached ? i mean it gives usb to Lan Adapters so why is not possible on usb only ?

thanks for any help !

Seen https://openwrt.org/docs/guide-user/network/wan/smartphone.usb.tethering ?

1 Like