1825766 Members
2156 Online
109687 Solutions
New Discussion

Re: Can not ping

 
navin
Super Advisor

Can not ping

Hi
Recently installed HPUX 11.After instllation I
configured Network interface.I gave appropriate parameters in netconf.I checked with lanscan,Interface is properly configured.But still i can't ping or telnet to other machines.(i checked /etc/hosts also).Any help Appreciated.
Learning ...
8 REPLIES 8
A. Clay Stephenson
Acclaimed Contributor

Re: Can not ping

First, let's establish a few things:

1) Do a lanscan; do the interfaces report HW State UP and Interface State UP? Are all the expected interfaces shown?

2) Do an ioconfig. e.g. ioconfig lan0. Do the statuses report UP for each card.

3) Ping using IP Address. This will separate the problem of hostname resolution from interface setup.

With this data we can probably narrow this down.

If it ain't broke, I can fix that.
Steven Sim Kok Leong
Honored Contributor

Re: Can not ping

Hi,

Try apply the following troubleshooting steps:

1) ping the IP address of a neighboring system within the same subnet.

If this works, proceed to next step. If this does not, execute the "linkloop" command on the MAC address of this neighboring system.

If this works, your NIC is most likely misconfigured.

If this fails, you have a problem with either your NIC card, driver or network cable.

2) ping the router interface

If this works, your packets can be routed out to other systems outside your system's subnet.

If this fails, check the network connectivity to your router ("linkloop" and "ping")

3) check your netmask as well as your default route on whether they are correct.

4) check your /etc/resolv.conf (if you are using DNS) and /etc/nsswitch.conf.

If you are only using the /etc/hosts file, check that your nsswitch.conf has

hosts: files [NOTFOUND=continue]

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Roger Baptiste
Honored Contributor

Re: Can not ping

hi,

Quick check on where the
problem could be is to
ping using the IP address.
If this works, then the network interfaces are setup
ok on the system and the problem would be on the DNS resolver end (/etc/resolv.conf).

If even the ping to ip address
does not work, then problem has to do with your network configuration. In that case,
do
#netstat -in (check the output is as you want it)
#netstat -r (check the routing table is set).

Make sure the network interfaces are up by doing
ifconfig lan
It should the status as UP.

And last but not the least, check whether the network cables are connected ;-)

HTH
raj
Take it easy.
navin
Super Advisor

Re: Can not ping

Hi,
I tried many of all the steps or tips which you have given except linkloop.But I can ping the same system using IP address.
Learning ...
Steven Sim Kok Leong
Honored Contributor

Re: Can not ping

Hi,

I think you have to give all of us who are trying to help you an idea of what works and what doesn't for each troubleshooting step we have indicated, to allow us to proceed with further troubleshooting.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Roger Baptiste
Honored Contributor

Re: Can not ping

<>

So, is the ping of IP address of remote systems working or not?

<>

In that case, you would need to make sure your lan cable connection is correctly set
and is connected to the right card!! (in case you have more than one)

If your system is connected to the network correctly, it should be able to ping to the IP addr of other systems which are on the same subnet.


HTH
raj

Take it easy.

Re: Can not ping

Hi,
this can be even due to a duplicate IP address in the network, after checking that you can check with
ifconfig lan0
Whether it is up or not If its not up follow the debugging procedures, but it seems ther is a dupilcate Ip existing in your network. You can verify this by making the network interface down and ping the IP of this host fro any other system on your network.

Bye
Manoj

Re: Can not ping

Navin

If you are happy with your checks and still get no joy, 1. check if other systems/pc's can ping your machine.
2. If they can't, do an #nslookup of them to see if your system resolves thru the hosts table or the DNS.

a)If you are using the host table, ensure that /etc/nsswitch.conf is set as Steven says. And that your gateway is also defined on the host table.
#ping localhost (127.0.0.1) should also work.
b)If you are using the DNS, you must be able to access it. So ensure that /etc/resolve.conf is set properly and that the DNS server knows about your system.
3. Do a #traceroute to see what route it takes and where you lose contact.

4. If all else fails send the output from your error messages.

Hope it helps.

Ish
If you keyboard is locked, call a locksmith, not HP!