< Home

Configuring Association Between IPv4 Static Routes and a Route Monitoring Group

Context

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.

Pre-configuration Tasks

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.

Procedure

  1. Configure a route monitoring group.
    1. Run system-view

      The system view is displayed.

    2. 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.

    3. 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.

    4. (Optional) Run operator and

      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.

    5. (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.

    6. (Optional) Run trigger-up-delay delay-value

      A delay after which the RM module instructs the associated service modules to perform link switchbacks is configured.

      By default, the delay is 5s.

    7. Run monitor enable

      The route monitoring group is enabled.

  2. Configure association between IPv4 static routes and the route monitoring group.
    1. Run system-view

      The system view is displayed.

    2. Run ip route-static ip-address { mask | mask-length } { nexthop-address | interface-type interface-number [ nexthop-address ] | vpn-instance vpn-instance-name nexthop-address } [ preference preference | tag tag ] track route-monitor-group route-monitor-group-name [ description text ]

      Association between IPv4 static routes and the route monitoring group is configured.

Verifying the Configuration

  • Run the display ip route-monitor-group [ group-name ] command to check information about the route monitoring group.
  • Run the display ip route-monitor-group track-route [ vpn-instance vpn-instance-name ] dest-address { mask | mask-length } command to check information about all route monitoring groups to which a route is added.
  • 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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >