核心配置步骤
1. 划分主备路径
主路径静态路由(高优先级,默认60)
ip route-static 0.0.0.0 0 <主出口下一跳> [接口名] bfd control-packet
备份路径静态路由(低优先级,如65)
ip route-static 0.0.0.0 0 <备份出口下一跳> [接口名] preference 65
2. 配置BFD参数(直连场景)
全局启用BFD
bfd
在出接口配置BFD检测参数
interface <主出口接口名>
bfd min-transmit-interval 500 发送间隔(ms)
bfd min-receive-interval 500 接收间隔(ms)
bfd detect-multiplier 9 检测倍数
3. 非直连场景特殊配置
需指定源IP(非直连时必需)
ip route-static 0.0.0.0 0 <非直连下一跳> bfd control-packet bfd-source <本端IP>
配置案例(双出口主备切换)
主路径配置(出口1)
ip route-static 0.0.0.0 0 202.100.1.1 GigabitEthernet0/1 bfd control-packet
ip route-static 0.0.0.0 0 202.100.2.1 GigabitEthernet0/2 preference 65
BFD参数优化(GE0/1接口)
interface GigabitEthernet0/1
bfd min-transmit-interval 500
bfd min-receive-interval 500
bfd detect-multiplier 7 500ms × 7 = 3.5秒故障检测
关键验证命令
display bfd session 查看BFD会话状态(需为Up)
display ip routing-table 验证主路径激活(Proto=Static Pref=60)
ping -a <bfd-source-ip> <对端IP> 测试BFD可达性
注意事项
1. 直连检测:BFD control-packet模式要求两端设备均支持BFD
2. 非直连场景:
必须配置bfd-source(建议用Loopback地址)
确保源IP到对端有可达路由
3. 切换时间:调整detect-multiplier可优化故障检测速度(默认5秒)
故障场景:当主路径BFD检测失败时,路由自动切换至备份路径(Pref=65),收敛时间<1秒。恢复后自动回切。
完整配置指南参考:[H3C静态路由与BFD联动官方文档](https://www.h3c.com/cn/d_202401/2020400_30005_0.htm_Toc155620877)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论