Now that I’ve got OpenWRT 10.03 “Backfire” running on my DIR-825, I decided to take advantage of the new USB tethering feature of Android 2.2 “Froyo”. I connected my Nexus One phone to the USB port of the DIR-825, and installed the following packages:
Once these were installed, I edited /etc/config/network, and under “config interface wan” replaced “option ifname eth1″ with “option ifname usb0″.
I enabled USB tethering on the phone, and upon rebooting the router, it successfully set up the usb0 network interface and obtained its IP address, netmask, default gateway, etc. from the phone via DHCP.
At this point the only problem is that if I disconnect the phone (or disable tethering), then reconnect, the usb0 interface appears, but does not get configured by dhcp.