HP-UX networking related tools and commands

As my journey continues to exploring HP-UX I found couple of nice utilities and tools to configure and administrate HP-UX networking subsystem.

FILES

  • /etc/hosts – Hosts configuration file (resolve hosts and IPs)
  • /etc/rc.config.d/netconf – IP address, routeing address and hostname stored in this file

SCRIPTS

  • /etc/init.d/net start – Use to start, stop network service

HPUX Commands
(a) Display lan interface info:
# lanscan

(b) All in one lan configuration utility (lan0 is first Ethernet interface) to configure and view the system IP address:
# ifconfig lan0 – Display IP info such as IP address netmask etc.
# ifconfig lan0 up – Up network interface (allow traffic)
# ifconfig lan0 down – Down network interactive (deny traffc)
# ifconfig lan0 192.168.1.1 netmask 255.255.255.0 up – Setup/change IP adddress

(c) Displaying host name
# hostname

(d) Arp administration (cache)
# arp -a

(e) Display routing table/info:
# netstat -nr

(f) Define new route:
# route add default 192.168.1.254 1

(g) HP’s LAN diagnostic tool
# lanadmin

(h) Test a remote host connectivity
ping host.mycorp.com

(i) Setup various lan properties, dns client, NIS client configuration etc using GUI tool:
# sam
# set_parms

(j) Check dns connectivity:
$ nslookup www.google.co.uk

See also
How do I start hpux network service?
HP-UX: How Do I configure the new Lan card configuration?


🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 1 comment so far... add one


CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
1 comment… add one
  • ino Dec 6, 2010 @ 8:09

    hi, I found these info very useful as i’m very new to hp-ux. But I hav another problem which i cannot understad. I hav a hp-ux server which runs B.11.23 and I found an interesting network interface called du2.

    #ifconfig du2
    du2: flags=51
    inet 10.10.10.154 –> 121.1.1.1 netmask fffffff8

    #netstat -ni
    Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
    du2 448 10.10.10.152 10.10.10.154 278603 0 281866 0 0

    #netstat -nrv
    Routing tables
    Dest/Netmask Gateway Flags Refs Interface Pmtu
    10.10.10.154/255.255.255.255 10.10.10.154 UH 0 du2 4136
    121.1.1.1/255.255.255.255 10.10.10.154 UH 25 du2 448
    121.1.0.0/255.255.240.0 121.1.1.1 UG 0 du2 0

    Can some1 explain me how this works??? Thanx in advance………..

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum