Tuesday, September 28, 2010

HTC Legend USB tethering with Linux

HTC Legend USB tethering works out of the box with Linux, nothing else was required which was pretty cool.

usb0 Link encap:Ethernet HWaddr xxxxxxxxxx
inet addr:192.168.100.100 Bcast:192.168.100.255 Mask:255.255.255.0
inet6 addr: fe80::dc32:95ff:fe2c:fcc3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1592 (1.5 KB) TX bytes:5472 (5.3 KB)

$ ping www.google.com
PING www.l.google.com (72.14.254.104) 56(84) bytes of data.
64 bytes from sin01s04-in-f104.1e100.net (72.14.254.104): icmp_seq=1 ttl=53 time=129 ms
64 bytes from sin01s04-in-f104.1e100.net (72.14.254.104): icmp_seq=2 ttl=53 time=70.7 ms

However, when I re-enabled my original eth0 connection (which was statically configured), my browser failed to resolve any of the URLs. It turned out that the dns server in my /etc/resolv.conf file was replaced by a reference to the Legend's IP address.

Ok, will try out USB tethering with OS X 10.6 when I get home. Hopefully, it will work out of the box else maybe something like usbnet will help.

-t