配置cisco2950交换机的端口.docx

上传人:scccc 文档编号:13263214 上传时间:2021-12-20 格式:DOCX 页数:6 大小:16.59KB
返回 下载 相关 举报
配置cisco2950交换机的端口.docx_第1页
第1页 / 共6页
配置cisco2950交换机的端口.docx_第2页
第2页 / 共6页
配置cisco2950交换机的端口.docx_第3页
第3页 / 共6页
配置cisco2950交换机的端口.docx_第4页
第4页 / 共6页
配置cisco2950交换机的端口.docx_第5页
第5页 / 共6页
点击查看更多>>
资源描述

《配置cisco2950交换机的端口.docx》由会员分享,可在线阅读,更多相关《配置cisco2950交换机的端口.docx(6页珍藏版)》请在三一文库上搜索。

1、配置cisco2950交换机的端口配置一组端口 命令 目的 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保存当使用

2、interface 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· 端口号之间需要加入空格,如:interface range fastethernet 0/1  5 是有效的,而i

3、nterface range fastethernet 0/1-5 是无效的. · interface range 命令只能配置已经存在的interface vlan · 所有在同一组的端口必须是相同类别的。见以下例子:Switch# configure terminalSwitch(config)# interface range fastethernet0/1 - 5 Switch(config-if-range)# no shutdown Switch(config-if-range)#以下的例子显示使用句号来配置不同类型端口的组:Switch# configure

4、terminalSwitch(config)# interface range fastethernet0/1 - 3, gigabitethernet0/1 - 2 Switch(config-if-range)# no shutdown Switch(config-if-range)#配置二层端口2950的所有端口缺省的端口都是二层口,如果此端口已经配置成三层端口的话,则需要用switchport来使其成为二层端口。配置端口速率及双工模式可以配置快速以太口的速率为10/100Mbps及千兆以太口的速率为10/100/1000-Mbps; 但对于GBIC端口则不能配置速率及双工模式,有时可以

5、配置nonegotiate,当需要联接不支持自适应的其它千兆端口时 命令目的 Step 1  configure terminal进入配置状态.Step 2  interface interface-id进入端口配置状态.Step 3  speed 10 | 100 | 1000 | auto | nonegotiate设置端口速率 注   1000 只工作在千兆口. GBIC模块只工作在1000 Mbps下. nonegotiate 只能在这些GBIC上用 1000BASE-SX, -LX,

6、and -ZX GBIC.Step 4  duplex auto | full | half设置全双工或半双工. Step 5  end退出Step 6  show interfaces interface-id显示有关配置情况Step 7  copy running-config startup-config保存  Switch# configure terminalSwitch(config)# interface fastethernet0/3Switch(config-if)# spee

7、d 10Switch(config-if)# duplex half端口描述   命令目的 Step 1  configure terminal进入配置模式Step 2  interface interface-id进入要加入描述的端口Step 3  description string加入描述 (最多240个字符).Step 4  end退回.Step 5  show interfaces interface-id descriptionorshow running-con

8、fig验证.Step 6  copy running-config startup-config保存  Use the no description interface configuration command to delete the description.This example shows how to add a description on Fast Ethernet interface 0/4 and to verify the description:Switch# config terminalEnter configuration

9、 commands, one per line.  End with CNTL/Z.Switch(config)# interface fastethernet0/4Switch(config-if)# description Connects to MarketingSwitch(config-if)# endSwitch# show interfaces fastethernet0/4 descriptionInterface Status         Protocol DescriptionFa

10、0/4     up             down     Connects to Marketing 监控及维护端口监控端口和控制器的状态主要命令见下表:Show Commands for Interfaces Command 目的 show interfaces interface-id显示所有端口或某一端口的状态和配置.show interfaces interface-id

11、status err-disabled显示一系列端口的状态或错误关闭的状态show interfaces interface-id switchport显示二层端口的状态,可以用来决定此口是否为二层或三层口。show interfaces interface-id description显示端口描述show running-config interface interface-id显示当前配置中的端口配置情况show version显示软硬件等情况 举例如下:Switch# show interfaces statusSwitch# show interfaces fastether

12、net 0/1 switchportSwitch# show running-config interface fastethernet0/2刷新、重置端口及计数器Clear命令目的 clear counters interface-id清除端口计数器.clear line number | console 0 | vty number重置异步串口的硬件逻辑  Note   clear counters 命令只清除用show interface所显示的计数,不影响用snmp得到的计数 举例如下:Switch# clear counters fa

13、stethernet0/5 Clear "show interface" counters on this interface confirm y Switch#*Sep 30 08:42:55: %CLEAR-5-COUNTERS: Clear counter on interface FastEthernet0/5by vty1 (171.69.115.10) 可使用clear line 命令来清除或重置某一端口或串口,在大部分情况下并不需要这样做:Switch# clear interface fastethernet0/5  关闭和打开端口 命令

14、 目的 Step 1  configure terminal进入配置状态Step 2  interface vlan vlan-id | fastethernet | gigabitethernet interface-id | port-channel port-channel-number选择要关闭的端口Step 3  shutdown关闭Step 4  end退出Step 5  show running-config验证 使用 no shutdown 命令重新打开端口.举例如下:Switch# configure terminalSwitch(config)# interface fastethernet0/5 Switch(config-if)# shutdown Switch(config-if)#Switch# configure terminalSwitch(config)# interface fastethernet0/5 Switch(config-if)# no shutdown Switch(config-if)# (完)

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 社会民生


经营许可证编号:宁ICP备18001539号-1