- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- unable to ping localhost
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2001 11:03 PM
09-22-2001 11:03 PM
i'm having a weird problem, i changed ip address and netmask on 10.20 box with /sbin/set_parms initial. i think everything worked okay, but now i can not ping "localhost", but i can ping "127.0.0.1". the network doesn't have a DNS. do i need resolv.conf and nsswitch.conf in my /etc. my netstat -rn shows the right gateway and 127.0.0.1 shows up. i can ping the other boxes in the same network and vice-versa. so NIC is working okay. why can't i ping "localhost". any help would be appreciated. also do i need to remove any traces of DNS entries on this box. it was inside before being moved to DMZ network.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2001 11:11 PM
09-22-2001 11:11 PM
Re: unable to ping localhost
If U can ping to 127.0.0.1, then U should be able to ping to localhost. Ur problem is in /etc/hosts file. Please check the entry in /etc/hosts file, It shold be like this
127.0.0.1 localhost loopback
Best of luck
Shahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2001 04:37 AM
09-23-2001 04:37 AM
Solution-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2001 05:15 AM
09-23-2001 05:15 AM
Re: unable to ping localhost
First, make sure that your /etc/hosts contains the following line:
127.0.0.1 localhost loopback
Then, since you say you don't want any DNS in operation, edit your /etc/nsswitch.conf file so that its entries specify "host" only, as:
hosts: files
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2001 09:16 AM
09-23-2001 09:16 AM
Re: unable to ping localhost
does you /etc/hosts file reflect the chnages you have made. How are you trying to ping your own server. Through IP or through the hostname.
Since, you are not using DNS, you don't need a /etc/resolv.conf . If there is one, you can safely remove it. Also you can keep /etc/nsswitch.conf file and have this entry for hosts over there
hosts files
Also see that the entry for localhost is there as advised by other forum mebers already. Also check that the new hostname and ip of your system are correctly reflected in your /etc/hosts file. you may still have the old name and ip in that file and that might be creating problem for you.
hope this helps.
Thanks