拓扑:
pc1-------default vlan 1--3550-24-emi--f0/24-------pc2
配置:
pc1:192.168.1.7 255.255.255.0 192.168.1.222
vlan 1:192.168.1.222 255.255.255.0
f0/24:192.168.2.1 255.255.255.0
pc2:192.168.2.20 255.255.255.0 192.168.2.1
机的情况:
IOS版本:12.1.8EA1c EMI版
Switch#sh run
Building configuration...
Current configuration : 1835 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Switch
!
!
ip subnet-zero
ip routing
mls qos
!
class-map match-all 64k
match access-group 110
!
!
policy-map yikai
class 64k
police 512000 32000 exceed-action drop
!
!
spanning-tree extend system-id
!
!
!
interface FastEthernet0/1
switchport mode access
no ip address
service-policy input yikai
!
interface FastEthernet0/2
no ip address
!
interface FastEthernet0/3
no ip address
!
interface FastEthernet0/4
no ip address
!
interface FastEthernet0/5
no ip address
!
interface FastEthernet0/6
no ip address
!
interface FastEthernet0/7
no ip address
!
interface FastEthernet0/8
no ip address
!
interface FastEthernet0/9
no ip address
!
interface FastEthernet0/10
no ip address
!
interface FastEthernet0/11
no ip address
!
interface FastEthernet0/12
no ip address
!
interface FastEthernet0/13
no ip address
!
interface FastEthernet0/14
no ip address
!
interface FastEthernet0/15
no ip address
!
interface FastEthernet0/16
no ip address
!
interface FastEthernet0/17
no ip address
!
interface FastEthernet0/18
no ip address
!
interface FastEthernet0/19
no ip address
!
interface FastEthernet0/20
no ip address
!
interface FastEthernet0/21
no ip address
!
interface FastEthernet0/22
no ip address
!
interface FastEthernet0/23
no ip address
!
interface FastEthernet0/24
no switchport
ip address 192.168.2.1 255.255.255.0
service-policy input yikai
!
interface GigabitEthernet0/1
no ip address
!
interface GigabitEthernet0/2
no ip address
!
interface Vlan1
ip address 192.168.1.222 255.255.255.0
!
ip classless
ip http server
!
access-list 110 permit ip host 192.168.2.20 any
access-list 110 permit ip any any
!
line con 0
line vty 0 4
login
line vty 5 15
login
!
end
此时在客户机pc2从pc1上拷贝文件,大约40M
时间大约:12分钟
Switch#sh mls qos interface f 0/1 sta
FastEthernet0/1
Ingress
dscp: incoming no_change classified policed dropped (in bytes)
Others: 385021895 385021895 0 0 12197478
Egress
dscp: incoming no_change classified policed dropped (in bytes)
Others: 9553871 n/a n/a 0 0
Switch#sh mls qos interface f 0/1 sta
FastEthernet0/1
Ingress
dscp: incoming no_change classified policed dropped (in bytes)
Others: 385369437 385369437 0 0 12259540
Egress
dscp: incoming no_change classified policed dropped (in bytes)
Others: 9562103 n/a n/a 0 0
从中发现有大量的dropped,且增加很快.
如果在interface f 0/1
no service-map input yikai
则没有应用policy-map yikai ,此时同样的文件传速速度很快,
大约只需要3分钟.
可见:
{在3550emi上面可以实现端口限速,并且不局限在1M}
作者litouch
【责编:admin】
--------------------next---------------------