LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-17-2013, 11:13 AM   #1
seamore
Member
 
Registered: Sep 2009
Posts: 83

Rep: Reputation: 1
Can't ping gateway


I recently reformated a linux box and replaced an older version of Slackware with v13.37. The pc is on a local network connected fine with the config. The new install cannot ping the gateway or other pcs on the subnet. The router is a Belkin wireless router. I'm using a fixed IP for the pc in question. When I try to ping the gateway I get "Destination Host Unreachable". I tried with DNS IPs, that did not work either. A second pc with Windows can ping the router. It has a fixed IP of 192.168.2.110.

Netconfig:

Hostname: UnixDev
IP: 192.168.2.9
Gateway: 192.168.2.1
Netmask: 255.255.255.0
Domain: Belkin
DNS: none (not needed)

Route:

Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.2.1 0.0.0.0 UG 1 0 0 eth0
 
Old 01-17-2013, 11:50 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
"Destination host unreachable" for a local IP means no ARP replies are received.

Could you post the output of ethtool eth0 and route -n?
 
Old 01-17-2013, 12:58 PM   #3
seamore
Member
 
Registered: Sep 2009
Posts: 83

Original Poster
Rep: Reputation: 1
ethtool eth0:

Settings for eth0:

Supported ports: [ TP MII ]
Supported link nodes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: yes
Advertised link nodes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: yes
Speed 10Mb/s
Duplex: Half
Port: MII
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: g
Current message level: 0x00000007 (7)
drv probe link
Link detected: no

route -n (commas added for clarity)

Destination, Gateway, Genmask, Flags, Metric, Ref, Use, Iface
192.168.2.0, 0.0.0.0, 255.255.255.0, U, 0, 0, 0, eth0
127.0.0.0, 0.0.0.0., 255.0.0.0, U, 0, 0, 0, l0
0.0.0.0, 192.168.2.1, 0.0.0.0, UG, 1, 0, 0, eth0
 
Old 01-17-2013, 02:28 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
Quote:
Originally Posted by seamore View Post
ethtool eth0:

Settings for eth0:

Supported ports: [ TP MII ]
Supported link nodes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: yes
Advertised link nodes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: yes
Speed 10Mb/s
Duplex: Half
Port: MII
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: g
Current message level: 0x00000007 (7)
drv probe link
Link detected: no
There's your problem. Check all cabling and the link lights on the NIC and the switch/router.
 
Old 01-17-2013, 03:15 PM   #5
seamore
Member
 
Registered: Sep 2009
Posts: 83

Original Poster
Rep: Reputation: 1
I replaced the cable to the router, lights on NIC are on, rebooted the router. Problem persists.

This computer was communicating with the LAN before I installed the new Slack distribution.
 
Old 01-17-2013, 03:41 PM   #6
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
Do you by any chance have more than one NIC? What does ifconfig -a say?

It could also be a driver issue. What make and model is your NIC? The output from lsmod and lspci -v could be helpful.
 
Old 01-17-2013, 04:17 PM   #7
seamore
Member
 
Registered: Sep 2009
Posts: 83

Original Poster
Rep: Reputation: 1
Thank you for your help. I think it must be that the network card is no longer supported. Its cheap & very old.
I have a relatively new wireless card which I will try and report back to this thread.

Again thanks.
 
Old 01-26-2013, 11:56 AM   #8
seamore
Member
 
Registered: Sep 2009
Posts: 83

Original Poster
Rep: Reputation: 1
Problem solved

It turns out the new Slack version no longer supports the old nic. When I replaced it with a newer nic, everything worked. Thanks again for the help I received.
 
  


Reply



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
Can't Ping past gateway. Can ping server from outside ugolee Linux - Networking 11 05-01-2010 11:35 PM
Can't Ping Gateway jr8rdt Linux - Networking 1 04-04-2007 10:15 AM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
dhcp client can't ping gateway but can ping other local hosts dirty_forks Linux - Networking 7 10-08-2004 10:54 AM
can't ping gateway pierogie Linux - Networking 3 08-06-2003 05:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:01 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration