| 场景 | 主备链路快速倒换、跨运营商出口 |
|---|---|
| 适用 | 全部三层设备 |
| 命令族 | bfd enable / track + IP SLA / bfd control-packet |
华为 VRP
华为 VRP
[Huawei] bfd
[Huawei] ip route-static 0.0.0.0 0 192.168.1.1 bfd enable ! 与该下一跳建 BFD
! 也支持 NQA 联动:ip route-static ... track nqa <admin> <name>
<Huawei> display bfd session all思科 IOS
思科 IOS
SW(config)# ip sla 1
SW(config-ip-sla)# icmp-echo 192.168.1.1 source-interface GigabitEthernet1/0/1
SW(config-ip-sla)# frequency 5
SW(config)# ip sla schedule 1 life forever start-time now
SW(config)# track 1 ip sla 1 reachability
SW(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.1 track 1H3C Comware
H3C Comware
[H3C] ip route-static 0.0.0.0 0 192.168.1.1 bfd control-packet
! BFD 会话参数在 bfd 视图统一配置
<H3C> display bfd sessionBFD 毫秒级检测、需双端建会话;IP SLA 单端探测、无需对端配合。跨厂备链:华为/H3C 优先 BFD;思科对接非思科设备常用 IP SLA。