vrrp vrid track link-bfd down-number

Function

The vrrp vrid track link-bfd down-number command sets a threshold for the number of link BFD sessions tracked by a VRRP group that go Down. When the number of link BFD sessions tracked by the VRRP group that go Down reaches or exceeds the specified threshold, the VRRP group performs a master/backup switchover.

The undo vrrp vrid track link-bfd command deletes the configured threshold.

By default, a VRRP group performs a master/backup VRRP switchover only when all link BFD sessions tracked by it go Down.

Format

vrrp vrid virtual-router-id track link-bfd down-number down-number

undo vrrp vrid virtual-router-id track link-bfd

Parameters

Parameter Description Value
down-number

Specifies a threshold for the number of link BFD sessions tracked by a VRRP group that go Down.

The value is an integer ranging from 1 to 8.

vrid virtual-router-id

Specifies the ID of a VRRP group.

The value is an integer ranging from 1 to 255.

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
vrrp write

Usage Guidelines

Usage Scenario

If a VRRP group is bound to multiple link BFD sessions and the vrrp vrid track link-bfd command is not run, the VRRP group performs a master/backup VRRP switchover only when all link BFD sessions go Down. To improve network stability and reliability, run the vrrp vrid track link-bfd command to set a threshold for the number of link BFD sessions tracked by the VRRP group that go Down.

  • If the number of link BFD sessions tracked by the VRRP group that go Down reaches or exceeds the specified threshold, the VRRP group performs a master/backup VRRP switchover.
  • If the number of link BFD sessions tracked by the VRRP group that go Down does not reach the specified threshold, the VRRP group does not perform a master/backup VRRP switchover.
  • If the number of link BFD sessions tracked by the VRRP group is less than the value specified by the parameter, the VRRP group performs a master/backup VRRP switchover only when all tracked link BFD sessions go Down.

Prerequisites

A VRRP group and a link BFD session have been configured.

Example

# Set the threshold for the number of link BFD sessions tracked by a VRRP group that go Down to 2 on GE 0/1/1.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[~HUAWEI-GigabitEthernet0/1/1] ip address 10.10.10.6 24
[*HUAWEI-GigabitEthernet0/1/1] vrrp vrid 1 virtual-ip 10.10.10.185
[*HUAWEI-GigabitEthernet0/1/1] vrrp vrid 1 track link-bfd down-number 2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >