The opposite direction is described in usb.tethering
USB reverse tethering is used to connect your Smartphone over your OpenWrt-Router with the Internet. Follow:
- install usbnet:
opkg install kmod-usb-net
- now connect your smartphone to the USB port of your OpenWrt device
- put your smartphone into USB reverse thethering mode
- when your smartphone is connected to the USB bus in USB reverse thethering mode, a USB hotplug event should be triggered on the OpenWrt device and a new network interface
usbN(where N is a number starting from 0) should appear. You can then configure it like any other ethernet interface, e.g.
ip a a 192.168.6.254 dev usb0or
ifconfig usb0 inet 192.168.6.254 up
- make dropbear serve on usb0, see dhcp
Please note: Some smartphone, like e.g. the "HTC Desire" product family do not support Linux and atm it is not possible to use the above procedure, which is very simple and strait forward to connect your HTC Desire via USB via Linux to the Internet. For other OSes there is a special software called HTC sync. Me thinks the simplest solution is to not buy these products.
doc/howto/usb.reverse.tethering.txt · Last modified: 2012/07/27 18:52 by orca