LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Ubuntu Can't Connect Wired (https://www.linuxquestions.org/questions/linux-networking-3/ubuntu-cant-connect-wired-594127/)

khdani 10-24-2007 02:49 AM

Ubuntu Can't Connect Wired
 
Hello,
I've three PCs with edimax router, 2 have Win XP and they work fine. The third one has Ubuntu 6.10 and wire connected to router. It receives an ip and I can ping google and other machines but can't load web pages it just says Conntecting...and nothing, same happens with PCLOS live CD with both wired or wifi connections....please help

Peacedog 10-24-2007 07:33 PM

Hi khdani, What does /etc/resolv.conf look like? What model is the router? What does the following output?
Code:

sudo iptables -L
Good luck. ;-)

khdani 10-25-2007 09:10 AM

Hi,
I used Ubuntu before on another machine and it worked fine even with usb wifi card, with the same router. Now,I installed Ubuntu on my friend's LG-F5 laptop and it just didn't load web pages, but i could ping.
Anyway my friend took back the laptop so...nothing to fix anymore...

Thank you Peacedog

ElectroFox 12-03-2007 03:15 AM

Ubuntu Can't Connect Wired (gusty)
 
I'm having the same problem. I can ping whatever I want, successfully, but anything that requires DNS, such as FireFox, SSH, or Synaptic, I can't connect. (I can, however get google to come up in FireFox, if I type in the IP address, and can connect to SSH servers if I use the IP addresses.) Naturally, I can also connect, and log into, both routers (by typing in their IP's into FireFox).
This problem occurs when I'm using the Ubuntu (7.10 Gutsy) OS on my computer. When I reboot into XP (it's a 3 boot computer), everything works fine. I even plugged in my laptop to the same router, and it works fine (in XP). The computer that is having problems (in Ubuntu and not in XP) is using a Hewlett-Packard J2585B 10/100mb ethernet adapter. It is sitting behind a D-link router, which sits behind a Linksys router, that connects to the internet.

My (successful) XP connection looks like:
Code:

IP Address: 192.168.0.102
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.0.1 <-the D-Link
DHCP Server: 192.168.0.1
DNS Server: 192.168.0.1

My Ubuntu /etc/resolv.conf says:
Code:

nameserver 192.168.0.1
iptables -L outputs:
Code:

Chain INPUT (policy ACCEPT)
target    prot opt source      destination

Chain FORWARD (policy ACCEPT)
target    prot opt source      destination

Chain OUTPUT (policy ACCEPT)
target    prot opt source      destination

ifconfig includes the following for eth0:
Code:

inet addr: 192.168.0.102  Bcast:192.168.0.255  Mask:255.255.255.0
Scope: Link
UP  BROADCAST  RUNNING  MULTICAST

I thought it might be a driver issue for the HP card, I'm using, but that doesn't really make sense, and it came up in Ubuntu's Device browser just fine.

I'm kind of stumped on this one. Any help would be greatly appreciated. Thanks in advance.

EDIT: After doing a little bit more hunting, I found that turning off IPv6 in FireFox solves my dns resolve issues (only for firefox, however). This makes me wonder if the problem is simply because I don't have IPv6 support on my D-Link Router. (I just looked all over the router, and I don't think it supports IPv6.) I'll see If I can get a firmware upgrade for it, and see if this resolves the issue.
Still, any help would be much appreciated.

tredegar 12-03-2007 09:18 AM

Quote:

I thought it might be a driver issue for the HP card, I'm using
Can't be that as you are getting an IP address, and you can ping and load web pages by IP address, so your network is OK. It's DNS that is not working.
/etc/resolv.conf looks good as 192.168.0.1 is the address of your D-link, which should be relaying DNS requests to the Linksys, which relays the request to your ISP.

Please post the listing of your /etc/network/interfaces file

I suspect that this is an IPV6-related problem. I have disabled IPV6:

I have a file /etc/modprobe.d/bad_list that looks like this:
Code:

# Disable ipv6, to speed up DNS searches
alias net-pf-10 off

Do you have that file? What (if anything) is in it?

Wiggalo 01-16-2008 01:10 AM

I've got a similar problem...
 
...except with me, there's no connection at all. Running on the Live CD, the network (both wired and wireless) worked great. Now that I've actually installed Ubuntu, though, neither work at all. Both devices are recognized and on. I've tried leaving them in Roaming Mode and having them detect their settings via DHCP (the way my router is set). Nothing at all. Any ideas?

Disillusionist 01-16-2008 02:46 AM

I have heard of similar issues before, and think this might be an IPv6 issue.

Assuming that you are using firefox, you can disable IPv6 by browsing to "about:config" and filter to find "network.dns.disableipv6"

Double clicking on this will toggle the status (is false by default)

Set this to true and retest

Disillusionist 01-16-2008 02:49 AM

Sorry Tredeger, hadn't read your post pointing to IPv6


All times are GMT -5. The time now is 12:58 PM.