双向转发检测bfd是一种用于检测邻居路由之间链路故障的检测机制,他通常与路由协议联动,通过快速感知链路故障并通告使得路由协议能够快速的重新收敛,从而减少由于拓扑变化导致的流量丢失。
查看邻居建立关系
[r1]dis rip 1 neighbor --------------------------------------------------------------------- ip address interface type last-heard-time--------------------------------------------------------------------- 192.168.1.1 gigabitethernet0/0/1 rip 015 number of rip routes : 2 192.168.2.1 gigabitethernet0/0/2 rip 013 number of rip routes : 1 查看路由表,发现去往172.16.1.0/24下一跳是 192.168.1.1 接口是g0/0/1
[r1]dis ip routing-table route flags: r - relay, d - download to fib------------------------------------------------------------------------------routing tables: public destinations : 12 routes : 13 destination/mask proto pre cost flags nexthop interface 127.0.0.0/8 direct 0 0 d 127.0.0.1 inloopback0 127.0.0.1/32 direct 0 0 d 127.0.0.1 inloopback0127.255.255.255/32 direct 0 0 d 127.0.0.1 inloopback0 172.16.1.0/24 rip 100 1 d 192.168.1.1 gigabitethernet0/0/1 192.168.1.0/24 direct 0 0 d 192.168.1.2 gigabitethernet0/0/1 192.168.1.2/32 direct 0 0 d 127.0.0.1 gigabitethernet0/0/1 192.168.1.255/32 direct 0 0 d 127.0.0.1 gigabitethernet0/0/1 192.168.2.0/24 direct 0 0 d 192.168.2.2 gigabitethernet0/0/2 192.168.2.2/32 direct 0 0 d 127.0.0.1 gigabitethernet0/0/2 192.168.2.255/32 direct 0 0 d 127.0.0.1 gigabitethernet0/0/2 192.168.3.0/24 rip 100 1 d 192.168.2.1 gigabitethernet0/0/2 rip 100 1 d 192.168.1.1 gigabitethernet0/0/1255.255.255.255/32 direct 0 0 d 127.0.0.1 inloopback0 r1启用bfd
[r1]bfd[r1-bfd]quit[r1]rip 1[r1-rip-1]bfd all[r1-rip-1]bfd all-interfaces enable[r1-rip-1]bfd all-interfaces min-rx-interval 100 min-tx-interval 100 detect-multiplier 10[r1-rip-1]quit r2启用bfd
[r2]bfd[r2-bfd]quit[r2]rip 1[r2-rip-1]bfd all[r2-rip-1]bfd all-interfaces enable[r2-rip-1]bfd all-interfaces min-rx-interval 100 min-tx-interval 100 detect-multiplier 10[r2-rip-1]quit 查看bfd,发现r1与r2已经建立成功
[r1]dis rip 1 bfd session all localip :192.168.1.2 remoteip :192.168.1.1 bfdstate :up tx :100 rx :100 multiplier:10 bfd local dis :8192 interface :gigabitethernet0/0/1 diagnostic info:no diagnostic information localip :192.168.2.2 remoteip :192.168.2.1 bfdstate :down tx :13999 rx :13999 multiplier:0 bfd local dis :8193 interface :gigabitethernet0/0/2 diagnostic info:no diagnostic information 手动关闭r2上面连接r1的接口,再次查看bfd发现不存在了
[r1]dis rip 1 bfd session all localip :192.168.2.2 remoteip :192.168.2.1 bfdstate :down tx :13999 rx :13999 multiplier:0 bfd local dis :8193 interface :gigabitethernet0/0/2 diagnostic info:no diagnostic information 再次查看路由表,发现去往172.16.1.0/24的下一跳更改了
[r1]dis ip routing-table route flags: r - relay, d - download to fib------------------------------------------------------------------------------routing tables: public destinations : 9 routes : 9 destination/mask proto pre cost flags nexthop interface 127.0.0.0/8 direct 0 0 d 127.0.0.1 inloopback0 127.0.0.1/32 direct 0 0 d 127.0.0.1 inloopback0127.255.255.255/32 direct 0 0 d 127.0.0.1 inloopback0 172.16.1.0/24 rip 100 2 d 192.168.2.1 gigabitethernet0/0/2 192.168.2.0/24 direct 0 0 d 192.168.2.2 gigabitethernet0/0/2 192.168.2.2/32 direct 0 0 d 127.0.0.1 gigabitethernet0/0/2 192.168.2.255/32 direct 0 0 d 127.0.0.1 gigabitethernet0/0/2 192.168.3.0/24 rip 100 1 d 192.168.2.1 gigabitethernet0/0/2255.255.255.255/32 direct 0 0 d 127.0.0.1 inloopback0
超声波清洗机的结构与工作原理
深度学习与图神经网络学习分享:Transformer
乾照透露Micro LED发展“小目标”
简述云知声发展崛起之路
嵌入式系统中单片机与处理器有什么区别
华为RIP与BFD联动实验
针对X-SSD体系结构的Villars器件的参考设计
AMD推锐龙嵌入式R1000处理器Zen架构
便携式农残检测仪的原理及其使用方法的介绍
中外合作研制出新型专用型光量子模拟芯片
物联网安全告急 芯片设计安全问题升级
第十七届慕尼黑上海光博会观众预登记全面开启
乘势而上 杰发科技奋力打造汽车电子“中国芯”
恒温恒湿测试箱在半导体和电子电气等行业的应用-贝尔试验设备
物联网传递信息可以改变联网汽车的方式
特朗普亲自带头,在一家美国的短视频平台上开通了账号
如何选购贴片机
4G升级到5G是真正意义上的融合网络
jesd204b协议传输层采样下的单通道映射
【节能学院】安科瑞ADL400系列导轨电能表在沙特电力物联网平台中的应用