Configure IPv6 Static Route to Coordinate with Track
Configuration Condition
None
Configure an IPv6 Static Route to Coordinate with Track
Some modules in the system need to monitor some system information and then determine their working modes based on the information. The objects that are monitored by the other modules are called monitoring objects. To simplify the relations between the modules and monitoring objects, Track objects are used. A Track object can contain multiple monitoring objects, and it displays the comprehensive status of the monitoring object to external modules. The external modules are associated only with Track objects and they do not care about monitoring objects contained in the Track objects any more. A Track object has two statuses, "true" and "false". The external modules that are associated with the Track object determine its working modes according to the Track object status.
A static route can associate with a Track object to monitor system information and determine whether the route is valid according to the status reported by the Track object. If the Track object reports "true", the conditions required by the static route are satisfied, and the route is added to the routing table. If the Track object reports "false", the route is deleted from the routing table.
Table 4-5 Configuring an IPv6 static route to coordinate with track
Step
|
Command
|
Description
|
Enter the global configuration mode.
|
configure terminal
|
-
|
Create a Track object and enter the configuration mode of the Track object.
|
track track-id
|
Mandatory
|
Configure the track object to monitor the link status of the specified interface.
|
interface interface-name line-protocol
|
Optional
By default, the track object is not configured to monitor the link status of the specified interface.
|
Return to the global configuration mode.
|
exit
|
-
|
Configure a static route and associate it with the Track object.
|
Ipv6 route destination-ip-address destination-mask interface-name track track-id
|
Mandatory
When the link layer of the monitoring interface is UP, the route is valid; otherwise, the route is invalid.
|