华为 MSR 路由器 根据包大小策略路由的配置

339阅读 0评论2012-02-17 wfeng
分类:系统运维

一、组网需求

MSR1上应用 本地IP策略路由lab1。这个策略将将大小为64~100字节的报文设置150.1.1.2作为下一转发IP地址;而将 大小为101~1000字节的报文设置151.1.1.2作为下一转发IP地址。所有其 它长度的报文都按基于目的地址的路由方法选路。

设 备清单:MSR系列2台

二、组网图:

三、步骤:

适用设备和版本:MSR系列Version 5.20, Beta 1105后所有版本。

MSR1 配置

//应用本地策略路由1

#

 ip local policy-based-route 1

#

interface GigabitEthernet0/0

 port link-mode route

 ip address 150.1.1.2 255.255.255.0

#

interface GigabitEthernet0/1

 port link-mode route

 ip address 151.1.1.2 255.255.255.0

#

//定义策略路由1,节点3和节点10的匹配规则

policy-based-route 1 permit node 3

 if-match packet-length 101 1000

 apply ip-address next-hop 151.1.1.1

policy-based-route 1 permit node 10

 if-match packet-length 64 100

 apply ip-address next-hop 150.1.1.1  

#

MSR2 配置

#

interface GigabitEthernet0/0

 port link-mode route

 combo enable copper

 ip address 150.1.1.1 255.255.255.0

#

interface GigabitEthernet0/1

 port link-mode route

 combo enable copper

 ip address 151.1.1.1 255.255.255.0

#

四、配置关键点

1) 策略路由可以分为接口策略路由和本地策略路由。在本实验中,采用的是本地策略路由,是指经过本路由器的IP报文都要进行策 略路由匹配。

2) If-matchApply一定要配合使用



CCIE Security 2009 IOS防火墙合集


上一篇:华为 跨交换机相同VLAN间的通信
下一篇:华为 AR 路由器GRE配置通过Tunnel的路由说明