HP-UX Internet Services Administrator's Guide (August 2003)
Installing and Configuring Internet Services
Configuring the Internet Services Software
Chapter 2 33
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 setof 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%20Se
rvices 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” on page 31.