Network Configuration Tools on HP-UX.



 
Network Configuration tools on HP-UX.
This post is about the location of various files used in network configurations in HP Unix Servers.



FILE:

/etc/hosts - Hosts configuration file (resolve hosts and IPs)

/etc/rc.config.d/ netconf – IP address, routing address and hostname stored in this file.


SCRIPTS:

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




HP UX 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

# netstat –in




(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

No comments:

Post a Comment