H3C重定向至下一跳QoS典型配置
1.5.1 组网图图1-5 配置重定向至下一跳组网图
http://www.91ccie.com/d/file/2014-06-22/e50d8bdc6954a4df80f0a2001d6c7e88.jpg
1.5.2 应用要求
某网络环境描述如下:
l 交换机switch A通过两条链路与Switch B连接,同时Switch A和Switch B各自连接其他的设备;
l Switch A上的端口GigabitEthernet 1/0/2和Switch B上的端口GigabitEthernet 1/0/2属于VLAN 200;
l Switch A上的端口GigabitEthernet 1/0/3和Switch B上的端口GigabitEthernet 1/0/3属于VLAN 201;
l Switch A上VLAN 200虚接口的IP地址为200.1.1.1,VLAN 201虚接口的IP地址为201.1.1.1;Switch B上VLAN 200虚接口的IP地址为200.1.1.2,VLAN 201虚接口的IP地址为201.1.1.2。
配置重定向至下一跳,实现策略路由功能,满足如下需求:
l 将Switch A的端口GigabitEthernet 1/0/1接收到的源IP地址为2.1.1.1的报文转发至200.1.1.2;
l 将Switch A的端口GigabitEthernet 1/0/1接收到的源IP地址为2.1.1.2的报文转发至201.1.1.2;
l 对于Switch A的端口GigabitEthernet 1/0/1接收到的其它报文,按照查找路由表的方式进行转发。
1.5.3 适用产品、版本
表1-13 配置适用的产品与软硬件版本关系
产品
软件版本
硬件版本
S3610系列以太网交换机
Release 5301,Release 5303软件版本
全系列硬件版本
S5510系列以太网交换机
Release 5301,Release 5303软件版本
全系列硬件版本
S5500-SI系列以太网交换机
Release 1207软件版本
全系列硬件版本(除S5500-20TP-SI)
Release 1301软件版本
S5500-20TP-SI
S5500-EI系列以太网交换机
Release 2102软件版本
全系列硬件版本
S7500E系列以太网交换机
Release 6100,Release 6300软件版本
全系列硬件版本
1.5.4 配置过程和解释
配置Switch A
# 定义基本ACL 2000,对源IP地址为2.1.1.1的报文进行分类。
<Switch> system-view
acl number 2000
rule permit source 2.1.1.1 0
quit
# 定义基本ACL 2001,对源IP地址为2.1.1.2的报文进行分类。
acl number 2001
rule permit source 2.1.1.2 0
quit
# 定义类classifier_1,匹配基本ACL 2000。
traffic classifier classifier_1
if-match acl 2000
quit
# 定义流行为behavior_1,动作为重定向至200.1.1.2。
traffic behavior behavior_1
redirect next-hop 200.1.1.2
quit
# 定义类classifier_2,匹配基本ACL 2001。
traffic classifier classifier_2
if-match acl 2001
quit
# 定义流行为behavior_2,动作为重定向至201.1.1.2。
traffic behavior behavior_2
redirect next-hop 201.1.1.2
quit
# 定义策略policy,为类classifier_1指定流行为behavior_1,为类classifier_2指定流行为behavior_2。
页:
[1]