track interface protocol
Use track interface protocol to create a track entry and associate it with the protocol state of the specified interface.
Use undo track to remove the track entry.
Syntax
track track-entry-number interface interface-type interface-number protocol { ipv4 | ipv6 } [ delay { negative negative-time | positive positive-time } * ]
undo track track-entry-number
Default
No track entry exists.
Views
System view
Predefined user roles
network-admin
Parameters
track-entry-number: Specifies the track entry ID in the range of 1 to 1024.
interface-type interface-number: Specifies an interface by its type and number.
ipv4: Monitors the IPv4 protocol state. When the IPv4 protocol state of an interface is up, the state of the track object is Positive. When the IPv4 protocol state of an interface is down, the state of the track object is Negative. To display the IPv4 protocol state of an interface, use the display ip interface brief command.
ipv6: Monitors the IPv6 protocol state. When the IPv6 protocol state of an interface is up, the state of the track object is Positive. When the IPv6 protocol state of an interface is down, the state of the track object is Negative. To display the IPv6 protocol state of an interface, use the display ipv6 interface brief command.
delay: Specifies the delay before the Track module notifies the application modules of the track entry state change. If you do not specify this keyword, the Track module notifies the application modules immediately when the track entry state changes.
negative negative-time: Specifies the delay before the Track module notifies the application modules that the state of the track entry has changed to Negative. The negative-time argument represents the delay time in the range of 1 to 300 seconds.
positive positive-time: Specifies the delay before the Track module notifies the application modules that the state of the track entry has changed to Positive. The positive-time argument represents the delay time in the range of 1 to 300 seconds.
Usage guidelines
After a track entry is created, you can only use the track interface protocol delay command to modify its notification delay settings. To modify other settings, you must delete the entry and create a new one.
Examples
# Create track entry 1, and associate it with the IPv4 protocol state of VLAN-interface 2.
<Sysname> system-view [Sysname] track 1 interface vlan-interface 2 protocol ipv4
Related commands
display track
display ip interface brief (Layer 3—IP Services Command Reference)
display ipv6 interface brief (Layer 3—IP Services Command Reference)