HP-UX Internet Services Administrator's Guide (February 2007)

Then, create a new set of routing variables in the /etc/rc.config.d/netconf
file for each network interface. Whenever you create a new set of variables,
increment the number in square brackets, as in the following example:
ROUTE_DESTINATION[1]="15.13.131.0" ROUTE_GATEWAY[1]="15.13.131.213" ROUTE_COUNT[1]="0"
3. If you will not be using gated, configure routes to all the networks you need to
reach. Type the following command for each network you need to reach from your
host:
/usr/sbin/route add net network_address gateway_address
Then, create a new set of routing variables in the /etc/rc.config.d/netconf
file for each new route. Whenever you create a new set of variables, increment the
number in square brackets.
ROUTE_DESTINATION[n]="network_address" ROUTE_GATEWAY[n]="gateway_address" ROUTE_COUNT[n]="1"
If ROUTE_GATEWAY[n] is your own host, set ROUTE_COUNT[n] to 0. Otherwise,
set it to 1.
4. Type the following command to verify the routes you have configured:
/usr/bin/netstat -r
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 HP SMH to change a host’s IP address, HP SMH does not perform all
these steps. For example, HP SMH 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 28) .
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
30 Installing and Configuring Internet Services