全局启用BFD
[R1]bfd
[R1-bfd]quit
----------
[R3]bfd
[R3-bfd]quit
全局创建BFD
[R1]bfd aa bind peer-ip 12.1.1.2 source-ip 12.1.1.1 auto
-----------------
[R3]bfd aa bind peer-ip 12.1.1.1 source-ip 12.1.1.2 auto
查看BFD状态
[R3]display bfd session all
--------------------------------------------------------------------------------
Local Remote PeerIpAddr State Type InterfaceName
--------------------------------------------------------------------------------
8192 8192 12.1.1.1 Up S_AUTO_PEER -
--------------------------------------------------------------------------------
Total UP/DOWN Session Number : 1/0
VRRP关联
[R1-GigabitEthernet0/0/1]vrrp vrid 1 track bfd-session session-name aa
查看关联详情
[R1]display vrrp
GigabitEthernet0/0/1 | Virtual Router 1
State : Master
Virtual IP : 192.168.10.1
Master IP : 192.168.10.253
PriorityRun : 105
PriorityConfig : 105
MasterPriority : 105
Preempt : YES Delay Time : 0 s
TimerRun : 1 s
TimerConfig : 1 s
Auth type : NONE
Virtual MAC : 0000-5e00-0101
Check TTL : YES
Config type : normal-vrrp
Backup-forward : disabled
Track BFD : aa Priority reduced : 10
BFD-session state : UP
Create time : 2023-05-05 18:54:27 UTC-08:00
Last change time : 2023-05-05 19:21:16 UTC-08:00