精品思科cisco2950交换机配置手册中文Word文档下载推荐.docx
《精品思科cisco2950交换机配置手册中文Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《精品思科cisco2950交换机配置手册中文Word文档下载推荐.docx(22页珍藏版)》请在冰豆网上搜索。
∙支持ISL及IEEE802.1Q封装
安全
∙支持IOS标准的密码保护
∙支持标准及扩展的访问列表来定义安全策略
∙支持基于VLAN的访问列表
监视
∙交换机LED指示端口状态
∙SPAN及远端SPAN(RSPAN)可以监视任何端口或VLAN的流量
∙内置支持四组的RMON监控功能(历史、统计、告警及事件)
第3章配置端口
3.1配置一组端口
命令
目的
Step
1
configureterminal
进入配置状态
2
interfacerange{port-range}
进入组配置状态
3
可以使用平时的端口配置命令进行配置
4
end
退回
5
showinterfaces[interface-id]
验证配置
6
copyrunning-configstartup-config
保存
当使用interfacerange命令时有如下的规则:
∙有效的组范围:
ovlan从1到4094
ofastethernet槽位/{firstport}-{lastport},槽位为0
ogigabitethernet槽位/{firstport}-{lastport},槽位为0
oport-channelport-channel-number-port-channel-number,port-channel号从1到64
∙端口号之间需要加入空格,如:
interfacerangefastethernet0/1
–
5是有效的,而interfacerangefastethernet0/1-5是无效的.
∙interfacerange命令只能配置已经存在的interfacevlan
∙所有在同一组的端口必须是相同类别的。
见以下例子:
Switch#configureterminal
Switch(config)#interfacerangefastethernet0/1-5
Switch(config-if-range)#noshutdown
Switch(config-if-range)#
*Oct608:
24:
35:
%LINK-3-UPDOWN:
InterfaceFastEthernet0/1,changedstatetoup
InterfaceFastEthernet0/2,changedstatetoup
InterfaceFastEthernet0/3,changedstatetoup
InterfaceFastEthernet0/4,changedstatetoup
InterfaceFastEthernet0/5,changedstatetoup
36:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceFastEthernet0/05,
changedstatetoup
LineprotocolonInterfaceFastEthernet0/3,changed
statetoup
LineprotocolonInterfaceFastEthernet0/4,changed
以下的例子显示使用句号来配置不同类型端口的组:
Switch(config)#interfacerangefastethernet0/1-3,gigabitethernet0/1-2
29:
28:
InterfaceGigabitEthernet0/1,changedstatetoup
InterfaceGigabitEthernet0/2,changedstatetoup
LineprotocolonInterfaceGigabitEthernet0/1,
LineprotocolonInterfaceFastEthernet0/2,
LineprotocolonInterfaceFastEthernet0/3,
3.2配置二层端口
2950的所有端口缺省的端口都是二层口,如果此端口已经配置成三层端口的话,则需要用switchport来使其成为二层端口。
3.2.1配置端口速率及双工模式
3.2.1.1可以配置快速以太口的速率为10/100Mbps及千兆以太口的速率为10/100/1000-Mbps;
但对于GBIC端口则不能配置速率及双工模式,有时可以配置nonegotiate,当需要联接不支持自适应的其它千兆端口时
命令
进入配置状态.
interfaceinterface-id
进入端口配置状态.
speed{10|100|1000|auto|nonegotiate}
设置端口速率
注
1000只工作在千兆口.GBIC模块只工作在1000Mbps下.nonegotiate只能在这些GBIC上用1000BASE-SX,-LX,and-ZXGBIC.
duplex{auto|full|half}
设置全双工或半双工.
退出
showinterfacesinterface-id
显示有关配置情况
7
Switch(config)#interfacefastethernet0/3
Switch(config-if)#speed10
Switch(config-if)#duplexhalf
3.2.2端口描述
进入配置模式
进入要加入描述的端口
descriptionstring
加入描述(最多240个字符).
退回.
showinterfacesinterface-iddescription
or
showrunning-config
验证.
Usethenodescriptioninterfaceconfigurationcommandtodeletethedescription.
ThisexampleshowshowtoaddadescriptiononFastEthernetinterface0/4andtoverifythedescription:
Switch#configterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Switch(config)#interfacefastethernet0/4
Switch(config-if)#descriptionConnectstoMarketing
Switch(config-if)#end
Switch#showinterfacesfastethernet0/4description
InterfaceStatusProtocolDescription
Fa0/4updownConnectstoMarketing
3.3监控及维护端口
3.3.1监控端口和控制器的状态
主要命令见下表:
ShowCommandsforInterfacesCommand
显示所有端口或某一端口的状态和配置.
showinterfacesinterface-idstatus[err-disabled]
显示一系列端口的状态或错误-关闭的状态
showinterfaces[interface-id]switchport
显示二层端口的状态,可以用来决定此口是否为二层或三层口。
showinterfaces[interface-id]description
显示端口描述
showrunning-configinterface[interface-id]
显示当前配置中的端口配置情况
showversion
显示软硬件等情况
举例如下:
Switch#showinterfacesstatus
PortNameStatusVlanDuplexSpee