需求:在交换机层面对接入用户的网络流量限速
1.交换机信息
![](https://img-blog.csdnimg.cn/img_convert/ee01161257564a29997bd3e1a73e034f.png)
2.主机限速前
2.1本机IP和MAC信息
依次打开控制面板\所有控制面板项\网络连接
![](https://img-blog.csdnimg.cn/img_convert/3ed08abd83d140beb2dc4c0d631aa544.png)
2.2限速前测速
使用浏览器打开https://10000.gd.cn/测速
![](https://img-blog.csdnimg.cn/img_convert/2b24d67924bd4e55ab08adf9b05ade9c.png)
3.主机限速后
3.1查看主机所在交换机接口
点击“网络”-“MAC地址”,输入主机对应MAC地址,查看到对应交换机接口为GigabitEthernet1/0/6
![](https://img-blog.csdnimg.cn/img_convert/caf324517aba4c74af32a71e313dfcec.png)
3.2设置端口限速
点击“Qos”-"端口限速"-"设置",选中需要设置的交换机接口,填写CIR值和流量限速方向,
20480约等20Mbps,根据需要选择限速流量方向,Both包括Inbound和Outbound
![](https://img-blog.csdnimg.cn/img_convert/a0703bb3c8ed485d95b8680a99da496c.png)
点击"应用",提示成功
![](https://img-blog.csdnimg.cn/img_convert/d439551f2914464fa252924269d6c6b2.png)
3.3查看显示
![](https://img-blog.csdnimg.cn/img_convert/b1b38de070534a37866045f8f3b6e113.png)
3.4限速后测速
![](https://img-blog.csdnimg.cn/img_convert/446b0ea5842042058a6042b3e0f13a31.png)
4.取消限速
点击“Qos”-"端口限速"-"设置",选中需要设置的交换机接口,限速状态改为"Disable",选择取消流量方向Both包括Inbound和Outbound
![](https://img-blog.csdnimg.cn/img_convert/c9ea531845814ef48c2986853648bd13.png)