To quickly detect link quality changes for static routes and ensure timely link switching, you can associate the IPv4 static routes with a route monitoring group. If a network-side link fails, the route monitoring group detects the status change of the corresponding network-side route and triggers switching between the active and standby links on the access side. This prevents network congestion and traffic loss and ensures service continuity.
Before configuring association between IPv4 static routes and a route monitoring group, configure link-layer protocol parameters and IP addresses for interfaces to ensure that the link-layer protocol status of the interfaces is Up.
The system view is displayed.
Run ip route-monitor-group group-name
A route monitoring group is created and the route monitoring group view is displayed.
By default, no route monitoring group is created on a switch.
Run track ip route [ vpn-instance vpn-instance-name ] dest-address { mask | mask-length }
A route is added to the route monitoring group.
By default, no route is added to a route monitoring group.
To add more routes to the route monitoring group, repeat this step. A route monitoring group can monitor a maximum of 16 routes.
The relationship between routes in the route monitoring group is set to AND.
By default, the status of routes in a route monitoring group is of the OR relationship. That is, the status of the route monitoring group is Up as long as one route in the group is Up. The status of the monitoring group is Down only when all routes in the group are Down.
(Optional) Run trigger-down-delay delay-value
A delay after which the RM module instructs the associated service modules to perform link switchovers is configured.
By default, the delay is 0s.
A delay after which the RM module instructs the associated service modules to perform link switchbacks is configured.
By default, the delay is 5s.
The route monitoring group is enabled.
The system view is displayed.
Association between IPv4 static routes and the route monitoring group is configured.
Run the display current-configuration | include track route-monitor-group command to check the configuration of the association between IPv4 static routes and route monitoring groups.