HP-UX networking related tools and commands

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     OR
  • /sbin/init.d/net 
HPUX Commands
  1. (a) Display lan interface info
    1.       lanscan
  2. All in one lan configuration utility (lan0 is first Ethernet interface) to configure and view the system IP address:
    1.  ifconfig lan0 – Display IP info such as IP address netmask etc.
    2.  ifconfig lan0 up – Up network interface (allow traffic)
    3.  ifconfig lan0 down – Down network interactive (deny traffc)
    4.  ifconfig lan0 192.168.1.1 netmask 255.255.255.0 up – Setup/change IP adddress
  3. Displaying host name
    1.      hostname
  4. Arp administration (cache)
    1.   arp -a  
  5. Display routing table/info:
    1. netstat -nr
  6.   Define new route:
    1. route add default 192.168.1.254 1
  7. HP’s LAN diagnostic tool
    1. lanadmin
  8. Test a remote host connectivity
    1. ping host.mycorp.com
  9. Setup various lan properties, dns client, NIS client configuration etc using GUI tool:
    1. sam
    2. set_parms
  10.  Check dns connectivity
    1. nslookup http://www.google.com