Bootstrap

BFD-Static

拓扑

方法一:

 S1
#
 bfd multi-hop min-transmit-interval 500
 bfd multi-hop min-receive-interval 500
 bfd multi-hop detect-multiplier 3
#
 ip route-static 4.4.4.4 32 10.1.13.3 preference 100
 ip route-static 4.4.4.4 32 10.1.24.4 bfd control-packet bfd-source 10.1.12.1
 ip route-static 10.1.24.0 24 10.1.12.2
 S2
#
 ip route-static 1.1.1.1 32 10.1.12.1
 ip route-static 4.4.4.4 32 10.1.24.4
S3
#
 ip route-static 1.1.1.1 32 10.1.13.1
 ip route-static 1.1.1.1 32 10.1.34.4
S4
#
 bfd multi-hop min-transmit-interval 500
 bfd multi-hop min-receive-interval 500
 bfd multi-hop detect-multiplier 3
#
 ip route-static 1.1.1.1 32 10.1.34.3 preference 100
 ip route-static 1.1.1.1 32 10.1.12.1 bfd control-packet bfd-source 10.1.24.4
 ip route-static 10.1.12.0 24 10.1.24.2

关闭S1上行链路

方法二:

将ip route-static 4.4.4.4 32 10.1.24.4 bfd control-packet bfd-source 10.1.12.1
改为
[S1]bfd static 14 peer-ip 10.1.24.4 source-ip 10.1.12.1 discriminator local 1 remote 4
[S1]ip route-static 4.4.4.4 32 10.1.24.4 bfd static 14
将ip route-static 1.1.1.1 32 10.1.12.1 bfd control-packet bfd-source 10.1.24.4
改为
[S4]bfd static 14 peer-ip 10.1.12.1 source-ip 10.1.24.4 discriminator local 4 remote 1
[S4]ip route-static 1.1.1.1 32 10.1.12.1 bfd static 14

BFD命令使用

bfd session init-mode            ######修改BFD会话建立前的模式 (缺省为主模式) 
bfd demand enable                ######配置BFD会话为查询方式(缺省为异步模式) 
bfd authentication-mode        ########配置BFD的验证(接口 下配置) 
display bfd session verbose    ######## 查看BFD会话的详细信息 

;