【每日一记11】第16天:BFD联动策略路由学习
  

新手727241 2084

{{ttag.title}}
     策略路由与 BFD 联动
    组网需求
Router A、Router B 通过二层交换机 switch 互连,在设备上配置策略路由来建立转发l 路径, 同时使能允许策略路由在双方接口上关联 BFD 应用。在 Router B 和二层交换机 swicth 之间的 链路发生故障后,BFD 能够快速检测并通告策略路由,触发系统删除该策略路由,从而避免选 路错误。
   组网拓扑
         
         策略路由与 BFD 联动拓扑图
   配置要点
1)      配置RouterA
#在 RouterA 配置 Routed Port 接口 ge2/1、接口 IP、接口的 BFD 会话参数
某公司# configure terminal
Enterconfiguration commands, one per line. End withCNTL/Z. 某公司(config)# interfaceGigabitEthernet2/1
某公司(config-if)#no switchport
某公司(config-if)# ip address 192.168.3.1 255.255.255.0
某公司(config-if)# bfd interval 200 min_rx 200 multiplier 5
# 配置 RoutedPort 接口 ge1/1
某公司(config-if)# exit
某公司(config)#interface GigabitEthernet1/1 某公司(config-if)#no switchport
某公司(config)#ip address 192.168.1.1 255.255.255.0
#配置策略路由并关联 BFD 来检测 192.168.3.2 邻居
某公司(config)# ip access-list extended 100
某公司(config-ext-nacl)#permit ip any 10.10.10.0 0.0.0.255 某公司(config-ext-nacl)# denyip any any
某公司(config-ext-nacl)# exit
某公司(config)#route-map Example1 permit 10 某公司(config-route-map)# match ip address 100 某公司(config-route-map)#set ip precedence priority
某公司(config-route-map)#set ip next-hop verify-availability 192.168.3.2
bfd GigabitEthernet0/1 192.168.3.2 某公司(config)# end
某公司#
2)       配置 RouterB
#在 RouterA 配置 Routed Port 接口、接口 IP、接口的 BFD 会话参数
某公司# configure terminal
Enterconfiguration commands, one per line. End withCNTL/Z. 某公司(config)# interface GigabitEthernet 2/1
某公司(config-if)#no switchport
某公司(config-if)# ip address 192.168.3.2 255.255.255.0
某公司(config-if)# bfd interval 50 min_rx 50 multiplier 3
# 配置 RoutedPort 接口 ge1/1
某公司(config-if)# exit
某公司(config)#interface GigabitEthernet1/1 某公司(config-if)# no switchport

某公司(config)# ip address 192.168.2.1 255.255.255.0
#配置策略路由并关联 BFD 来检测 192.168.3.1 邻居
某公司(config)# ip access-list extended 100
某公司(config-ext-nacl)#permit ip any 10.10.11.0 0.0.0.255 某公司(config-ext-nacl)# denyip any any
某公司(config-ext-nacl)# exit
某公司(config)#route-map Example1 permit 10 某公司(config-route-map)# match ip address 100 某公司(config-route-map)#set ip precedence priority
某公司(config-route-map)#set ip next-hop verify-availability 192.168.3.1
bfd GigabitEthernet2/1 192.168.3.1某公司(config)# end
某公司#

打赏鼓励作者,期待更多好文!

打赏
暂无人打赏

gqce 发表于 2020-9-17 09:57
  
感谢分享
一一氵 发表于 2020-9-17 11:39
  
感谢分享
头像被屏蔽
新手078326 发表于 2020-9-17 11:39
  
提示: 作者被禁止或删除 内容自动屏蔽
头像被屏蔽
新手780102 发表于 2020-9-17 12:24
  
提示: 作者被禁止或删除 内容自动屏蔽
sxfusr 发表于 2020-9-17 15:46
  
打卡学习
发表新帖
热门标签
全部标签>
新版本体验
纪元平台
每日一问
高手请过招
社区新周刊
产品连连看
功能体验
安全效果
GIF动图学习
标准化排查
【 社区to talk】
信服课堂视频
安装部署配置
SDP百科
终端接入
秒懂零信任
平台使用
畅聊IT
答题自测
专家问答
技术笔记
技术圆桌
在线直播
MVP
网络基础知识
升级
安全攻防
上网策略
测试报告
日志审计
问题分析处理
流量管理
每日一记
运维工具
用户认证
原创分享
解决方案
sangfor周刊
VPN 对接
项目案例
SANGFOR资讯
专家分享
技术顾问
信服故事
功能咨询
授权
设备维护
资源访问
地址转换
虚拟机
存储
迁移
排障笔记本
产品预警公告
玩转零信任
S豆商城资讯
技术争霸赛
「智能机器人」
追光者计划
2023技术争霸赛专题
卧龙计划
华北区拉练
天逸直播
以战代练
技术晨报
技术盲盒
山东区技术晨报
文档捉虫
齐鲁TV
华北区交付直播
每周精选
2024年技术争霸赛
北京区每日一练
场景专题
故障笔记
排障那些事
西北区每日一问
升级&主动服务
高频问题集锦
POC测试案例
全能先锋系列
云化安全能力
专家说
热门活动
产品动态
行业实践
产品解析
关键解决方案

本版达人

feeling

本周分享达人

新手29676...

本周提问达人