[Contents] [Prev] [Next] [Index] [Report an Error]

Controlling Static Route Selection (Optional)

When multiple next hops exist for a single static route (see Figure 53), you can specify how traffic is to be routed to the destination.

Figure 53: Controlling Static Routes in the Routing and Forwarding Tables

Image g015024.gif

In this example, the static route 192.168.47.5/32 has two possible next hops. Because of the links between those next-hop hosts, host 10.10.10.7 is the preferred path. To configure the static route 192.168.47.5/32 with two next hops and give preference to host 10.10.10.7, follow these steps:

  1. Navigate to the top of the configuration hierarchy in either the J-Web or the CLI configuration editor.
  2. Perform the configuration tasks described in Table 57.
  3. If you are finished configuring the router, commit the configuration.
  4. Go on to one of the following procedures:

Table 57: Controlling Static Route Selection

Navigate to the Static level in the configuration hierarchy.

In the configuration editor hierarchy, select Protocols>Static.

From the top of the configuration hierarchy, enter

edit routing-options static

Add the static route 192.168.47.5/32, and define the next-hop address 10.10.10.10.

  1. In the Route field, click Add new entry.
  2. In the Destination box, type 192.168.47.5/32.
  3. From the Next hop list, select Next hop.
  4. In the Next hop field, click Add new entry.
  5. In the Value box, type 10.10.10.10.
  6. Click OK.

Define the static route and set the next-hop address:

set route 192.168.47.5 next-hop 10.10.10.10

Set the preference for the 10.10.10.10 next hop to 7.

  1. Under Preference, in the Metric value box, enter 7.
  2. Click OK.

Set the preference to 7:

set route 192.168.47.5 next-hop 10.10.10.10 preference 7

Define the qualified next-hop address 10.10.10.7.

  1. In the Qualified next hop field, click Add new entry.
  2. In the Nexthop field, enter 10.10.10.7.
  3. Click OK.

Set the qualified-next-hop address:

set route 192.168.47.5 qualified-next-hop 10.10.10.7

Set the preference for the 10.10.10.7 qualified next hop to 6.

  1. Under Preference, in the Metric value box, enter 6.
  2. Click OK.

Set the preference to 6:

set route 192.168.47.5 qualified-next-hop 10.10.10.7 preference 6


[Contents] [Prev] [Next] [Index] [Report an Error]