Associating Track with interface management

The interface management module monitors the physical status, link status, or network-layer protocol status of interfaces. The associated Track and interface management operate as follows:

To associate Track with interface management:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Create a track entry, associate it with an interface, and enter its view.

  • Create a track entry, and associate it with the interface management module to monitor the link status of an interface:track track-entry-number interface interface-type interface-number

  • Create a track entry to monitor the physical status of an interface:
    track
    track-entry-number interface interface-type interface-number physical

  • Create a track entry to monitor the network-layer protocol status of an interface:
    track
    track-entry-number interface interface-type interface-number protocol { ipv4 | ipv6 }

By default, no track entries exist.

3. Set the delay for notifying the application module of track entry state changes.

delay { negative negative-time | positive positive-time } *

By default, the Track module notifies the application module immediately when the track entry state changes.