2950交换机简明配置维护手册
中望商业机器公司2002-12-14目录 TOC \o "1-3" \h \z 说明... PAGEREF_Toc27764419 \h 3 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400310039000000 产品特性... PAGEREF_Toc27764420 \h 3 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400320030000000 配置端口... PAGEREF_Toc27764421 \h 4 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400320031000000 配置一组端口... PAGEREF_Toc27764422 \h 4 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400320032000000 配置二层端口... PAGEREF_Toc27764423 \h 6 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400320033000000 配置端口速率及双工模式... PAGEREF_Toc27764424 \h 6 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400320034000000 端口描述... PAGEREF_Toc27764425 \h 7 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400320035000000 监控及维护端口... PAGEREF_Toc27764426 \h 8 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400320036000000 监控端口和控制器的状态... PAGEREF_Toc27764427 \h 8 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400320037000000 刷新、重置端口及计数器... PAGEREF_Toc27764428 \h 10 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400320038000000 关闭和打开端口... PAGEREF_Toc27764429 \h 10 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400320039000000 配置VLAN.. PAGEREF_Toc27764430 \h 11 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400330030000000 理解VLAN.. PAGEREF_Toc27764431 \h 11 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400330031000000 可支持的VLAN.. PAGEREF_Toc27764432 \h 12 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400330032000000 配置正常范围的VLAN.. PAGEREF_Toc27764433 \h 12 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400330033000000 生成、修改以太网VLAN.. PAGEREF_Toc27764434 \h 13 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400330034000000 删除VLAN.. PAGEREF_Toc27764435 \h 14 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400330035000000 将端口分配给一个VLAN.. PAGEREF_Toc27764436 \h 15 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400330036000000 配置VLAN Trunks. PAGEREF_Toc27764437 \h 16 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400330037000000 使用STP实现负载均衡... PAGEREF_Toc27764438 \h 19 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400330038000000 配置Cluster PAGEREF_Toc27764439 \h 23 08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000D0000005F0054006F006300320037003700360034003400330039000000 说明本手册只包括日常使用的有关命令及特性,其它未涉及的命令及特性请参考英文的详细配置手册。 产品特性2950是只支持二层的交换机
支持VLAN到250 个VLAN支持VLAN ID从1到4094( IEEE 802.1Q 标准)支持ISL及IEEE 802.1Q封装安全 支持IOS标准的密码保护支持标准及扩展的访问列表来定义安全策略支持基于VLAN的访问列表监视 交换机LED指示端口状态SPAN及远端SPAN (RSPAN) 可以监视任何端口或VLAN的流量内置支持四组的RMON监控功能(历史、统计、告警及事件) 配置端口配置一组端口
命令 目的 Step 1 configure terminal 进入配置状态 Step 2 interface range {port-range} 进入组配置状态 Step 3 可以使用平时的端口配置命令进行配置 Step 4 end 退回 Step 5 show interfaces [interface-id] 验证配置 Step 6 copy running-config startup-config 保存 当使用interface range命令时有如下的规则: 有效的组范围:vlan从1 到4094 fastethernet 槽位/{first port} - {last port}, 槽位为0gigabitethernet槽位/{first port} - {last port},槽位为0port-channel port-channel-number - port-channel-number, port-channel号从1到64端口号之间需要加入空格,如:interface range fastethernet 0/1 – 5 是有效的,而interface range fastethernet 0/1-5 是无效的.interface range 命令只能配置已经存在的interface vlan所有在同一组的端口必须是相同类别的。见以下例子: Switch# configure terminal Switch(config)# interface range fastethernet0/1 - 5 Switch(config-if-range)# no shutdown Switch(config-if-range)# *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet0/2, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet0/3, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet0/4, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet0/5, changed state to up *Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/05, changed state to up *Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3,changed state to up *Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4,changed state to up 以下的例子显示使用句号来配置不同类型端口的组: Switch# configure terminal Switch(config)# interface range fastethernet0/1 - 3,gigabitethernet0/1 - 2 Switch(config-if-range)# no shutdown Switch(config-if-range)# *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet0/2, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet0/3, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface GigabitEthernet0/1, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface GigabitEthernet0/2, changed state to up *Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to up *Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/ 2, changed state to up *Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/ 3, changed state to up |