HCIP-3.4 OSPF联动BFD

OSPF配置:
R1:
ospf 1 router-id 1.1.1.1
area 0
network 1.1.1.0 0.0.0.255
net 21.1.1.0 0.0.0.255
net 12.1.1.0 0.0.0.255
R2:
ospf 1 router-id 1.1.1.2
area0
net 2.2.2.0 0.0.0.255
net 12.1.1.0 0.0.0.255
net 21.1.1.0 0.0.0.255
dis ip routing-table protocol ospf
OSPF 40秒收敛,10s一次Hello包,2倍时间故障检测。接口down立即收敛。
修改备份链路cost
R1:
int e0/0/1
ospf cost 3
R2:
int e0/0/1
ospf cost 3
int e0/0/0
ospf timer hell0 <1-65535> // 最低1秒,4秒收敛最快
联动BFD
R1:
bfd // 先启动bfd
opsf 1
bfd all-interface enable
// 所有位于ospf的接口全部启用bfd
int e0/0/0
ospf bfd enable
// 只在一个接口下启用bfd
R2:
bfd
ospf 1
bfd all-interface enable
bfd all-interface [min-tx-interval|min-rx-inreval] <100-1000> // bfd心跳时间 ms
调试命令
dis bfd session dynamic // 查看动态bfd会话
dis bfd session dynamic verbose
dis ospf bfd session all