1、配置ACL
acl number 3000
rule 10 permit ip source 192.168.x.x 0
2、匹配感興趣流
traffic classifier tc-100 operator and
if-match acl 3000
3、配置策略動作(限速爲15M)
traffic behavior tb-1
car cir 15360 pir 15360 cbs 2048000 pbs 2048000 green pass yellow pass red discard
4、配置策略
traffic policy tp-1
classifier tc-100 behavior tb-1
5、接口調用(此處爲調用在出方向)
interface GigabitEthernet0/0/1
traffic-policy tp-1 outbound