CISCO6509交换机做QOS限速

 1、启用QOS:C6509N01(config)#mls qos

 2、写访问列表,匹配要限制的IP(这里你要分清是限制上传还是下载,我是限制的下载):

C6509N01(config)#ip access-list extended name(访问控制列表名)
C6509N01(config-ext-nacl)#permit ip host 192.168.0.3 any
C6509N01(config-ext-nacl)#permit ip host 192.168.0.2 any
C6509N01(config-ext-nacl)#permit ip host 192.168.0.1 any
C6509N01(config-ext-nacl)#permit ip host 192.168.0.4 any
C6509N01(config-ext-nacl)#permit ip host 192.168.0.5 any

 3、配置class-map

 C6509N01(config)#class-map name

 C6509N01 (config-cmap)#match access-group name(访问列表的名字)

4、配置policy-map

C6509N01(config)#policy-map name

C6509N01(config-pmap)#class name (匹配class map)

C6509N01(config-pmap)#trust dscp (触发QOS,我不是很清楚,暂时这么说吧)

C6509N01(config-pmap)#police 25000000 25000000 25000000 conform-action transmit exceed-action drop(限速)

 5、在接口上应用:
 C6509N01(config)#interface VlanNumbe
C6509N01(config-if)#service-policy input name (策略名)
                   

 

 

你可能感兴趣的:(Cisco,qos,6509)