I know how to tether via USB using Android to my Ubuntu 10.04 and this How to Tether Android Smartphone to Ubuntu Linux how-to is what I have been doing for the last couple of months (running fine).
The issue now is that the "Wired connection" appearing does not appear anymore and it seems that the static IP assigned to my other interface (eth0
) are being assigned to it somehow. These settings are obviously not suitable in tethering and therefore my tethered connection isn't working.
This behaviour changed for me recently, and I seem unable to figure out why.
On my other PC (same OS) I do see another "Wired connection" and tethering works fine on that one.
How to troubleshoot and fix this?
Before tethering:
abc@xyz:~/Downloads$ ifconfig eth0 Link encap:Ethernet HWaddr
e8:03:9a:65:08:7e
inet addr:117.129.59.85 Bcast:117.129.59.255 Mask:255.255.255.0
inet6 addr: fe80::ea03:9aff:fe65:87e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15420730 errors:0 dropped:0 overruns:0 frame:0
TX packets:3969133 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4037041565 (4.0 GB) TX bytes:1397544101 (1.3 GB)
Interrupt:43 Base address:0x6000
ham0 Link encap:Ethernet HWaddr 7a:79:00:00:00:00
inet6 addr: fe80::7879:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1404 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:468 (468.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:110235 errors:0 dropped:0 overruns:0 frame:0
TX packets:110235 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:235513662 (235.5 MB) TX bytes:235513662 (235.5 MB)
vboxnet0 Link encap:Ethernet HWaddr 0a:00:27:00:00:00
inet addr:192.168.56.1 Bcast:192.168.56.255 Mask:255.255.255.0
inet6 addr: fe80::800:27ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:618 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:128782 (128.7 KB)
After tethering (note the eth0
and usb0
entries):
abc@xyz:~/Downloads$ ifconfig
eth0 Link encap:Ethernet HWaddr e8:03:9a:65:08:7e
inet addr:117.129.59.85 Bcast:117.129.59.255 Mask:255.255.255.0
inet6 addr: fe80::ea03:9aff:fe65:87e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15423208 errors:0 dropped:0 overruns:0 frame:0
TX packets:3970469 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4037536312 (4.0 GB) TX bytes:1398652503 (1.3 GB)
Interrupt:43 Base address:0x6000**
ham0 Link encap:Ethernet HWaddr 7a:79:00:00:00:00
inet6 addr: fe80::7879:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1404 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:468 (468.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:110235 errors:0 dropped:0 overruns:0 frame:0
TX packets:110235 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:235513662 (235.5 MB) TX bytes:235513662 (235.5 MB)
usb0 Link encap:Ethernet HWaddr 82:43:72:0b:d0:6f
inet addr:117.129.59.85 Bcast:117.129.59.255 Mask:255.255.255.0
inet6 addr: fe80::8043:72ff:fe0b:d06f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:196 (196.0 B) TX bytes:5552 (5.5 KB)**
vboxnet0 Link encap:Ethernet HWaddr 0a:00:27:00:00:00
inet addr:192.168.56.1 Bcast:192.168.56.255 Mask:255.255.255.0
inet6 addr: fe80::800:27ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:618 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:128782 (128.7 KB)