Hello,
I have a problem with my wifi connection (wlan0). My laptop has a wifi connection to the router, but can't access the internet. When I was trying Kubuntu last week, there was the same problem and it was easily solved by adding a default gateway with:
However, this doesn't work for the standard Ubuntu. A cable connection (eth0) works, however.Code:sudo route add default gw 192.168.1.1 dev wlan0
And I can get internet when I restart the router. But the next day, after a fresh start of both the router and the laptop (I unplug them at night), again I can't access the internet via wireless connection to the router. So, basically I have to restart my router then, and then it works. But this is strange. And I don't want having to start my router twice each day. I want the internet connection straight away. It's weird, because no matter in which order I start laptop/router, I never get internet through wifi after both laptop and router had been powered off and started from fresh. It seems Ubuntu does something wrong in the order of loading the drivers and setting the route. Because in Kubuntu I could solve this by adding the above entry. Also, with Windows 7 there were no problems at all. In Ubuntu though, it's a tragedy. Ubuntu seems to mess up the routing table totally.
Here's how the routing table looks when it works (how it worked in Kubuntu 12.04):
Here's what it looks like when it doesn't work (Ubuntu 12.04):Code:Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlan0 192.168.1.0 0.0.0.0 255.255.255.0 U 2 0 0 wlan0
As you can see, there's something wrong with the last very last line of the routing entries. How can I tell Ubuntu to set this properly?Code:Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlan0 192.168.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 wlan0



Adv Reply



Bookmarks