最佳答案
策略路由配置可以按照以下步骤进行: 1. 按照组网图组网。 2. 通过菜单“网络管理 > 路由 > 策略路由”,点击<新建>,进入配置页面。 3. 点击源地址那一栏后面的<新建>,建立需要的地址对象。 4. 点击<提交>按钮,进入策略路由配置页面,填写下一跳信息,并点击<提交>按钮提交配置。 5. 同样方式配置其他网段的策略路由。 配置完成后,WEB界面会生成相应的策略路由。如果需要保存配置,设备默认会保存配置。
(0)
1、设备接口ip地址配置
线路A
interface GigabitEthernet0/0
port link-mode route
ip address 10.10.10.1 255.255.255.252
#
线路B
interface GigabitEthernet0/1
port link-mode route
ip address 20.20.20.1 255.255.255.252
2、配置线路不可达NAQ检测
//A线路不可达探测
nqa entry admin 1
type icmp-echo //icmp探测
destination ip 10.10.10.2
frequency 100 //连续两次测试开始时间的时间间隔为100毫秒
reaction 1 checked-element probe-fail threshold-type consecutive 3 action-type trigger-only //测试失败3次触发联动
source ip 10.10.10.1
nqa schedule admin 1 start-time now lifetime forever //启动ICMP测试操作
//B线路不可达探测
nqa entry test 1
type icmp-echo
destination ip 20.20.20.2
frequency 100
reaction 2 checked-element probe-fail threshold-type consecutive 3 action-type trigger-only
source ip 20.20.20.1
nqa schedule test 1 start-time now lifetime forever
//A线路track
track 1 nqa entry admin 1 reaction 1
//B线路track
track 2 nqa entry test 1 reaction 2
3、策略路由配置
//A网段业务命中
acl advanced 3001
rule 0 permit ip source x.x.x.0 0.0.0.255
//B网段业务
acl advanced 3002
rule 0 permit ip source x.x.x.0 0.0.0.255
//A网段分流走A线路
policy-based-route PBR permit node 10
if-match acl 3001
apply next-hop 10.10.10.2 track 1 //关联track项,A线路正常的情况下一跳生效,A线路异常NQA探测失败后此下一跳失败,进行下一条策略匹配
// //B网段分流走B线路
policy-based-route PBR permit node 20
if-match acl 3002
apply next-hop 20.20.20.2 track 2 //关联track项,A线路正常的情况下一跳生效,B线路异常NQA探测失败后此下一跳失败,进行下一条策略匹配
#
policy-based-route PBR permit node 30 //此项为必配置项,当10/20均未命中时匹配此条运行通过策略,用来实现10/20失效后匹配本地路由表
4、调用策略路由
interface GigabitEthernet0/2
port link-mode route
ip policy-based-route PBR
#
interface GigabitEthernet5/0
port link-mode route
ip policy-based-route PBR
5、配置出方向静态路由
ip route-static 0.0.0.0 0 10.10.10.2 track 1 //A线路默认出口路由关联track项,实现下一跳不可达时路由失效
ip route-static 0.0.0.0 0 20.20.20.2 track 2 //B线路默认出口路由关联track项,实现下一跳不可达时路由失效
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论