Operating System - HP-UX
1826303 Members
4147 Online
109692 Solutions
New Discussion

I am not able to ping using hostname.

 
SOLVED
Go to solution
praveen..
Super Advisor

I am not able to ping using hostname.

Hi I have 4 servers (A,B,C & D).

A & B are in the same network.
C & D are in the same network.

Server_A# ping B ( I am able to ping)
Server_A# ping C ( unknown host)
Server_A# ping 10.29.3.50 (C's IP, able to ping)
Server_A# ping D ( unknown host)
Server_A# ping 10.29.3.51 (D's IP, able to ping)

Server_C# ping D ( I am able to ping)
Server_C# ping A ( unknown host)
Server_C# ping 172.120.8.40 (A's IP, able to ping)
Server_C# ping B ( unknown host)
Server_C# ping 172.120.8.41 (B's IP, able to ping)


Please let me know in which file, i should make some entries so that i will be able to ping using host name from each other.

Thanks


5 REPLIES 5
praveen..
Super Advisor

Re: I am not able to ping using hostname.

OS is HP-UX 11 i v2
Mridul Shrivastava
Honored Contributor

Re: I am not able to ping using hostname.

You need to make entries in /etc/hosts file for each host.
Please follow the example given in the file and make entries in similar way for these hosts and try.....
Time has a wonderful way of weeding out the trivial
praveen..
Super Advisor

Re: I am not able to ping using hostname.

Hi,
In /etc/hosts, I have already made the entry but it is not working
Mridul Shrivastava
Honored Contributor
Solution

Re: I am not able to ping using hostname.

Could you please check the following and update:

1. Check the /etc/hosts for douple entries -2. Check /etc/nsswitch - use /etc/hosts first
3. Network connection is all right - ping and telnet is possible
Time has a wonderful way of weeding out the trivial
praveen..
Super Advisor

Re: I am not able to ping using hostname.

in my server, hosts entries are correct but the /etc/nsswitch.conf file was missing.


I copied it from other server and now I am able to ping the other servers using hostname.

Thanks Mridul :-)