The track ip route command adds a route to a route monitoring group.
The undo track ip route command deletes a route from a route monitoring group.
By default, no route is added to a route monitoring group.
track ip route [ vpn-instance vpn-instance-name ] dest-address { mask | mask-length }
undo track ip route [ vpn-instance vpn-instance-name ] dest-address { mask | mask-length }
| Parameter | Description | Value | 
|---|---|---|
vpn-instance vpn-instance-name  | 
Specifies the VPN instance to which a route belongs. If this parameter is specified, a VPN route in the VPN instance is added to the route monitoring group. If this parameter is not specified, a public network route is added to the route monitoring group.  | 
The value is a string of 1 to 31 case-sensitive characters without spaces. If the string is enclosed in double quotation marks (" "), the string can contain spaces.  | 
dest-address  | 
Specifies the destination IP address of a route.  | 
The value is in dotted decimal notation.  | 
mask  | 
Specifies the mask of the destination IP address of a route.  | 
The value is in dotted decimal notation.  | 
mask-length  | 
Specifies the mask length of the destination IP address of a route.  | 
The value is an integer in the range from 0 to 32.  | 
Usage Scenario
A route monitoring group can monitor the status of its member routes to prevent network congestion and packet loss. You can run the track ip route command to add a route to be monitored to a route monitoring group. All network-side routes of the same type can be added to the same route monitoring group.
Follow-up Procedure
Run the monitor enable command to enable the route monitoring group.
Precautions
A maximum of 16 routes can be added to a route monitoring group. A route can be added to multiple route monitoring groups.