STEP 1:
For Windows: Install USB drivers from Android SDK
For Linux: Nothing to do
STEP 2:
On Nexus One: Connect USB cable and activate USB Tethering. You should see on linux or windows a new network interface.
STEP 3:
On Linux Computer, setup a bridge:
# usb0 is the new network intreface
# eth0 is the main interface connected to internet (or a gateway)
sudo ifconfig eth0 0.0.0.0
sudo ifconfig usb0 0.0.0.0
sudo brctl addbr br0
sudo brctl addif br0 eth0
sudo brctl addif br0 usb0
sudo ifconfig br0 up
sudo dhclient br0
See https://help.ubuntu.com/community/NetworkConnectionBridge to setup bridges
On windows, Bridge the 2 network interfaces
STEP 4:
Setup usb0 interface of your phone. You have to options:
You should now be able to connect to Internet on your phone using your computer’s Internet connection.
Try to do a ping www.google.com to be sure !
STEP 5:
To shut down the reverse-tethering, first unbridge interfaces on your computer:
sudo ifconfig eth0 down
sudo ifconfig usb0 down
sudo ifconfig br0 down
sudo brctl delbr br0
sudo ifconfig eth0 up
sudo dhclient eth0
Then on your phone, uncheck the USB Tethering option !
For Windows: Install USB drivers from Android SDK
For Linux: Nothing to do
STEP 2:
On Nexus One: Connect USB cable and activate USB Tethering. You should see on linux or windows a new network interface.
STEP 3:
On Linux Computer, setup a bridge:
# usb0 is the new network intreface
# eth0 is the main interface connected to internet (or a gateway)
sudo ifconfig eth0 0.0.0.0
sudo ifconfig usb0 0.0.0.0
sudo brctl addbr br0
sudo brctl addif br0 eth0
sudo brctl addif br0 usb0
sudo ifconfig br0 up
sudo dhclient br0
See https://help.ubuntu.com/community/NetworkConnectionBridge to setup bridges
On windows, Bridge the 2 network interfaces
STEP 4:
Setup usb0 interface of your phone. You have to options:
- From your computer, execute:
- Or in a root terminal on your phone, type:
You should now be able to connect to Internet on your phone using your computer’s Internet connection.
Try to do a ping www.google.com to be sure !
STEP 5:
To shut down the reverse-tethering, first unbridge interfaces on your computer:
sudo ifconfig eth0 down
sudo ifconfig usb0 down
sudo ifconfig br0 down
sudo brctl delbr br0
sudo ifconfig eth0 up
sudo dhclient eth0
Then on your phone, uncheck the USB Tethering option !
0 comments:
Post a Comment