Find HP-UX IP Address

Share this article :

There are multiple methods can be use to find out the IP address on HP-UX operating system environment. You can just get the number by using one the followings-

• ifconfig lanX

# ifconfig lanX
inet netmask ffffff00 broadcast

•netstat -in

# netstat -in
Name  Mtu    Network     Address     Ipkts  Ierrs Opkts   Oerrs Coll
lan0  1500   247351 0     996442  0     0
lo0   4136   116312 0     116312  0     0

Name        Mtu  Address/Prefix    Ipkts    Opkts
lan1*       1500 none               0       0
lo0         4136 ::1/128           4729     4729

• /etc/hosts

# cat /etc/hosts
# The form for each entry is:
# <internet address>    <official hostname> <aliases>
# For example:
#    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.
#  itsiti

• ping <hostname>

# ping itsiti
PING itsiti: 64 byte packets
64 bytes from icmp_seq=0. time=0. ms
64 bytes from icmp_seq=1. time=0. ms
64 bytes from icmp_seq=2. time=0. ms

Note: is the IP address.

Related posts

Check System Information in HP-UX
Disable User Account Expiry in HP-UX
Mount CDROM in HP-UX
cmrunpkg: Run a High Availability Package on HP-UX
© 2017 ITsiti. All Rights Reserved
Powered by KEEM