conf t
access-list 21 permit 192.168.1.100 0.0.0.0
//允许单个IP使用1M带宽,需要修改IP
class-map match-all high-traffic
match access-group 21
exit
policy-map Qos
class high-traffic
bandwidth percent 25
exit
//一个IP使用4M中的1M带宽,相当于四分之一
class class-default
bandwidth percent 75
exit
exit
//剩余的四分之三带宽留给其他用户使用
int s0/0
//这个端口根据实际端口指定,比如实际端口是s0/0/0
max-reserved-bandwidth 100
service-policy output Qos
end
wr
转载于:https://blog.51cto.com/jasonliping/1137978
本文介绍了一种在路由器上配置QoS策略的方法,通过设定特定的class-map和policy-map来限制单个IP地址的带宽使用,确保网络资源合理分配。
1821

被折叠的 条评论
为什么被折叠?



