Chinaunix首页 | 论坛 | 博客
  • 博客访问: 19006779
  • 博文数量: 7460
  • 博客积分: 10434
  • 博客等级: 上将
  • 技术积分: 78178
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-02 22:54
文章分类

全部博文(7460)

文章存档

2011年(1)

2009年(669)

2008年(6790)

分类: 系统运维

2008-05-21 10:04:37

拓扑:
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 2 55.255.255.0 192.168.2.1

交换机的情况:
Switch#sh version
Cisco Internetwork Operating System Software
IOS (tm) C3550 Software (C3550-I5Q3L2-M), Version 12.1(8)EA1c, RELEASE SOFTWARE
(fc1)
Copyright (c) 1986-2002 by cisco Systems, Inc.
Compiled Fri 15-Feb-02 10:50 by antonino
Image text-base: 0x00003000, data-base: 0x006675E0

ROM: Bootstrap program is C3550 boot loader

Switch uptime is 3 hours, 14 minutes
System returned to ROM by power-on
System image file is "flash:c3550-i5q3l2-mz.121-8.EA1c/c3550-i5q3l2-mz.121-8.EA1
c.bin"

cisco WS-C3550-24 (PowerPC) processor (revision D0) with 65526K/8192K bytes of m
emory.
Processor board ID CAT0628Z0EP
Last reset from warm-reset
Bridging software.
Running Layer2/3 Switching Image

Ethernet-controller 1 has 12 Fast Ethernet/IEEE 802.3 interfaces

Ethernet-controller 2 has 12 Fast Ethernet/IEEE 802.3 interfaces

Ethernet-controller 3 has 1 Gigabit Ethernet/IEEE 802.3 interface

Ethernet-controller 4 has 1 Gigabit Ethernet/IEEE 802.3 interface

24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)

The password-recovery mechanism is enabled.
32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:0A:41:EC:E3:80
Motherboard assembly number: 73-5700-08
Power supply part number: 34-0966-02
Motherboard serial number: CAT06270FPL
Power supply serial number: DAB06220AGF
Model revision number: D0
Motherboard revision number: C0
Model number: WS-C3550-24-EMI
System serial number: CAT0628Z0EP
Configuration register is 0x10F

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

阅读(383) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~