HP-UX Internet Services Administrator's Guide (May 2010)

For more information on static routing, type man 1M route or man 7 routing at
the HP-UX prompt.
If you have a large and complicated network, use gated for dynamic routing. See
“Configuring gated” in the HP-UX Routing Services Administrator’s Guide at the URL
http://www.docs.hp.com/hpux/netcom/index.html#Internet%20Services
for more information.
Changing a Host’s IP Address
When you use SAM to change a host’s IP address, SAM does not perform all these
steps. For example, SAM does not update BIND or NIS databases. To change a host’s
IP address, complete the following steps:
1. Change the host’s IP address in the /etc/hosts file. See “Editing the /etc/hosts
File” (page 29) .
2. Change the IP_ADDRESS[n] variable in the /etc/rc.config.d/netconf file
to the new IP address.
3. If the host is on a network that uses BIND, change the host’s IP address in the data
files of the authoritative name servers. See “Configuring and Administering the
BIND Name Service” in the HP-UX IP Address and Client Management Administrator’s
Guide at the URL
http://www.docs.hp.com/hpux/netcom/index.html#Internet%20Services
for more information.
If the host is on a network that uses NIS, change its IP address in the /etc/hosts
file on the NIS master server, and issue the following commands to regenerate the
hosts database and push it out to the NIS slave servers:
cd var/yp
/usr/ccs/bin/make hosts
4. If the host is moving to a different subnet, change the ROUTE_DESTINATION,
ROUTE_GATEWAY, and BROADCAST_ADDRESS[n] variables in
/etc/rc.config.d/netconf.
If the host is moving to a network that uses a different subnet mask, change the
SUBNET_MASK[n] variable in /etc/rc.config.d/netconf.
5. If the host is moving to a different network, you may have to configure new routes
for it. See “Configuring a Route” (page 29).
6. If the host is on a network that uses gated, change its IP address on all the gated
routers. See “Configuring gated” in the HP-UX Routing Services Administrator’s
Guide at the URL
http://www.docs.hp.com/hpux/netcom/index.html#Internet%20Services
for more information.
7. If the host is a BOOTP client, change its IP address in the /etc/bootptab file on
the BOOTP server. If the host is a BOOTP server, and a BOOTP relay agent is
Configuring the Internet Services Software 31