我从ISP购买Cisco 2960X-48端口交换机和一个专用Internet . 我连接Internet端口切换所以我的所有交换机端口都有Internet . 我想为我工作场所中的每个用户管理和定义登录,以限制每个用户的带宽和流量 without adding any other devices .
有没有有效的方法在10个用户之间管理我的Internet上的Internet并管理它们?
在用于2960X交换机的Cisco IOS中,您需要设置 policy-map 并将其分配给每个用户的端口 .
policy-map
此示例显示如何创建策略映射并将其附加到入口端口 . 在配置中,IP标准ACL允许来自网络10.1.0.0的流量 . 对于匹配此分类的流量,传入数据包中的DSCP值是可信的 . 如果匹配的流量超过48000 b / s的平均流量速率和8000字节的正常突发大小,则将其DSCP标记为关闭(基于policed-DSCP映射)并发送:
Switch(config)# access-list 1 permit 10.1.0.0 0.0.255.255 Switch(config)# class-map ipclass1 Switch(config-cmap)# match access-group 1 Switch(config-cmap)# exit Switch(config)# policy-map flow1t Switch(config-pmap)# class ipclass1 Switch(config-pmap-c)# trust dscp Switch(config-pmap-c)# police 1000000 8000 exceed-action policed-dscp-transmit Switch(config-pmap-c)# exit Switch(config-pmap)# exit Switch(config)# interface gigabitethernet2/0/1 Switch(config-if)# service-policy input flow1t
Documentation:
http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960x/software/15-0_2_EX/qos/configuration_guide/b_qos_152ex_2960-x_cg/b_qos_152ex_2960-x_cg_chapter_010.html#ID2469
Examples:
http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960x/software/15-0_2_EX/qos/configuration_guide/b_qos_152ex_2960-x_cg/b_qos_152ex_2960-x_cg_chapter_010.html#ID5438
1 回答
在用于2960X交换机的Cisco IOS中,您需要设置
policy-map
并将其分配给每个用户的端口 .Documentation:
http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960x/software/15-0_2_EX/qos/configuration_guide/b_qos_152ex_2960-x_cg/b_qos_152ex_2960-x_cg_chapter_010.html#ID2469
Examples:
http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960x/software/15-0_2_EX/qos/configuration_guide/b_qos_152ex_2960-x_cg/b_qos_152ex_2960-x_cg_chapter_010.html#ID5438