Ethernet working but can't use the internet?

Associate
Joined
1 Jan 2005
Posts
321
Location
Stoke
Having a slight problem with my cent os box :mad:

I can connect to it through the network and it can ping/nslookup but firefox can't seem to find any sites, same goes for yum & wget. The setup is pretty basic also, pc->router with the gateway & DNS address set to the ip address of the router.

Please help!
Cheers
 
Try restarting the router.

When you ping do you do it by IP address or Name?

If it works with IP but not Name then the problem lies with DNS.
 
Router restarted, same problem.

Ping works fine, here's the output:
Code:
PING google.co.uk (72.14.221.104) 56(84) bytes of data.
64 bytes from google.co.uk (72.14.221.104): icmp_seq=1 ttl=243 time=80.9 ms
64 bytes from google.co.uk (72.14.221.104): icmp_seq=2 ttl=243 time=79.4 ms
64 bytes from google.co.uk (72.14.221.104): icmp_seq=3 ttl=243 time=79.7 ms
64 bytes from google.co.uk (72.14.221.104): icmp_seq=4 ttl=243 time=78.4 ms

--- google.co.uk ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 78.445/79.648/80.945/0.894 ms
 
Forgot to mention that all the other pcs connecting through the same router are working with no problems (windows), just this one linux pc causing a few headaches. Ping seems to work fine, here it is by ip:

Code:
PING 72.14.221.104 (72.14.221.104) 56(84) bytes of data.
64 bytes from 72.14.221.104: icmp_seq=1 ttl=243 time=79.3 ms
64 bytes from 72.14.221.104: icmp_seq=2 ttl=243 time=78.4 ms
64 bytes from 72.14.221.104: icmp_seq=3 ttl=243 time=81.3 ms
64 bytes from 72.14.221.104: icmp_seq=4 ttl=243 time=77.5 ms

--- 72.14.221.104 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 77.548/79.171/81.327/1.394 ms

Also this linux pc is open to the internet for a temp webserver, you should be able to view it here: http://danm.homeip.net/
 
strange one this

may sound stragne but have you tried removed drivers for the enthernet and re-installing them, this does occiasionally fix some datf problems like this.


EDIT : Been looking at similar problems Here and possible solution here
 
Last edited:
Thanks for the links, the solution one seems to be mis-directed now? it mentioned ivp6 but that's disabled, here's the network-script:

Code:
# U.S. Robotics USR997902 10/100/1000 Mbps PCI Network Card
DEVICE=eth1
BOOTPROTO=none
BROADCAST=192.168.0.255
HWADDR=00:C0:49:F2:91:A7
IPADDR=192.168.0.200
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
GATEWAY=192.168.0.1
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes

Just had another mess about and it's still resolving domains but not establishing a connection:

Code:
Resolving www.google.co.uk... 216.239.59.147
Connecting to www.google.co.uk|216.239.59.147|:80...

Time to call it quits before something 'unfortunate' happens to the pc :mad:
 
Can you try letting DHCP auto configure everything for you?

Also make sure iptables isnt doing anything it shouldnt be.

Failing that my guess would say its a driver issue.
 
DHCP auto set the gateway and DNS server to 192.168.0.1 but also didn't work. Currently iptables, selinux and ip6tables is disabled, plus ipv6 on the network cards.

I'm at a loss what to try next, one thing that has come to mind is that the two network cards are a bad idea? here's the other config file (this card isn't connected to any network yet):

Code:
# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.1.255
HWADDR=00:40:F4:62:50:D4
IPADDR=192.168.1.200
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
 
Are you using the default kernel module?

I just had a quick google and that appears to be a bit flaky with this card. If you are, try this: linky

Also - any weirdness in dmesg?

EDIT: if you use the linked drivers - you'll have to blacklist the current kernel module (8139too, i think)
 
Last edited:
This is a standard install of the latest 5.1? cent OS so no crazy mods here.

Here's the dmesg output relating to the eth cards:
Code:
8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)
8139too Fast Ethernet driver 0.9.27
eth0: RealTek RTL8139 at 0xf883a000, 00:40:f4:62:50:d4, IRQ 10
eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
r8169 Gigabit Ethernet driver 2.2LK-NAPI loaded
eth1: RTL8169s/8110s at 0xf888e000, 00:c0:49:f2:91:a7, IRQ 12
eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
r8169: eth1: link up
eth1: no IPv6 routers present

Thanks fo rthe link, I'm no linux expert so if needed will attempt to check the rest when I get a chance.

EDIT: It seems that the latest (if you can call them that lol) 2004-04-16 drivers for the gigabit card are already in use?
 
Got me stumped then I'm afraid. Sory I cant be of much more help. But the solution one is right, you need to follow the steps.

IE select your network type etc
 
Thanks for the guidance, had another look at that link and there's not one for centos so will try the guide with the closest commands (ubuntu), although by the looks of it there is one step that doesn't match up to an existing file: /etc/dhcp3/dhclient.conf
 
forgive me if you tried this but have you tried using eth0 as your primary connection? connect cable into eth0 then....

copy over eth1 into eth0 and see what happens.
 
Using either the eth0 or eth1 card with the other disabled does the same thing. resolv.conf showns the nameservers only, after playing around and trying things it currently looks like this:

Code:
nameserver 192.168.0.1
nameserver 69.111.95.106
nameserver 206.196.151.153

I have just had a breakthrough in firefox, if I use nslookup for a domain then copy and paste the ip address it loads fine but any links on the page usually won't work.

I have left the setting in this sort of working state....but what is going on here??? :confused:
 
Those nameservers are what are used on other pc on the network fine, I did try some others when I was trying to get something working but now something is actually happening I have left them as is.

When I get back to the pc I will have another look.
 
The route output:

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
default         192.168.0.1     0.0.0.0         UG    0      0        0 eth0

hmmm...
 
Back
Top Bottom