3550交换机(EMI)简明配置维护手册中国思科培训网目录说明..................................................................................................................................................3产品特性...........................................................................................................................................3配置端口...........................................................................................................................................4配置一组端口...........................................................................................................................4配置二层端口...........................................................................................................................6配置端口速率及双工模式...............................................................................................6端口描述...........................................................................................................................7配置三层口...............................................................................................................................8监控及维护端口.....................................................................................................................10监控端口和控制器的状态.............................................................................................10刷新、重置端口及计数器.............................................................................................12关闭和打开端口.............................................................................................................13配置VLAN....................................................................................................................................14理解VLAN............................................................................................................................14可支持的VLAN.....................................................................................................................15配置正常范围的VLAN.........................................................................................................15生成、修改以太网VLAN.............................................................................................15删除VLAN.....................................................................................................................17将端口分配给一个VLAN.............................................................................................18配置VLANTrunks................................................................................................................19使用STP实现负载均衡................................................................................................22说明本手册只包括日常使用的有关命令及特性,其它未涉及的命令及特性请参考英文的详细配置手册。产品特性3550EMI是支持二层、三层功能(EMI)的交换机支持VLAN到1005个VLAN支持VLANID从1到4094(IEEE802.1Q标准)支持ISL及IEEE802.1Q封装安全支持IOS标准的密码保护静态MAC地址映射标准及扩展的访问列表支持,对于路由端口支持入出双向的访问列表,对于二层端口支持入的访问列表支持基于VLAN的访问列表3层支持(需要多层交换的IOS)HSRPIP路由协议oRIPversions1and2oOSPFoIGRP及EIGRPoBGPVersion4监视交换机LED指示端口状态SPAN及远端SPAN(RSPAN)可以监视任何端口或VLAN的流量内置支持四组的RMON监控功能(历史、统计、告警及事件)Syslog功能其它功能:支持以下的GBIC模块:1000BASE-TGBIC:铜线最长100m1000BASE-SXGBIC:光纤最长1804feet(550m)1000BASE-LX/LHGBIC:光纤最长32,808feet(6milesor10km)1000BASE-ZXGBIC:光纤最长328,084feet(62milesor100km)配置端口配置一组端口命令目的Step1configureterminal进入配置状态Step2interfacerange{port-range}进入组配置状态Step3可以使用平时的端口配置命令进行配置Step4end退回Step5showinterfaces[interface-id]验证配置Step6copyrunning-configstartup-config保存当使用interfacerange命令时有如下的规则:有效的组范围:ovlan从1到4094ofastethernet槽位/{firstport}-{lastport},槽位为0ogigabitethernet槽位/{firstport}-{lastport},槽位为0oport-channelport-channel-number-port-channel-number,port-channel号从1到64端口号之间需要加入空格,如:interfacerangefastethernet0/1–5是有效的,而interfacerangefastethernet0/1-5是无效的.interfacerange命令只能配置已经存在的interfacevlan所有在同一组的端口必须是相同类别的。见以下例子:Switch#configureterminalSwitch(config)#interfacerangefastethernet0/1-5Switch(config-if-range)#noshutdownSwitch(config-if-range)#*Oct608:24:35:%LINK-3-UPDOWN:InterfaceFastEthernet0/1,changedstatetoup*Oct608:24:35:%LINK-3-UPDOWN:InterfaceFastEthernet0/2,changedstatetoup*Oct608:24:35:%LINK-3-UPDOWN:InterfaceFastEthernet0/3,changedstatetoup*Oct608:24:35:%LINK-3-UPDOWN:InterfaceFastEthernet0/4,changedstatetoup*Oct608:24:35:%LINK-3-UPDOWN:InterfaceFastEthernet0/5,changedstatetoup*Oct608:24:36:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/05,changedstatetoup*Oct608:24:36:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/3,changedstatetoup*Oct608:24:36:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/4,changedstatetoup以下的例子显示使用句号来配置不同类型端口的组:Switch#configureterminalSwitch(config)#interfacerangefastethernet0/1-3,gigabitethernet0/1-2Switch(config-if-range)#noshutdownSwitch(config-if-range)#*Oct608:29:28:%LINK-3-UPDOWN:InterfaceFastEthernet0/1,changedstatetoup*Oct608:29:28:%LINK-3-UPDOWN:InterfaceFastEthernet0/2,changedstatetoup*Oct608:29:28:%LINK-3-UPDOWN:InterfaceFastEthernet0/3,changedstatetoup*Oct608:29:28:%LINK-3-UPDOWN:InterfaceGigabitEthernet0/1,changedstatetoup*Oct608:29:28:%LINK-3-UPDOWN:InterfaceGigabitEtherne