nvram set wan_default=usb0
nvram set wan_iface=usb0
nvram set wan_ifname=usb0
nvram set wan_ifnames=usb0
nvram set wan_ifname2=usb0
nvram commit
reboot
The router reboots, so I assume it does its function.
Continuing on:
Quote:
Code:
insmod usbnet
insmod cdc_ether
udhcpc -i usb0
insmod: cannot insert '/lib/modules/4.4.70/usbnet.ko': File exists
insmod: cannot insert '/lib/modules/4.4.70/cdc_ether.ko': File exists
udhcpc: ioctl 0x8933 failed: No such device
The 'File exists' error is because I already executed this, so I know I can only do it once. However, the 'No such device' is worrisome. When I query ifconfig, there is no 'usb0' interface listed
When I plug in my usb, and turn on tether, I can see it listed, so I know the router sees it (the bold bus 001 device 004 is not listed when usb is not plugged into router):
Quote:
Code:
lsusb
Bus 001 Device 004: ID 05c6:9024
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001
Bus 003 Device 001: ID 1d6b:0002
Bus 004 Device 001: ID 1d6b:0003
Bus 005 Device 001: ID 1d6b:0002
Anyone have any idea why the Wan interface isn't changing to usb0, or something I'm doing wrong?
Is the intent of the nvram set wan_* function to create a new interface? I noticed that it doesn't matter what named interface I use, i.e. eth3, it still is not created when queried on ifconfig. I really want to understand how this works.
Living through hurricane harvey here in houston and internet/phone/cable has gone down so i figured i would tackle tethering my samsung S8 via USB to my Asus RT-AC68r
had no idea what i was in for... however i did get it working and figured out your issue/problem..
first you need to do the NVRAM sets like you did, but i figured out only 2 are necessary
make sure to make a note of your OLD settings on those nvram parameters, mine were both vlan2 (do a 'nvram show |grep wan_' to make sure yours are also vlan2 or if they are something else)
nvram set wan_default=usb0
nvram set wan_ifname2=usb0
nvram commit
reboot
Then
insmod usbnet
insmod cdc_ether
insmod rndis_host (not positive it is necessary but worked for me)
then
ifconfig usb0 up (this is the step you needed i believe)
udhcpc -i usb0
finally that worked for me and got the house active on my samsung s8 via USB to the router...
i DID have to 'play' with the phone some doing "enable usb tether" a few times if 'udhcpc -i usb0' didn't get an address.. and sometimes 'ifconfig usb0 up' wouldn't work 1st or 2nd time but would 3rd...
i am suprised this is not 'plug and play' it seems like they have it setup/build in for iphones but not androids.. (dunno y)
hopefully this helps you and others, i am by no means an "expert" just good at googling
Mod note 04.14.24:As of 55779 and later releases, Android USB Tethering is now included in DD-WRT for those routers which support it: