2950交换机简明配置维护手册目录说明..................................................................................................................................................3产品特性...........................................................................................................................................3配置端口...........................................................................................................................................3配置一组端口...........................................................................................................................3配置二层端口...........................................................................................................................5配置端口速率及双工模式...............................................................................................6端口描述...........................................................................................................................7监控及维护端口.......................................................................................................................8监控端口和控制器的状态...............................................................................................8刷新、重置端口及计数器.............................................................................................10关闭和打开端口.............................................................................................................10配置VLAN....................................................................................................................................11理解VLAN............................................................................................................................11可支持的VLAN.....................................................................................................................12配置正常范围的VLAN.........................................................................................................12生成、修改以太网VLAN.............................................................................................13删除VLAN.....................................................................................................................14将端口分配给一个VLAN.............................................................................................15配置VLANTrunks................................................................................................................16使用STP实现负载均衡................................................................................................19配置Cluster....................................................................................................................................23第1章说明本手册只包括日常使用的有关命令及特性,其它未涉及的命令及特性请参考英文的详细配置手册。第2章产品特性2950是只支持二层的交换机支持VLAN到250个VLAN支持VLANID从1到4094(IEEE802.1Q标准)支持ISL及IEEE802.1Q封装安全支持IOS标准的密码保护支持标准及扩展的访问列表来定义安全策略支持基于VLAN的访问列表监视交换机LED指示端口状态SPAN及远端SPAN(RSPAN)可以监视任何端口或VLAN的流量内置支持四组的RMON监控功能(历史、统计、告警及事件)第3章配置端口3.1配置一组端口命令目的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:InterfaceGigabitEthernet0/2,changedstatetoup*Oct608:29:29:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceGigabitEthernet0/1,changedstatetoup*Oct608:29:29:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/2,changedstatetoup*Oct608:29:29:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/3,changedstatetoup