Installing and Administering Internet Services
Chapter 2 37
Installing and Configuring Internet Services
Configuring Internet Addresses
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” on page 319 for more information.
To Change 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.
1. Change the host’s IP address in the /etc/hosts file. See “To Edit the
/etc/hosts File” on page 35.
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” on page
71.
If the host is on a network that uses NIS, change its IP address in the