Cisco交换机如何对上行和下行网速进行分别限制呢?
通过以下设定,即可以实现: 第一步:首先创建ACL 命令:ip access-list extended UpMax(上行ACL) deny ip 192.168.0.0 0.0.255.255 192.168.0.0 0.0.255.255(这里排除内网之间的限制) permit ip 192.168.0.0 0.0.255.255 any(这里以内网IP段做为测试)
ip access-list extended DownMax(下行ACL) deny ip 192.168.0.0 0.0.255.255 192.168.0.0 0.0.255.255(这里排除内网之间的限制) permit ip any 192.168.0.0 0.0.255.255(这里以内网IP段做为测试)
第二步:分别创建上行和下行的Qos Classes,并绑定对应的ACL Class: UpClass Match Type: ACL Match Values: Extended IP access list UpMax
Class: DownClass Match Type: ACL Match Values: Extended IP access list DownMax
第三步:分别创建上行和下行限制的Qos policer(就是要限制的速度) UpMax20M Rate: 20480 Kbps Maximum Burst: 300 KB Exceed Action: Drop
DownMax20M Rate: 20480 Kbps Maximum Burst: 300 KB Exceed Action: Drop
第四步:分别创建上行和下行的Qos policy Policy: UpMax20M Class: UpClass Class Definition Description: Match Type: ACL Match Values: Extended IP access list UpMax Trust Type: Not Trusted Policer: UpMax20M Rate: 20480 Kbps Maximum Burst: 300 KB Exceed Action: Drop
Policy: DownMax20M Class: DownClass Class Definition Description: Match Type: ACL Match Values: Extended IP access list DownMax Trust Type: Not Trusted Policer: DownMax20M Rate: 20480 Kbps Maximum Burst: 300 KB Exceed Action: Drop
Cisco管理软件中,点击创建Create,点击Add Class,选择对应的Class,点击policer,policers里选择创建好的Qos policer。上行和下行分别创建。
第五步:在交换机端口上附加规则,在F口附加上行限制(UP),在G口附加下行限制(Down)
|