mls qos aggregate-policer test 50000000 100000 conform-action transmit exceed-action drop
mls qos
class-map match-any test_limite
match access-group name test_addr
!
!
policy-map rate-limit-uplink
class test_limite
police aggregate test
ip access-list extended test_addr (因为上下行都引用策略一样因此不单独做acl)
permit ip any x.x.x.x 0.0.0.3 (分配给用户的互联网地址段A)
permit ip x.x.x.x 0.0.0.3 any
permit ip any x.x.x.x 0.0.0.3 (分配给用户的互联网地址段B)
permit ip x.x.x.x 0.0.0.3 any
inter f0/1
ip addre x.x.x.x 255.255.255.252
service-policy input test_uplink限制上传
inter f0/2
ip addre x.x.x.x 255.255.255.252
service-policy input test_uplink限制上传
inter g0/47
service-policy input rate-limit-uplink限制下载