交换机端口限速
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
[Quidway-trafficpolicy-p1] quit
[Quidway] interface gigabitethernet 1/0/1
[Quidway-GigabitEthernet1/0/1] traffic-policy p1 inbound
[Quidway-acl-basic-2000] quit
[Quidway] traffic classifier c1
[Quidway-classifier-c1] if-match acl 2000
[Quidway-classifier-c1] quit
[Quidway] traffic behavior b1
[Quidway-trafficpolicy-p1] quit
[Quidway] interface gigabitethernet 1/0/1
[Quidway-GigabitEthernet1/0/1] traffic-policy p1 inbound
对某网段设备进行限速
限制192.168.1.0网段设备访问Internet的HTTP(端口号为80)流量不超过10Mbps。
<Quidway> system-view
[Quidway] acl 3000
[Quidway-acl-adv-3000] rule permit tcp destination-port eq 80 source 192.168.1.0 0.0.0.255
[Quidway-trafficpolicy-p1] quit
[Quidway] interface gigabitethernet 1/0/1
[Quidway-GigabitEthernet1/0/1] traffic-policy p1 inbound
根据IP地址和协议进行限速
[Quidway-GigabitEthernet1/0/1] qos car inbound qoscar1
配置出方向接口限速
在接口视图下执行命令qos lr cir cir-value [ cbs cbs-value ] [ outbound ],对通过该接口的流量进行限速。
[Quidway-behavior-b1] car cir 4096
[Quidway-behavior-b1] quit
[Quidway] traffic policy p1
[Quidway-trafficpolicy-p1] classifier c1 behavior b1
[Quidway-behavior-b1] car cir 51200
[Quidway-behavior-b1] quit
[Quidway] traffic policy p1
[Quidway-trafficpolicy-p1] classifier c1 behavior b1
[Quidway-acl-adv-3000] quit
[Quidway] traffic classifier c1
[Quidway-classifier-c1] if-match acl 3000
[Quidway-classifier-c1] quit
[Quidway] traffic behavior b1
对IP地址为192.168.1.0网段设备进行限速,带宽限制为50M。
<Quidway> system-view
[Quidway] acl 2000
[Quidway-acl-basic-2000] rule permit source 192.168.据IP地址进行限速
对IP地址为192.168.1.10的PC限速,带宽限制为4M。
<Quidway> system-view
[Quidway] acl 2000
[Quidway-acl-basic-2000] rule permit source 192.168.1.10 0.0.0.0
[Quidway-behavior-b1] car cir 10240
[Quidway-behavior-b1] quit
[Quidway] traffic policy p1
[Quidway-trafficpolicy-p1] classifier c1 behavior b1
[Quidway-acl-basic-2000] quit
[Quidway] traffic classifier c1
[Quidway-classifier-c1] if-match acl 2000
[Quidway-classifier-c1] quit
[Quidway] traffic behavior b1
配置入方向接口限速
配置名称为qoscar1的CAR模板指定限速带宽大小,并将该模板在接口GE1/0/1下应用。
<Quidway> system-view
[Quidway] qos car qoscar1 cir 10000 cbs 10240
[Quidway] interface gigabitethernet 1/0/1