View Full Version : Network connection 'oddity'
Snowhog
Jun 26th 2010, 11:46 PM
I'm on vacation - have my laptop with me. I use Wicd, and it works at home on my wired and wireless connections to my router.
Here, at my Dad's place, Wicd sees his Wireless Access Point, and I'm given an IP address by the router, but thats it. I can not connect to the Internet - when booted into 10.04. Booting into 9.10 or 9.04 I am able to connect to the Internet. My /etc/network/interfaces files for all three OS's is the same:
auto lo
iface lo inet loopback
Why am I not able to connect to the Internet on 10.04 here at my Dads, but I can with 9.10 and 9.04?
Detonate
Jun 27th 2010, 11:40 AM
If you can connect to the router, but not to the internet, it is probably a DNS issue. Check the /etc/resolv.conf files and see if they match. If you are using DHCP this file is automatically rewritten every time you connect. You might try connecting with a static IP and provide the DNS servers manually by editing this file.
oshunluvr
Jun 27th 2010, 02:14 PM
Also check with the route command to see if you're getting a route to the router.
Snowhog
Jun 27th 2010, 06:31 PM
Thank you both.
Okay, I think the problem is that a default gateway isn't being generated, but I don't know why.
From Kubuntu 9.10 (which I'm in now) and from which Internet connectivity does work:
resolv.config
nameserver 207.69.188.187
nameserver 207.69.188.186
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
From Kubuntu 10.04 and from which Internet connectivity does not work:
resolv.config
nameserver 207.69.188.187
nameserver 207.69.188.186
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.118.0 * 255.255.255.0 U 0 0 0 vmnet8
192.168.1.0 * 255.255.255.0 U 0 0 0 vmnet1
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
If the problem is that a default gateway isn't being created, then first, why isn't it, and second, how do I remedy it?
Detonate
Jun 27th 2010, 07:05 PM
I don't have wicd installed on this computer, so I am not sure whre you do this, but there must be a place in wicd to enter the gateway.
oshunluvr
Jun 27th 2010, 07:28 PM
I'm not a wicd guru and I use static ip's with the gateway defined in interfaces.
The command to add the default gateway is:
sudo route add default gw 192.168.1.1 eth0
work around would be add this to rc.local???
Snowhog
Jun 27th 2010, 07:52 PM
That doesn't work - tired already.
I have however, 'narrowed' down the cause. When I boot into 10.04, I normally run the 2.6.32-22-generic-pae kernel. With this kernel, I'm having the problem. However, if I boot using the 2.6.32-22-generic kernel, which I'm in now, then I don't have the problem.
resolv.config
nameserver 207.69.188.187
nameserver 207.69.188.186
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
When booting the 2.6.32-22-generic-pae kernel, I noticed that the virtual machine entries in route are created, even though I'm not running the VM. These entries are not listed when route is run in the non-pae kernel.
Snowhog
Jul 1st 2010, 05:05 AM
Any other thoughts?
dibl
Jul 1st 2010, 10:37 AM
Did you get a new kernel in yesterday's updates? I got a -23 generic (64-bit).
Snowhog
Jul 1st 2010, 04:09 PM
No. The -pae kernel appears to be the problem. Running the -generic kernel, all is well. It isn't a big deal actually. As I only have 1-Gig of RAM, I don't really gain much of an advantage using the -pae kernel. But it is odd that I can't connect to the Internet running the -pae kernel. I'm sure someone has experience on this, and would like to here what they have to say on the matter.
Detonate
Jul 2nd 2010, 12:05 PM
Did you get a new kernel in yesterday's updates? I got a -23 generic (64-bit).
Dible, what repository do you have enabled to get this upgrade? I have all the repositories enabled, including backports, and I did not get a kernel upgrade. A ppa perhaps?
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.