配置cisco2950交换机的端口Word格式文档下载.docx
- 文档编号:17062146
- 上传时间:2022-11-28
- 格式:DOCX
- 页数:6
- 大小:17.88KB
配置cisco2950交换机的端口Word格式文档下载.docx
《配置cisco2950交换机的端口Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《配置cisco2950交换机的端口Word格式文档下载.docx(6页珍藏版)》请在冰豆网上搜索。
可以使用平时的端口配置命令进行配置
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)#
以下的例子显示使用句号来配置不同类型端口的组:
Switch(config)#interfacerangefastethernet0/1-3,gigabitethernet0/1-2
配置二层端口
2950的所有端口缺省的端口都是二层口,如果此端口已经配置成三层端口的话,则需要用switchport来使其成为二层端口。
配置端口速率及双工模式
可以配置快速以太口的速率为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
端口描述
进入配置模式
进入要加入描述的端口
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
InterfaceStatus
ProtocolDescription
Fa0/4
up
down
ConnectstoMarketing
监控及维护端口
监控端口和控制器的状态
主要命令见下表:
ShowCommandsforInterfacesCommand
显示所有端口或某一端口的状态和配置.
showinterfacesinterface-idstatus[err-disabled]
显示一系列端口的状态或错误-关闭的状态
showinterfaces[interface-id]switchport
显示二层端口的状态,可以用来决定此口是否为二层或三层口。
showinterfaces[interface-id]description
显示端口描述
showrunning-configinterface[interface-id]
显示当前配置中的端口配置情况
showversion
显示软硬件等情况
举例如下:
Switch#showinterfacesstatus
Switch#showinterfacesfastethernet0/1switchport
Switch#showrunning-configinterfacefastethernet0/2
刷新、重置端口及计数器
Clear命令
clearcounters[interface-id]
清除端口计数器.
clearline[number|console0|vtynumber]
重置异步串口的硬件逻辑
Note
clearcounters命令只清除用showinterface所显示的计数,不影响用snmp得到的计数
举例如下:
Switch#clearcountersfastethernet0/5
Clear"
showinterface"
countersonthisinterface[confirm]y
Switch#
*Sep3008:
42:
55:
%CLEAR-5-COUNTERS:
ClearcounteroninterfaceFastEthernet0/5
byvty1(171.69.115.10)
可使用clearline命令来清除或重置某一端口或串口,在大部分情况下并不需要这样做:
Switch#clearinterfacefastethernet0/5
关闭和打开端口
interface{vlanvlan-id}|{{fastethernet|gigabitethernet}interface-id}|{port-channelport-channel-number}
选择要关闭的端口
shutdown
关闭
验证
使用noshutdown命令重新打开端口.
Switch(config)#interfacefastethernet0/5
Switch(config-if)#shutdown
Switch(config-if)#
Switch(config-if)#noshutdown
Switch(config-if)#
(完)
欢迎您的下载,资料仅供参考!
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 配置 cisco2950 交换机 端口