LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-24-2007, 02:49 AM   #1
khdani
LQ Newbie
 
Registered: Jul 2006
Posts: 22

Rep: Reputation: 15
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
 
Old 10-24-2007, 07:33 PM   #2
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
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. ;-)
 
Old 10-25-2007, 09:10 AM   #3
khdani
LQ Newbie
 
Registered: Jul 2006
Posts: 22

Original Poster
Rep: Reputation: 15
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
 
Old 12-03-2007, 03:15 AM   #4
ElectroFox
LQ Newbie
 
Registered: Dec 2007
Posts: 5

Rep: Reputation: 0
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.

Last edited by ElectroFox; 12-03-2007 at 03:48 AM. Reason: Found more info
 
Old 12-03-2007, 09:18 AM   #5
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
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?
 
Old 01-16-2008, 01:10 AM   #6
Wiggalo
LQ Newbie
 
Registered: Jan 2005
Posts: 1

Rep: Reputation: 0
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?
 
Old 01-16-2008, 02:46 AM   #7
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
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
 
Old 01-16-2008, 02:49 AM   #8
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
Sorry Tredeger, hadn't read your post pointing to IPv6
 
  


Reply

Tags
connect, connection, dns, ethernet, gibbon, gutsy, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect 2 wired networks via wireless rogerthehart Linux - Wireless Networking 8 03-21-2007 10:51 AM
Can't connect to wired network Randy Jackson Linux - Wireless Networking 4 01-17-2007 04:42 PM
Connect to internet Wired Patie Linux - Laptop and Netbook 2 01-27-2006 11:35 AM
Connect wirelessly through a wired computer? GT_Onizuka Linux - Wireless Networking 2 02-10-2005 05:10 PM
Cannot connect to internet via wired adapter psycovic23 Linux - Networking 1 06-05-2004 09:17 AM


All times are GMT -5. The time now is 03:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration