FAQ-S7700、S9700共享CAR如何配置

发布时间:  2015-02-12 浏览次数:  415 下载次数:  0
问题描述
S7700、S9700共享CAR如何配置?
解决方案
共享CAR使用分为一级共享和二级共享两种。
  • 一级共享CAR:对接口GE1/0/1出方向目的MAC地址为1-1-1和2-2-2的两条数据流共同限速100Kbps,可以通过在traffic behavior视图下配置car cir 100实现,配置方法如下:
#
acl number 4999
rule 5 permit destination-mac 0001-0001-0001
rule 10 permit destination-mac 0002-0002-0002
#
traffic classifier 2 operator or precedence 40
if-match acl 4999
#
traffic behavior 2
car cir 100 pir 100 cbs 18800 pbs 31300 mode color-blind green pass yellow pass red discard
#
traffic policy p1
classifier 2 behavior 2
#
interface gigabitethernet1/0/1
traffic-policy p1 outbound
#
  • 二级共享CAR:对接口GE1/0/1出方向目的MAC为1-1-1和2-2-2的两条数据分别限速100Kbps、pir 200Kbps,对两条数据流合起来再限速300Kbps,配置方法如下:
说明:
       CAR模板的限速值需要大于两条流量cir之和,小于pir之和,否则共享CAR无意义。
#
qos car car1 cir 300 cbs 56400
#
traffic classifier 1 operator or precedence 45
if-match destination-mac 0001-0001-0001
traffic classifier 2 operator or precedence 40
if-match destination-mac 0002-0002-0002
#
traffic behavior 1
permit
car cir 100 pir 200 cbs 12500 pbs 25000 mode color-blind green pass yellow pass red discard
car car1 share
traffic behavior 2
permit
car cir 100 pir 200 cbs 12500 pbs 25000 mode color-blind green pass yellow pass red discard
car car1 share
#
traffic policy 1 match-order config
classifier 2 behavior 2
classifier 1 behavior 1

END