Static routes are useful if you want to do any of the following on your network:
HINT: Use this procedure to configure static routes when the next hop router is on the same LAN as the router you are configuring.
To configure a static route for a LAN do the following:
Load INETCFG, and then select Protocols > TCP/IP
Configure the following static route parameters:
Select this field, and then select Enabled.
Press Ins and configure the following parameters: Route Type---Select Network or Host if you want the destination at the other end of the static route to be a single IP host or an IP network (that is, a group of hosts). Or, you can select Default Route. If the router must forward a packet for which it can find no destination in its routing table, it sends the packet to the address specified by the next hop for the default route. This type of blind forwarding keeps a packet on the network until a router can forward it to its final destination. IP Address of Network/Host---Enter the address of the destination network or host. To select from a list of symbolic network or host names and addresses, press Ins. The list of symbolic network names and addresses comes from the SYS:\ETC\NETWORKS file. The list of symbolic host names and addresses comes from the SYS:\ETC\HOSTS file. Subnetwork Mask---If the destination is an IP network, the subnet mask of that network. Next Hop Router on Route---Explicit destination of the next hop. Enter the IP address of the next-hop router. To select from a list of symbolic hostnames and addresses, press Ins. Metric for This Route---Number of hops to the destination. This metric is directly proportional to the cost of the route. Given two routes to the same destination, the router chooses the lower-cost route. If you want to use the static route as a backup route to a dynamic route, select a value that is higher than the cost associated with the dynamic route. This selection ensures that the dynamic route remains the preferred route under typical conditions. Do not set this metric value to 16 unless you want to disable the route. Type of Route---Specify whether the static route is active or passive. This parameter specifies whether the next hop router for this route actively advertises the route to this network. Usually, static routes are not advertised and are categorized as passive routes. When a route is marked as active, TCP/IP expects the next hop router to advertise the route regularly. If a router stops advertising an active route, TCP/IP assumes the route is no longer available and deletes it from the routing table. If the static route is active and the router discovers a lower-cost dynamic route to the same destination, it uses the lower-cost route instead of the active static route. If the lower-cost route becomes unavailable, the router returns to using the active static route.
Press Esc twice, and then select Yes to save your changes.
Optional: Disable the routing protocol on this interface to reduce routing traffic.
Press Esc until you are prompted to save your changes, and then select Yes.
Press Esc to return to the Internetworking Configuration menu.
If you want these changes to take effect immediately, select Reinitialize System > Yes.
You can configure multiple default gateways and provide a fault tolerant solution on your network. When the Dead Gateway Detection feature is enabled and a default gateway goes off-line, the Multiple Default Gateway list is used to switch to the next preferred default gateway, thereby reducing the downtime of your network.
To configure the Dead Gateway Detection, see Configuring Dead Gateway Detection. The various ways of configuring multiple default gateways are explained below. The implications of using different methods for configuring multiple default gateways are also given in Table 3.
To configure multiple default gateways using Internetworking Configuration, see How to Configure a LAN Static Route.
To add a new default gateway using BIND, enter the following command at the server prompt:
bind ip board name addr=x.x.x.x mask=x.x.x.x gate=x.x.x.x cost=n
board name is the name of the interface board that you assigning as the default gateway. addr is the IP address of the board. mask is the subnet mask address associated with the IP address of the board. gate is the IP address of the gateway, and cost is the value associated with the gateway and is also the primary routing metric for this gateway.
Load TCPCON and then select IP Routing Protocol.
Select Proceed, press Ins, and configure the following parameters:
Destination---Press Ins to display a list of symbolic network names from the SYS:\ETC\NETWORKS file. Select Default here.
Next Hop---Enter the IP address of the gateway.
Interface---Enter the interface index value through which the next hop of this gateway should be reached.
Cost---Enter the primary routing metric for this gateway.
Press Esc until you are prompted to save your changes, and then select Yes to return to the IP Routing Table screen.
Load INETCFG and then select Bindings > an existing TCP/IP binding > RIP Bind Options.
Select Originate Default Route and enable this option.
Press Esc until you are prompted to save your changes, and then select Yes.
Press Esc to return to the Internetworking Configuration menu.
If you want these changes to take effect immediately, select Reinitialize System > Yes.
These advertisements from the router are picked up and used by an end node to add a default gateway on it. This is possible only when RIP is enabled on the end node.
You can configure Router discovery options on a system to add a default gateway. These systems advertise themselves as a gateway and answer queries from end nodes. End nodes use it to locate a gateway on their network. To configure Router Discovery, see Configuring Router Discovery.
The table below explains the implications of using different methods for configuring multiple default gateways and describes the priorities associated with each method.
Table 3. Comparison of Default Gateway Configuration Methods
Load INETCFG and then select Protocols > TCP/IP.
Select Dead Gateway Detection > Enabled.
Press Esc until you are prompted to save your changes, and then select Yes.
Press Esc to return to the Internetworking Configuration menu.
If you want these changes to take effect immediately, select Reinitialize System > Yes.
You can fine-tune the performance of the Dead Gateway Detection feature.
Probe Interval is the time (in seconds) at which probes would be sent to the default gateway to determine whether it is functional or not.
The valid range of values for Probe Timeout is from 10 to 1800 seconds. Default value is 30 seconds.
Probe Timeout is the time interval (in seconds) after which the next probe is sent to the default gateway, when there is no reply received by the gateway for the previously sent probe.
The valid range of Probe Timeout values is from 1 to 20 seconds. Default value is 2 seconds.
Load INETCFG and then select Protocols > TCP/IP > Dead Gateway Detection Configuration.
Select Probe Interval and then enter a value in seconds.
Press Esc until you are prompted to save your changes, and then select Yes.
Press Esc to return to the Internetworking Configuration menu.
If you want these changes to take effect immediately, select Reinitialize System > Yes.
Load INETCFG and then select Protocols > TCP/IP > Dead Gateway Detection Configuration.
Select Probe Timeout and then enter a value in seconds.
Press Esc until you are prompted to save your changes, and then select Yes.
Press Esc to return to the Internetworking Configuration menu.
If you want these changes to take effect immediately, select Reinitialize System > Yes.