AIX, identity problem

Posted on 2012-09-05
Last Modified: 2012-09-06
The NIC on my LPAR is set to, which I can ping as  follows

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

Open in new window

my hostname is lp2

# hostname

Open in new window

However, when I ping lp2, I get the following

# ping lp2
PING ( 56 data bytes

Open in new window

No response is ever returned

The following is the end of my hosts file    lp2
#####       wlpar1  lp2

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 ?

Question by:Los Angeles1
    1 Comment
    LVL 68

    Accepted Solution

    Seems that lp2 is in your DNS (Domain Name Server) as, 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

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
    Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    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…

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now