HP-UX HB v13.00 Ch-09 - Networking Basics

HP-UX Handbook Rev 13.00 Page 12 (of 27)
Chapter 09 Network Basics
October 29, 2013
nameserver, domainname.
The initial configuration of the system should be done using the script;
# /sbin/set_parms
( man set_parms).
The most important options are:
/sbin/set_parms hostname
To change the hostname
/sbin/set_parms ip_address
To change the IP address of lan0
/sbin/set_parms addl_netwrk
To set up default gateway, declare DNS server, local
ARPA Domain Name, NIS Domain
/sbin/set_parms initial
Run the entire initial boot-time dialog sequence
Hint: If you have to change the hostname of your system, it is easier to use this tool, because it
will also change the corresponding information in databases like those of the software distributor
utilities (SDU).
Additional interfaces can be configured or changed with SAM/SMH. Run:
# /usr/sbin/sam
Networking and Communication
Network Interface Cards
Mark the appropriate interface, choose the required action and add all requested information into
the mask.
It is also possible to add the required information to the configuration files using a text editor
(e.g. vi) and to activate it manually. The system will store all required information about IP
addresses, subnets and routers etc. in the file:
/etc/rc.config.d/netconf
Additional information (if required), like speed, duplex settings, auto-negotiation, MTU and
MAC addresses can be configured in the files /etc/rc.config.d/hp*conf
Unfortunately there is a different file for each class of interfaces (e.g.
/etc/rc.config.d/hpietherconf for the iether driver). Use the ioscan command to find the correct
driver name and description, for example:
# ioscan -fknC lan
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
lan 0 0/1/1/0/4/0 igelan CLAIMED INTERFACE HP A6794-60001 PCI 1000Base-T
lan 1 0/4/1/0 iether CLAIMED INTERFACE HP A7012-60601 PCI/PCI-X