三层交换机命令如下:
access-list 100 permit ip any 192.168.1.0 0.0.0.255
access-list 101 permit ip 192.168.1.0 0.0.0.255 any
access-list 101 permit ip 192.168.1.0 0.0.0.255 any
!
class-map match-all up
match access-group 101
class-map match-all down
match access-group 100
!
policy-map wan_up
class up
police 2500000 bps 250000 byte conform-action transmit exceed-action drop (上传限制在2.5M)
trust dscp
policy-map wan_down
class down
police 2500000 bps 250000 byte conform-action transmit exceed-action drop (下载限制在2.5M)
trust dscp
match access-group 101
class-map match-all down
match access-group 100
!
policy-map wan_up
class up
police 2500000 bps 250000 byte conform-action transmit exceed-action drop (上传限制在2.5M)
trust dscp
policy-map wan_down
class down
police 2500000 bps 250000 byte conform-action transmit exceed-action drop (下载限制在2.5M)
trust dscp
interface GigabitEthernet1/1
description link to R_2801
switchport access vlan 100
switchport mode access
service-policy input wan_down
!
interface GigabitEthernet1/2
description link to S_2928
switchport trunk encapsulation dot1q
switchport mode trunk
service-policy input wan_up
description link to R_2801
switchport access vlan 100
switchport mode access
service-policy input wan_down
!
interface GigabitEthernet1/2
description link to S_2928
switchport trunk encapsulation dot1q
switchport mode trunk
service-policy input wan_up
!
测试限速成功,但过了一段时间后反应一部分电脑PING外网掉包开不了网页,PING内网正常。我怀疑是因为总带宽为10M,限速为2.5M,带宽分配不足的原因。也不排除配置问题,请高手帮我看一下配置是否有误。







发表评论 评论 (7 个评论)