HP Visualize c3600 IRIX to HP-UX Migration Guide - Page 65
Changing a Host's IP Address
View all HP Visualize c3600 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 65 highlights
Configuring TCP/IP If the default gateway is your own host, set the ROUTE_COUNT variable to 0. Otherwise, set it to 1. 3. If your host is a gateway, configure the destination networks that can be reached from its network interfaces. Issue the following command for each network interface on your host: # /usr/sbin/route add net destination IP_address where destination is a network address reachable by your host, and IP_ address is the address of the network interface. 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" 4. 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. 5. 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. To Set the Default Gateway Using SAM Use the following steps to set the default gateway using SAM: 1. Start SAM. # sam 2. Select Networking and Communications. 3. Select Internet Addresses. 4. Choose Modify Default Gateway. . . 5. Fill in the Default Gateway Internet Address and Default Gateway Name fields and choose OK. 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. 60