Operating System - HP-UX
1752793 Members
6107 Online
108789 Solutions
New Discussion юеВ

Re: cannot ping localhost after reset kernel parameters

 
Teck Sim
Frequent Advisor

cannot ping localhost after reset kernel parameters

I was able to ping localhost, to other servers. But after I reset kernel parameters, I was unable to ping.
System is HP-UX 11.

Thanks.
16 REPLIES 16
Arockia Jegan
Trusted Contributor

Re: cannot ping localhost after reset kernel parameters

Can you have look at /etc/rc.log file for error messages for network startup scripts? Try to run /sbin/init.d/net start manually. If you get any error messages please post that messages. Run ifconfig to make sure it's showing the interface is up.
MANOJ SRIVASTAVA
Honored Contributor

Re: cannot ping localhost after reset kernel parameters

Hi Teck


Do a nslookup local hostanem and see how it ersolves its name , if it using the DNS server than there may be an issue , the best way to check this is to rename /etc/resolv.con to some other file and use the /etc/hosts to resolve the name . The check is do a nslookup hostname and once the name is reolved properly thatn may be you can ping to other servers too.


Also what is o/p of netstat -nr is it pointing to the coreect gateway ie deafualt gateway.



Manoj Srivastava
PIYUSH D. PATEL
Honored Contributor

Re: cannot ping localhost after reset kernel parameters

Hi,

Check for various things :

1. /etc/resolv.conf
2. /etc/nsswitch.conf
3. /etc/hosts
4. #ifconfig lan0 ( check whether lan card is up or not )
5. linkloop macaddress ( of the lan card)
6. lanscan
7. make sure that your /etc/hosts contains the following line:
127.0.0.1 localhost loopback

Piyush
S.K. Chan
Honored Contributor

Re: cannot ping localhost after reset kernel parameters

What are the kernel parameters you changed/reset ? Did you check you LAN interface to make sure it's ok (lanscan and lanadmin) ? Is the box able to ping to itself, ping others with IP address ?
PIYUSH D. PATEL
Honored Contributor

Re: cannot ping localhost after reset kernel parameters

Hi,

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]

Piyush
Teck Sim
Frequent Advisor

Re: cannot ping localhost after reset kernel parameters

I reset the new kernel parameters to the old values after I did cold-install on HP-UX 11, and reboot the system.

Before changing the new kernel parameters back to the old ones, everything worked fine. I could ping, did nslookup, ping from one server to another server, back and forth, no problem.
Sanjay_6
Honored Contributor

Re: cannot ping localhost after reset kernel parameters

Hi,

Did your lan network came up. What were the parameters you modified. Check and see the /etc/rc.log file if the network came up.

Hope this helps.

Regds
Teck Sim
Frequent Advisor

Re: cannot ping localhost after reset kernel parameters

Error message from /etc/rc.log file:

Start Software Distributor agent daemon
Output from "/sbin/rc2.d/s870 swagentd start:
______________________________________________

Error: swagentd exiting due to initialization error in background process. Check the logfile "/var/adm/sw/swagentd.log" for more information.

I ran /sbin/init.d/net start and it did not return any error messages.

Thanks.
PIYUSH D. PATEL
Honored Contributor

Re: cannot ping localhost after reset kernel parameters

Hi,

What kernel parameters did you change ???

What was the earlier version of OS on the system ??

Piyush