示例图片:
操作步骤:
配置SwitchA的BFD单跳检测
# 使能SwitchA上的BFD功能。
<HUAWEI> system-view
[HUAWEI] sysname SwitchA
[SwitchA] bfd
[SwitchA-bfd] quit
# 配置SwitchA上的BFD会话。
[SwitchA] bfd atob bind peer-ip default-ip interface gigabitethernet 1/0/1
[SwitchA-bfd-session-atob] discriminator local 1
[SwitchA-bfd-session-atob] discriminator remote 2
[SwitchA-bfd-session-atob] commit
[SwitchA-bfd-session-atob] quit
配置SwitchB的BFD单跳检测
# 使能SwitchB上的BFD功能。
<HUAWEI> system-view
[HUAWEI] sysname SwitchB
[SwitchB] bfd
[SwitchB-bfd] quit
# 配置SwitchB上的BFD会话。
[SwitchB] bfd btoa bind peer-ip default-ip interface gigabitethernet 1/0/1
[SwitchB-bfd-session-btoa] discriminator local 2
[SwitchB-bfd-session-btoa] discriminator remote 1
[SwitchB-bfd-session-btoa] commit
[SwitchB-bfd-session-btoa] quit