< Home

track ip route

Function

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.

Format

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 }

Parameters

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.

Views

Route monitoring group view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Add the route to 10.1.1.0/24 to the route monitoring group uplink.

<HUAWEI> system-view
[HUAWEI] ip route-monitor-group uplink
[HUAWEI-route-monitor-group-uplink] track ip route 10.1.1.0 24 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic