设为首页收藏本站language 语言切换
查看: 632|回复: 0
收起左侧

【笔记分享】实战BDF分享

[复制链接]
发表于 2022-11-28 16:26:32 | 显示全部楼层 |阅读模式
BFD

BFD的检测机制:两个系统建立BFD会话,并沿它们之间的路径周期性发送BFD控制报文,如果一方在既定的时间内没有收到BFD控制报文,则认为路径上发生了故障。BFD的检测模式有异步模式和查询模式两种。

异步模式和查询模式的本质区别:检测的位置不同,异步模式下本端按一定的发送周期发送BFD控制报文,检测位置为远端,远端检测本端是否周期性发送BFD控制报文;查询模式下本端检测自身发送的BFD控制报文是否得到了回应。

BFD检测时间

BFD缺省时间参数

BFD报文发送间隔默认1000毫秒,接受间隔默认1000毫秒,本地检测倍数3次。

BFD会话等待恢复时间0秒,会话延迟Up时间0秒。

检测超时倍数,用于检测方计算检测超时时间。

查询模式:采用本地检测倍数。

异步模式:采用对端检测倍数。

作业

1.静态路由与BFD联动


r1配置

[r1]bfd \\使能bfd

[r1]bfd 1to2 bind peer-ip 12.0.0.2 interface g0/0/0 \\创建bfd取名为1to2,远端ip为12.0.0.2,出接口为g0/0/0

[r1-bfd-session-1to2]discriminator local 1 \\本地标识符为1

[r1-bfd-session-1to2]discriminator remote 2  \\远端标识符为1

[r1-bfd-session-1to2]commit \\提交

[r1]ip route-static 0.0.0.0 0 12.0.0.2 track bfd-session 1to2 \\配置静态路由并与bfd1to2绑定

r2配置

[r2]bfd

[r2]bfd 2to1 bind peer-ip 12.0.0.1 interface g0/0/0

[r2-bfd-session-2to1]discriminator local 2

[r2-bfd-session-2to1]discriminator remote 1

[r2-bfd-session-2to1]commit

没有配置静态路由与BFD联动时关闭r2g0/0/0依然有静态路由


配置静态路由与BFD联动后关闭r2g0/0/0没有静态路由


2.单臂回声 ,R2为不支持BFD的设备时

[r1]bfd

[r1]bfd 1to2 bind peer-ip 12.0.0.2 interface g0/0/0 one-arm-echo \\创建bfd取名为1to2,远端ip为12.0.0.2,出接口为g0/0/0,开启单臂回声

[r1-bfd-session-1to2]discriminator local 1

[r1-bfd-session-1to2]commit



3.ospf和bfd联动

[r1-ospf-10]bfd all-interfaces enable \\使能bfd功能

[r1-ospf-10]bfd all-interfaces min-rx-interval 100 min-tx-interval 100 \\设置bfd最小接收间隔为100ms,最小发送间隔为100ms

[r2-ospf-10]bfd all-interfaces enable

[r2-ospf-10]bfd all-interfaces min-rx-interval 100 min-tx-interval 100

[r3-ospf-10]bfd all-interfaces enable

[r3-ospf-10]bfd all-interfaces min-rx-interval 100 min-tx-interval 100

配置ospf和bfd联动前需要等待40秒才会重新计算路由

配置ospf和bfd联动后只需要等待300毫秒就能重新计算路由


本帖隐藏的内容链接: https://pan.baidu.com/s/1LBHcUpEbRYbi2CAgSqyeRw?pwd=qac4 提取码: qac4 --来自百度网盘超级会员v5的分享



QQ:3378266435,微信:qyt3378266435






QQ:3378266435, 微信:qyt3378266435
截图 (3).png (15.82 KB, 下载次数: 0)

截图 (8).png (12.8 KB, 下载次数: 0)



您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-3-1 05:32 , Processed in 0.060608 second(s), 21 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表