track bfd

Use track bfd to create a track entry and associate it with a BFD session.

Use undo track to remove the track entry.

Syntax

track track-entry-number bfd echo interface interface-type interface-number remote ip remote-ip local ip local-ip [ 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 interface-type interface-number: Specifies the output interface by its type and number of the BFD echo packets.

remote ip remote-ip: Specifies the destination IP address of the BFD echo packets.

local ip local-ip: Specifies the source IP address of the BFD echo packets.

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 status 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 status 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 bfd delay command to modify its notification delay settings. To modify other settings, you must delete the entry and create a new one.

When you configure collaboration between Track and BFD, do not configure the virtual IP address of a VRRP group as the local or remote address of a BFD session.

Examples

# Create track entry 1, which uses BFD to monitor the link between local IP address 1.1.1.2 and remote IP address 1.1.1.1 by sending BFD echo packets out from the VLAN-interface 2.

<Sysname> system-view
[Sysname] track 1 bfd echo interface vlan-interface 2 remote ip 1.1.1.1 local ip 1.1.1.2

Related commands

display track