Previous Page: Configuring OSPF  Next Page: Configuring Load Balancing

Configuring Static Routes for LANs

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.


How to Configure a LAN Static Route

To configure a static route for a LAN do the following:

  1. Load INETCFG, and then select Protocols > TCP/IP

  2. Configure the following static route parameters:

    • LAN Static Routing---Enables LAN static routing on the router.

      Select this field, and then select Enabled.

    • LAN Static Routing Table---Entry point to the LAN static route configuration parameters.

      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.

  3. Press Esc twice, and then select Yes to save your changes.

  4. Optional: Disable the routing protocol on this interface to reduce routing traffic.

    1. Select Bindings > an existing binding

    2. Select RIP Bind Options > Status > Disabled

    3. Press Esc and then select OSPF Bind Options > Status > Disabled

    4. If your router has multiple interfaces and you want to disable them, repeat these steps for each interface.

  5. Press Esc until you are prompted to save your changes, and then select Yes.

  6. Press Esc to return to the Internetworking Configuration menu.

  7. If you want these changes to take effect immediately, select Reinitialize System > Yes.


Configuring a Default Gateway (LAN Static Route)

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.


Using INETCFG to Add a Default Gateway

To configure multiple default gateways using Internetworking Configuration, see How to Configure a LAN Static Route.


Using BIND to Add a Default Gateway

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.


Using TCPCON to Add a Default Gateway

  1. Load TCPCON and then select IP Routing Protocol.

  2. 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.

  3. Press Esc until you are prompted to save your changes, and then select Yes to return to the IP Routing Table screen.


Configuring RIP to Add a Default Gateway

  1. Load INETCFG and then select Bindings > an existing TCP/IP binding > RIP Bind Options.

  2. Select Originate Default Route and enable this option.

  3. Press Esc until you are prompted to save your changes, and then select Yes.

  4. Press Esc to return to the Internetworking Configuration menu.

  5. 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.


Configuring Router Discovery to Add a Default Gateway

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.


Comparing Different Default Gateway Configuration Methods

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

Configuration Method Used to Add Multiple Default Gateways Metric or Cost Assigned to Default Gateway
Better Than the Cost of Current Default Gateway Equal to the Cost of Current Default Gateway Worse Than the Cost of Current Default Gateway

Using INETCFG to Add a Default Gateway

Will be added to the Default Gateway list and will be made the default gateway.

Will not be made the default gateway, but entry will be added to the Default Gateway list.

Will not be made the default gateway, but entry will be added to the Default Gateway list.

Using BIND to Add a Default Gateway

Will be added to the Default Gateway list and will be made the default gateway.

Will not be made the default gateway, but entry will be added to the Default Gateway list.

Will not be made the default gateway, but entry will be added to the Default Gateway list.

Using TCPCON to Add a Default Gateway

Will be added to the Default Gateway list and will be made the default gateway.

Will be added to the Default Gateway list and will be made the default gateway.

Will not be added to the Default Gateway list and will not be made the default gateway.

Configuring RIP to Add a Default Gateway

Will be added to the Default Gateway list and will be made the default gateway.

Will not be added to the Default Gateway list and will not be made the default gateway.

Will not be added to the Default Gateway list and will not be made the default gateway.

Configuring Router Discovery to Add a Default Gateway

Has the least priority. Will be added to the Default Gateway list but will not be made the default gateway until the default gateways added through INETCFG, TCPCON, BIND, or RIP are absent.

Has the least priority. Will be added to the Default Gateway list but will not be made the default gateway until the default gateways added through INETCFG, TCPCON, BIND, or RIP are absent.

Has the least priority. Will be added to the Default Gateway list but will not be made the default gateway until the default gateways added through INETCFG, TCPCON, BIND, or RIP are absent.


Enabling Dead Gateway Detection

  1. Load INETCFG and then select Protocols > TCP/IP.

  2. Select Dead Gateway Detection > Enabled.

  3. Press Esc until you are prompted to save your changes, and then select Yes.

  4. Press Esc to return to the Internetworking Configuration menu.

  5. If you want these changes to take effect immediately, select Reinitialize System > Yes.


Configuring Dead Gateway Detection

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.


Configuring Probe Interval

  1. Load INETCFG and then select Protocols > TCP/IP > Dead Gateway Detection Configuration.

  2. Select Probe Interval and then enter a value in seconds.

  3. Press Esc until you are prompted to save your changes, and then select Yes.

  4. Press Esc to return to the Internetworking Configuration menu.

  5. If you want these changes to take effect immediately, select Reinitialize System > Yes.


Configuring Probe Timeout

  1. Load INETCFG and then select Protocols > TCP/IP > Dead Gateway Detection Configuration.

  2. Select Probe Timeout and then enter a value in seconds.

  3. Press Esc until you are prompted to save your changes, and then select Yes.

  4. Press Esc to return to the Internetworking Configuration menu.

  5. If you want these changes to take effect immediately, select Reinitialize System > Yes.



  Previous Page: Configuring OSPF  Next Page: Configuring Load Balancing