读文网>电脑>网络知识>路由器>路由器设置>cisco思科

cisco交换机限速

思科路由器是世界闻名的通讯设备之一了,有不少用户不知道cisco交换机怎么限速?读文网小编为大家分享了具体操作方法,供大家参考!

cisco交换机限速参考以下命令:

登录交换机

telnet 192.168.145.x

4.2

启用全局QOS

mxxxxx3750(configmlsqos

mxxxxx3750(configipaccess-list extended acl145-to-134

mxxxxx3750(config-ext-nacl)permitip host 192.168.145.12 host 192.168.134.12

mxxxxx3750(configclass-mapmap145-to-134

mxxxxx3750(config-cmap)matchaccess-group name acl145-to-134

mxxxxx3750(configpolicy-mapmap145-to-134

mxxxxx3750(config-pmap)classmap145-to-134

mxxxxx3750(config-pmap-c)trustdscp

mxxxxx3750(config-pmap-c)police10000000 1000000 exceed-action drop

interface GigabitEthernet1/0/25

mxxxx3750(config-ifservice-policyinput map145-to-134

25口是光纤口,是2960等二层交换机连3750的trunk口,所以要在此端口作控制

4.3

应用qos后,情况见下图,从图上的参数看,传输速度为1.13MB每秒,基本上等于QOS作的10MB每秒的控制。

4.4

那,应用QOS后,是不是对192.168.145.12这台电脑访问其它网段产生影响呢,我们再从145.12向其它网段的服务器拷同样的视频,看看效果。从下图分析,平均速度为2.68MB每秒,以数据说话,没有影响。

4.5

那,作了QOS后,从相反方向拷数据,有没有影响呢,我们反过来拷一个视频,从134.12向145.12,拷视频,从下图看,平均速度为3.27MB每秒,没有影响。大家想想,这是什么原因造成的,是因为数据有入,出两个方向,我刚才只作了入方向的QOS,没有作出方向的QOS,所以134段往145段的数据不受本次QOS影响,如果要达到双向控制,可以再定义一个ACL,在25接口的出方向作控制,具体操作留给大家作实验。

提醒:qos不能作在vlan接口里

mxxxxx3750(configintvlan 145

mxxxxx3750(config-ifservice-policyinput map145-to-134

%QoS: policy-map with police action at parent level not supported on Vlan145 interface.

%QoS: policy-map with police action at parent level not supported on Vlan145 interface.

%QoS: policy-map with police action at parent level not supported on Vlan145 interface.

%QoS: policy-map with police action at parent level not supported on Vlan145 interface.

读文网小编分享了cisco交换机怎么限速的方法,希望大家喜欢。

相关热搜

相关文章

【cisco思科】热点

【cisco思科】最新