本文主要是介绍使用MQC配置策略路由实验,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
MQC配置策略路由实验
实验拓扑:
实验要求:
1、市场部访问公司总部的路线是RTA-RTD-RTC
2、财务部访问公司总部的路线是RTA-RTB-RTC
设备配置如下:
[RTA] system-view
sysname RTA
ospf 1 r 1.1.1.1
area 0
quit
int g2/0/0
ip add 10.1.1.254 24
ospf e 1 a 0
quit
int g2/0/1
ip add 10.1.2.254 23
ospf e 1 a 0
quit
int g0/0/0
ip add 12.1.1.1 24
ospf e 1 a 0
int g0/0/1
ip add 12.1.3.1 24
ospf e 1 a 0
quit
acl 3000
rule 5 permit ip source 10.1.1.0 0.0.0.255 dest 10.1.3.0 0.0.0.255
traffic classifier huawei-control1
if-match acl 3000
traffic behavior huawei-control1
redirect ip-nexthop 12.1.3.4
traffic policy huawei-control1
classifier huawei-control1 behavior huawei-control1
quit
int g2/0/0
traffic-policy huawei-control1 inbound
quit
acl 3001
rule 5 permit ip source 10.1.2.0 0.0.0.255 dest 10.1.3.0 0.0.0.255
traffic classifier huawei-control2
if-match acl 3001
traffic behavior huawei-control2
redirect ip-nexthop 12.1.1.2
traffic policy huawei-control2
classifier huawei-control2 behavior huawei-control2
quit
int g2/0/1
traffic-Policy huawei-control2 inbound
[RTB] system-view
sysname RTB
ospf 1 r 2.2.2.2
area 0
int g0/0/0
ip add 12.1.1.2 24
ospf e 1 a 0
int g0/0/1
ip add 12.1.2.2 24
ospf e 1 a 0
quit
[RTC] system-view
sysname RTC
ospf 1 r 3.3.3.3
area 0
int g0/0/1
ip add 12.1.2.3 24
ospf e 1 a 0
int g0/0/0
ip add 12.1.4.3 24
ospf e 1 a 0
int g0/0/2
ip add 10.1.3.254 24
ospf e a 0
quit
[RTD] system-view
sysname RTD
ospf 1 r 4.4.4.4
area 0
int g0/0/1
ip add 12.1.3.4 24
ospf e 1 a 0
int g0/0/0
ip add 12.1.4.4 24
ospf e 1 a 0
quit
配置MQC后的路径:
市场部 → 公司总部
财务部 → 公司总部
这篇关于使用MQC配置策略路由实验的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!