HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 65

Changing a Host's IP Address

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125

Configuring TCP/IP
60
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.