?
Solved

AIX, identity problem

Posted on 2012-09-05
1
Medium Priority
?
618 Views
Last Modified: 2012-09-06
The NIC on my LPAR is set to 10.14.52.223, which I can ping as  follows

# ping 10.14.52.224
PING 10.14.52.224: (10.14.52.224): 56 data bytes
64 bytes from 10.14.52.224: icmp_seq=0 ttl=255 time=0 ms
64 bytes from 10.14.52.224: icmp_seq=1 ttl=255 time=0 ms
64 bytes from 10.14.52.224: icmp_seq=2 ttl=255 time=0 ms

Open in new window


my hostname is lp2

# hostname
lp2
#

Open in new window


However, when I ping lp2, I get the following

# ping lp2
PING lp2.localdomain.com: (98.124.199.1): 56 data bytes

Open in new window


No response is ever returned

The following is the end of my hosts file

10.14.52.224    lp2
#####10.14.52.223       wlpar1  lp2
######10.14.10.10    localdomain.com

Open in new window


( commented out the localdomain part when I noticed the problem

How can I fix this so that I can properly ping lp2 ?

Thanks
0
Comment
Question by:Los Angeles1
1 Comment
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 38370301
Seems that lp2 is in your DNS (Domain Name Server) as 98.124.199.1, an address which is different from what you set in /etc/hosts and, moreover, is not reachable from your LPAR.

To make /etc/hosts take precedence over DNS take care to set in /etc/netsvc.conf

hosts = local,bind4

which means: Query /etc/hosts first, query DNS only if nothing is found in that file.

Alternatively, if you don't have a DNS in your network: Could it be that lp2 has a second entry somewhere (not at the end) in your /etc/hosts file under the wrong address 98.124.199.1?
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month16 days, 13 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question