天下网吧 >> 网吧方案 >> 方案实例 >> 正文

shape peak、shape average和police

以下是相关配置:
    环境:Dynamips、FlashFXP、IOS 12.4T
!
ftp-server enable
ftp-server topdir disk0:
!
........
!
class-map match-all shape
 match access-group 100
!
!
policy-map shape
 class shape
  police cir 80000 bc 15000 be 30000
    conform-action transmit 
    exceed-action drop 
!
.....
access-list 100 permit tcp any host 192.168.1.200
access-list 100 deny   tcp any any
 
R1#sh run int f0/0
Building configuration...
Current configuration : 166 bytes
!
interface FastEthernet0/0
 ip address 192.168.1.221 255.255.255.0
 duplex full
 rmon native
 rmon collection stats 1 owner config
 service-policy output shape
end
R1#

 
R1#sh policy-map int f0/0
 FastEthernet0/0
  Service-policy output: shape
    Class-map: shape (match-all)
      7593 packets, 10691055 bytes
      5 minute offered rate 36000 bps, drop rate 3000 bps
      Match: access-group 100
      police:
          cir 80000 bps, bc 15000 bytes
        conformed 2683 packets, 3636183 bytes; actions:
          transmit 
        exceeded 232 packets, 349392 bytes; actions:
          drop 
        conformed 34000 bps, exceed 3000 bps
    Class-map: class-default (match-any)
      3388 packets, 4241610 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: any 
      
      
R1#
 

[1] [2] [3] 下一页

本文来源:天下网吧 作者:网吧方案

声明
声明:本站所发表的文章、评论及图片仅代表作者本人观点,与本站立场无关。若文章侵犯了您的相关权益,请及时与我们联系,我们会及时处理,感谢您对本站的支持!联系Email:support@txwb.com,系统开号,技术支持,服务联系QQ:1175525021本站所有有注明来源为天下网吧或天下网吧论坛的原创作品,各位转载时请注明来源链接!
天下网吧·网吧天下