Sunday, August 17, 2014

Andriod USB tethering to Linux

1- andriod -- enable usb tethering
2- Linux enable ethernet usb device and receive dhcp configuration from the phone
# tail -f /var/log/syslog
 Aug 17 10:56:14 dra-pc kernel: [10741.606629] rndis_host 3-2:1.0 usb0: register 'rndis_host' at usb-0000:00:14.0-2, RNDIS device, 8e:3e:9a:7f:61:3b
Aug 17 10:56:14 dra-pc mtp-probe: checking bus 3, device 18: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2"

# ifconfig usb0 up
# dhclient usb0
# ip route show
default via 192.168.42.129 dev usb0

No comments:

Post a Comment