2950交换机配置:2950交换机简明配置维护手册


  目录
  介绍说明 3
  产品特性 3
  配置端口 4
  配置组端口 4
  配置 2层端口 6
  配置端口速率及双工模式 6
  端口描述 7
  监控及维护端口 8
  监控端口和控制器状态 8
  刷新、重置端口及计数器 10
  关闭和打开端口 10
  配置VLAN 11
  理解VLAN 11
  可支持VLAN 12
  配置正常范围VLAN 12
  生成、修改以太网VLAN 13
  删除VLAN 14
  将端口分配给个VLAN 15
  配置VLAN Trunks 16
  使用STP实现负载均衡 19
  配置Cluster 23
  
  
  介绍说明
  本手册只包括日常使用有关命令及特性其它未涉及命令及特性请参考英文详细配置手册
  产品特性
  2950是只支持 2层
  支持VLAN
  · 到250 个VLAN
  · 支持VLAN ID从1到4094( IEEE 802.1Q 标准)
  · 支持ISL及IEEE 802.1Q封装
  
  · 支持IOS标准密码保护
  · 支持标准及扩展访问列表来定义策略
  · 支持基于VLAN访问列表
  监视
  · 机LED指示端口状态
  · SPAN及远端SPAN (RSPAN) 可以监视任何端口或VLAN流量
  · 内置支持 4组RMON监控功能(历史、统计、告警及事件)
  
  
  
  
  配置端口
  配置组端口
  命令 目
  Step 1  configure terminal 进入配置状态
  Step 2  erface range {port-range} 进入组配置状态
  Step 3  可以使用平时端口配置命令进行配置
  Step 4  end 退回
  Step 5  show erfaces [erface-id] 验证配置
  Step 6  copy running-config startup-config 保存
  
  当使用erface range命令时有如下规则:
  · 有效组范围:
  o vlan从1 到4094
  o fastethernet 槽位/{first port} - {last port}, 槽位为0
  o gigabitethernet槽位/{first port} - {last port},槽位为0
  o port-channel port-channel-number - port-channel-number, port-channel号从1到64
  · 端口号的间需要加入空格如:erface range fastethernet 0/1 – 5 是有效erface range fastethernet 0/1-5 是无效.
  · erface range 命令只能配置已经存在erface vlan
  · 所有在同端口必须是相同类别
  见以下例子:
  Switch# configure terminal
  
  Switch(config)# erface range fastethernet0/1 - 5
  
  Switch(config--range)# no shutdown
  Switch(config--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)# erface range fastethernet0/1 - 3, gigabitethernet0/1 - 2
  
  Switch(config--range)# no shutdown
  Switch(config--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
  
  配置 2层端口
  2950所有端口缺省端口都是 2层口如果此端口已经配置成 3层端口则需要用switchport来使其成为 2层端口
  配置端口速率及双工模式
  可以配置快速以太口速率为10/100Mbps及千兆以太口速率为10/100/1000-Mbps; 但对于GBIC端口则不能配置速率及双工模式有时可以配置nonegotiate,当需要联接不支持自适应其它千兆端口时
  命令 目
  Step 1  configure terminal 进入配置状态.
  Step 2  erface erface-id 进入端口配置状态.
  Step 3  speed {10 | 100 | 1000 | auto | nonegotiate} 设置端口速率 注  1000 只工作在千兆口. GBIC模块只工作在1000 Mbps下. nonegotiate 只能在这些GBIC上用 1000BASE-SX, -LX, and -ZX GBIC.
  Step 4  duplex {auto | full | half} 设置全双工或半双工.
  Step 5  end 退出
  Step 6  show erfaces erface-id 显示有关配置情况
  Step 7  copy running-config startup-config 保存
  
  
  Switch# configure terminal
  
  Switch(config)# erface fastethernet0/3
  
  Switch(config-)# speed 10
  
  Switch(config-)# duplex half
  端口描述
  
  命令 目
  Step 1  configure terminal 进入配置模式
  Step 2  erface erface-id 进入要加入描述端口
  Step 3  description 加入描述 (最多240个).
  Step 4  end 退回.
  Step 5  show erfaces erface-id descriptionorshow running-config 验证.
  Step 6  copy running-config startup-config 保存
  
  Use the no description erface configuration command to delete the description.
  This example shows how to add a description on Fast Ethernet erface 0/4 and to very the description:
  Switch# config terminal
  
  Enter configuration commands, one per line. End with CNTL/Z.
  Switch(config)# erface fastethernet0/4
  
  Switch(config-)# description Connects to Marketing
  
  Switch(config-)# end
  
  Switch# show erfaces fastethernet0/4 description
  
  Interface Status     Protocol Description
  Fa0/4   up       down   Connects to Marketing
  监控及维护端口
  监控端口和控制器状态
  主要命令见下表:
  Show Commands for Interfaces Command 目
  show erfaces [erface-id] 显示所有端口或某端口状态和配置.
  show erfaces erface-id status [err-disabled] 显示系列端口状态或-关闭状态
  show erfaces [erface-id] switchport 显示 2层端口状态可以用来决定此口是否为 2层或 3层口
  show erfaces [erface-id] description 显示端口描述
  show running-config erface [erface-id] 显示当前配置中端口配置情况
  show version 显示软硬件等情况
  
  举例如下:
  Switch# show erfaces status
  
  
  Port  Name        Status    Vlan    Duplex Speed Type
  Gi0/1           connected  routed   a-full a-100 10/100/1000Base
  TX
  Gi0/2  wce server 20.20.2 disabled   routed    auto  auto 10/100/1000Base TX
  Gi0/3  ip wccp web-cache notconnect  routed    auto  auto 10/100/1000Base TX
  Gi0/4           notconnect  routed    auto  auto 10/100/1000Base TX
  Gi0/5           notconnect  routed    auto  auto 10/100/1000Base TX
  Gi0/6           disabled   routed    auto  auto 10/100/1000Base TX
  Gi0/7           disabled   routed    auto  auto 10/100/1000Base TX
  Gi0/8           disabled   routed    auto  100 10/100/1000Base TX
  Gi0/9           notconnect  routed    auto  auto 10/100/1000Base TX
  Gi0/10           notconnect  routed    auto  auto 10/100/1000Base TX
  Gi0/11           disabled   routed    auto  auto unknown
Tags:  cisco2950交换机 思科2950交换机 2950交换机 2950交换机配置

延伸阅读

最新评论

发表评论