< Home

ip route-static selection-rule relay-depth

Function

The ip route-static selection-rule relay-depth command configures static routes to be selected according to iteration depths.

The undo ip route-static selection-rule relay-depth command cancels the configuration.

By default, static routes are not selected according to iteration depths.

Format

ip route-static selection-rule relay-depth

undo ip route-static selection-rule relay-depth

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Applicable Environment

To prevent a loop when Gateway GPRS Support Node (GGSN) services are forwarded between boards, you need to use the ip route-static selection-rule relay-depth command to configure static routes to be selected according to iteration depths.

Procedure

  1. Use the ip route-static selection-rule relay-depth command.

  2. The static routes with the same prefix have the same preference and different iteration depths. The static route module selects the static route with the smallest iteration depth as the active route and sends it to the RM.

Configuration Impact

In the system, some static routes have the same prefix and preference and different iteration depths. After static routes are configured to be selected according to iteration depths, the static route module selects the static route with smallest iteration depth as the active route and downloads it to the Forwarding Information Base (FIB) table. Other static routes become inactive routes.

Precautions

After configuring static routes to be selected according to iteration depths, active routes may become inactive. For example, the active routes whose iteration depths are greater than 10 become inactive when static routes are selected according to iteration depths.

Example

# Configure static route to be selected according to iteration depths.

<sysname> system-view
[sysname] ip route-static selection-rule relay-depth
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >