Ubuntu – Wifi connected but no internet

routerwireless

i hope someone can help me with this, it was the story of today for me:

Everything was going ok and my internet worked perfectly for every device I had (computer, tablet, phone) except for my two Nexus 4. The wifi wasnt working. So after many many things I upgraded my routers firmware and now they are working! The problem now is that my Ubuntu 12.10 laptop connects to wifi but has no Internet! The same laptop on WIndows 8 works fine on wifi and the wired connection works fine on Ubuntu.

cant ping my router, but It says that Im connected (full strength)

By reading other posts I saw that usually they are required to post the output of the following commands:

lspci -nn | grep 0280

08:00.0 Network controller [0280]: Atheros Communications Inc. AR9462 Wireless Network Adapter [168c:0034] (rev 01)

ifconfig

eth0      Link encap:Ethernet  HWaddr d4:be:d9:78:2b:f5  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:20407 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20151 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:11477177 (11.4 MB)  TX bytes:2805826 (2.8 MB)

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:5712 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5712 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:562475 (562.4 KB)  TX bytes:562475 (562.4 KB)

wlan0     Link encap:Ethernet  HWaddr a4:17:31:3a:9d:99  
          inet addr:192.168.0.106  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::a617:31ff:fe3a:9d99/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11328 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13289 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:8270439 (8.2 MB)  TX bytes:2182573 (2.1 MB)

EDIT:

cant ping my router, but It says that Im connected (full strength)

netstat -rn

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG        0 0          0 wlan0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 wlan0
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 wlan0

Best Answer

The simplest thing I can offer - is to remove the connection from NetworkManager and try to configure it once again.

Also try to remove this first:

169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 wlan0

from your routes.

Related Question