Operating System - HP-UX
1831494 Members
3306 Online
110025 Solutions
New Discussion

Re: Hostname not pinging..

 
SOLVED
Go to solution
srinu_1
Frequent Advisor

Hostname not pinging..

Hi all,

In one of my hp server,I facing the problem.
on the same server hostname not pinging.Please find the details below....

bash-2.04# hostname
test1
bash-2.04# ping test1
ping: unknown host test1
bash-2.04# cat /etc/hosts
# @(#)B.11.11_LRhosts $Revision: 1.9.214.1 $ $Date: 96/10/08 13:20:01 $
#
# The form for each entry is:
#
#
# For example:
# 192.1.2.34 hpfcrm loghost
#
# See the hosts(4) manual page for more information.
# Note: The entries cannot be preceded by a space.
# The format described in this file is the correct format.
# The original Berkeley manual page contains an error in
# the format description.
#

161.85.20.130 test1
127.0.0.1 localhost loopback
161.85.22.36 ingbtcpic1dt490
bash-2.04#

what is the wrong?

Thanks
srinu.
6 REPLIES 6
Charles Harris
Super Advisor
Solution

Re: Hostname not pinging..

Hi Srinu,

I'd check you nsswitch.conf and make sure there is a hosts entry. Can you ping the loopback?

Cheers,

-=ChaZ=-
wip
Frequent Advisor

Re: Hostname not pinging..

check things in this order

1.Check n/w card configuration and status using ifconfig.Make sure there is a route exist for local system and hope level 1 "netstat -r"

2.Check you nsswitch.conf file - Refer the format from docs.hp.com
Yogeeraj_1
Honored Contributor

Re: Hostname not pinging..

hi,

do you have any additional software which might have been configured not to reply to ICMP Echo Requests?

did you try to do: ping 161.85.20.130

hope this helps!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
srinu_1
Frequent Advisor

Re: Hostname not pinging..

HI charles,

Yes Yes ..it's working now.nsswitch.conf file was not there.I have created and edited this file.

Thanks for your instant reply.
I have given 10 points to you.

Regards
Srinu
srinu_1
Frequent Advisor

Re: Hostname not pinging..

Thanks

Regards
srinu.
Charles Harris
Super Advisor

Re: Hostname not pinging..

Glad it helped!!! - Would love the 10pnts too!!

Cheers,

-=ChaZ=-