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.
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
Use the ip route-static selection-rule relay-depth command.
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.