"大象装冰箱,一共分五步"
1,
acl number 3000
rule 5 permit ip destination 192.168.1.200 0 #加acl 注意方向,上行与下行要搞清楚
2,
traffic classifier a
if-match acl 3000 #匹配acl
3,
traffic behavior e
car cir 2000 pir 2000 cbs 4000 pbs 4000 green pass yellow pass red discard #增加限速队列,有点像linux TC
4,
traffic policy policy1
classifier a behavior e #类似把ip打好标记,扔至限速队列里
5,
interface Ethernet0/0/1
traffic-policy policy1 inbound #方向一定要搞清楚,如果你ip限下行就把命令放到上行处的接口
搞定,最后可用命令来查看状态.
dis traffic policy interface
Interface: Ethernet0/0/1
Direction: Inbound
Policy: policy1
Classifier: a
Rule(s) : if-match acl 3000
Behavior: e
Committed Access Rate:
CIR 2000 (Kbps), CBS 4000 (Byte)
PIR 2000 (Kbps), PBS 4000 (Byte)
Aggregation Car: no
Green Action : pass
Yellow Action : pass
Red Action : discard
Passed Packets :49371399(Packets)
Dropped Packets :6505405(Packets)
阅读(798) | 评论(0) | 转发(0) |