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

Controlling Static Route Selection (Optional)

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

Figure 67: Controlling Static Route Selection

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 116.
  3. If you are finished configuring the router, commit the configuration.
  4. Go on to one of the following procedures:

Table 116: Controlling Static Route Selection

Task

J-Web Configuration Editor

CLI Configuration Editor

Navigate to the Static level in the configuration hierarchy.

  1. In the J-Web interface, select Configuration>View and Edit>Edit Configuration.
  2. Next to Routing options, click Configure or Edit.
  3. Next to Static, click Configure or Edit.

From the [edit] hierarchy level, 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. Next to Route, 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 box, 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. Next to Preference, select the Yes check box.
  2. Click Configure.
  3. In the Metric value box, type 7.
  4. 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. Next to Qualified next hop, click Add new entry.
  2. In the Nexthop box, type 10.10.10.7.

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. In the Preference box, type 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]