目录
BFD与静态路由联动
BFD与静态路由联动(单跳)
BFD与静态路由联动(多跳)
BFD与动态路由联动
配置BFD与OSPF联动
配置BFD与BGP联动
BFD与静态路由联动
BFD联动静态路由注意事项
1、配置需要联动的静态路由时,必须配置出接口和下一跳(此下一跳必须和对端BFD指定的源地址一致)
2、在配置BFD和静态路由联动时,BFD探测的出接口和下一跳需要与静态路由的出接口和下一跳对应(在模拟器配置时)
3、BFD的模式默认为单臂回声echo模式(当对端不支持BFD协议或是其它厂商设备时使用此模式)
BFD与静态路由联动(单跳)
配置R1的浮动路由
ip route 0.0.0.0 255.255.255.0 GigabitEthernet 0/0 10.0.12.2 走上行(此静态联动BFD)
ip route 0.0.0.0 255.255.255.0 10.0.14.2 100 通过下行连路走
R1配置BFD联动静态路由
interface GigabitEthernet 0/0
bfd interval 500 min_rx 500 multiplier 3
no bfd echo
ip route static bfd GigabitEthernet 0/0 10.0.12.2 source 10.0.12.1
配置R2的浮动路由
ip route 0.0.0.0 255.255.255.0 GigabitEthernet 0/0 10.0.12.1 走上行(此静态联动BFD)
ip route 0.0.0.0 255.255.255.0 10.0.14.1 100 通过下行连路走
R2配置与BFD联动静态路由
interface GigabitEthernet 0/0
bfd interval 500 min_rx 500 multiplier 3
ip route static bfd GigabitEthernet 0/0 10.0.12.1 source 10.0.12.2
BFD与静态路由联动(多跳)
通过BFD联动静态路由检测非直连端口,此时需要修改联动的静态路由
还需要增加ARP静态绑定的配置(保证路由可达)
配置R1的浮动路由
ip route 0.0.0.0 255.255.255.0 GigabitEthernet 0/0 10.0.23.3 走上行(此静态联动BFD)
ip route 10.0.23.3 255.255.255.0 10.0.12.2 去往10.0.23.3的路由
ip route 0.0.0.0 255.255.255.0 10.0.14.4 100 通过下行连路走
R1配置BFD联动静态路由
interface GigabitEthernet 0/0
bfd interval 500 min_rx 500 multiplier 3
no bfd echo
ip route static bfd GigabitEthernet 0/0 10.0.23.3 source 10.0.12.1
R1上配置ARP静态绑定(对跨下一跳的地址进行ARP绑定,否则无法解析ARP)
Arp 10.0.23.3 5000.0002.0001 arpa
此MAC地址为R2 G0/0口的MAC地址
配置R3的浮动路由
ip route 0.0.0.0 255.255.255.0 GigabitEthernet 0/0 10.0.12.1 走上行(此静态联动BFD)
ip route 10.0.12.1 255.255.255.0 10.0.23.2 去往10.0.23.3的路由
ip route 0.0.0.0 255.255.255.0 10.0.34.4 100 通过下行连路走
R3配置BFD联动静态路由
interface GigabitEthernet 0/0
bfd interval 500 min_rx 500 multiplier 3
no bfd echo
ip route static bfd GigabitEthernet 0/0 10.0.12.1 source 10.0.23.3
R3上配置ARP静态绑定(对跨下一跳的地址进行ARP绑定,否则无法解析ARP)
Arp 10.0.12.1 5000.0003.0001 arpa
此MAC地址为R2 G0/1口的MAC地址
配置BFD Up状态稳定时间(缺省为0s,Up状态后立即通告)
对于一般网络,参数建议配置为10000ms,也就是10s
[接口下]:Bfd up-dampening 10000
BFD与动态路由联动
配置BFD与OSPF联动
配置BFD联动OSPF(R1和R2的配置相同)
interface GigabitEthernet 0/0
bfd interval 500 min_rx 500 multiplier 3
no bfd echo
ip ospf bfd 开启BFD与OSPF联动
配置BFD与BGP联动
R2配置
interface GigabitEthernet 0/1
bfd interval 500 min_rx 500 multiplier 3 配置BFD的会话参数
no bfd echo
Bgp 1000
neighbor 3.3.3.3 fall-over bfd 配置BGP与BFD联动
R3配置
interface GigabitEthernet 0/0
bfd interval 500 min_rx 500 multiplier 3
no bfd echo
Bgp 1000
neighbor 2.2.2.2 fall-over bfd