使用MQC配置策略路由实验

MQC配置策略路由实验

实验拓扑:
使用MQC配置策略路由实验
实验要求:
1、市场部访问公司总部的路线是RTA-RTB-RTC
2、财务部访问公司总部的路线是RTA-RTD-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.1.2
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.3.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

上一篇:计算机网络基础每日笔记五(vlan)


下一篇:华为交换机恢复配置文件