cisco配置手册

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

Cisco2950交换机配置手册Cisco2950交换机配置手册标签:Cisco2950cisco配置手册说明本手册只包括日常使用的有关命令及特性,其它未涉及的命令及特性请参考英文的详细配置手册。产品特性2950是只支持二层的交换机支持VLAN•到250个VLAN•支持VLANID从1到4094(IEEE802.1Q标准)•支持ISL及IEEE802.1Q封装安全•支持IOS标准的密码保护•支持标准及扩展的访问列表来定义安全策略•支持基于VLAN的访问列表监视•交换机LED指示端口状态•SPAN及远端SPAN(RSPAN)可以监视任何端口或VLAN的流量•内置支持四组的RMON监控功能(历史、统计、告警及事件)配置端口配置一组端口命令目的Step1configureterminal进入配置状态Step2interfacerange{port-range}进入组配置状态Step3可以使用平时的端口配置命令进行配置Step4end退回Step5showinterfaces[interface-id]验证配置Step6copyrunning-configstartup-config保存当使用interfacerange命令时有如下的规则:•有效的组范围:ovlan从1到4094ofastethernet槽位/{firstport}-{lastport},槽位为0ogigabitethernet槽位/{firstport}-{lastport},槽位为0oport-channelport-channel-number-port-channel-number,port-channel号从1到64•端口号之间需要加入空格,如:interfacerangefastethernet0/1–5是有效的,而interfacerangefastethernet0/1-5是无效的.•interfacerange命令只能配置已经存在的interfacevlan•所有在同一组的端口必须是相同类别的。见以下例子:Switch#configureterminalSwitch(config)#interfacerangefastethernet0/1-5Switch(config-if-range)#noshutdownSwitch(config-if-range)#*Oct608:24:35:%LINK-3-UPDOWN:InterfaceFastEthernet0/1,changedstatetoup*Oct608:24:35:%LINK-3-UPDOWN:InterfaceFastEthernet0/2,changedstatetoup*Oct608:24:35:%LINK-3-UPDOWN:InterfaceFastEthernet0/3,changedstatetoup*Oct608:24:35:%LINK-3-UPDOWN:InterfaceFastEthernet0/4,changedstatetoup*Oct608:24:35:%LINK-3-UPDOWN:InterfaceFastEthernet0/5,changedstatetoup*Oct608:24:36:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/05,changedstatetoup*Oct608:24:36:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/3,changedstatetoup*Oct608:24:36:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/4,changedstatetoup以下的例子显示使用句号来配置不同类型端口的组:Switch#configureterminalSwitch(config)#interfacerangefastethernet0/1-3,gigabitethernet0/1-2Switch(config-if-range)#noshutdownSwitch(config-if-range)#*Oct608:29:28:%LINK-3-UPDOWN:InterfaceFastEthernet0/1,changedstatetoup*Oct608:29:28:%LINK-3-UPDOWN:InterfaceFastEthernet0/2,changedstatetoup*Oct608:29:28:%LINK-3-UPDOWN:InterfaceFastEthernet0/3,changedstatetoup*Oct608:29:28:%LINK-3-UPDOWN:InterfaceGigabitEthernet0/1,changedstatetoup*Oct608:29:28:%LINK-3-UPDOWN:InterfaceGigabitEthernet0/2,changedstatetoup*Oct608:29:29:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceGigabitEthernet0/1,changedstatetoup*Oct608:29:29:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/2,changedstatetoup*Oct608:29:29:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/3,changedstatetoup配置二层端口2950的所有端口缺省的端口都是二层口,如果此端口已经配置成三层端口的话,则需要用switchport来使其成为二层端口。配置端口速率及双工模式可以配置快速以太口的速率为10/100Mbps及千兆以太口的速率为10/100/1000-Mbps;但对于GBIC端口则不能配置速率及双工模式,有时可以配置nonegotiate,当需要联接不支持自适应的其它千兆端口时命令目的Step1configureterminal进入配置状态.Step2interfaceinterface-id进入端口配置状态.Step3speed{10|100|1000|auto|nonegotiate}设置端口速率注1000只工作在千兆口.GBIC模块只工作在1000Mbps下.nonegotiate只能在这些GBIC上用1000BASE-SX,-LX,and-ZXGBIC.Step4duplex{auto|full|half}设置全双工或半双工.Step5end退出Step6showinterfacesinterface-id显示有关配置情况Step7copyrunning-configstartup-config保存Switch#configureterminalSwitch(config)#interfacefastethernet0/3Switch(config-if)#speed10Switch(config-if)#duplexhalf端口描述命令目的Step1configureterminal进入配置模式Step2interfaceinterface-id进入要加入描述的端口Step3descriptionstring加入描述(最多240个字符).Step4end退回.Step5showinterfacesinterface-iddescriptionorshowrunning-config验证.Step6copyrunning-configstartup-config保存Usethenodescriptioninterfaceconfigurationcommandtodeletethedescription.ThisexampleshowshowtoaddadescriptiononFastEthernetinterface0/4andtoverifythedescription:Switch#configterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#interfacefastethernet0/4Switch(config-if)#descriptionConnectstoMarketingSwitch(config-if)#endSwitch#showinterfacesfastethernet0/4descriptionInterfaceStatusProtocolDescriptionFa0/4updownConnectstoMarketing监控及维护端口监控端口和控制器的状态主要命令见下表:ShowCommandsforInterfacesCommand目的showinterfaces[interface-id]显示所有端口或某一端口的状态和配置.showinterfacesinterface-idstatus[err-disabled]显示一系列端口的状态或错误-关闭的状态showinterfaces[interface-id]switchport显示二层端口的状态,可以用来决定此口是否为二层或三层口。showinterfaces[interface-id]description显示端口描述showrunning-configinterface[interface-id]显示当前配置中的端口配置情况showversion显示软硬件等情况举例如下:Switch#showinterfacesstatusPortNameStatusVlanDuplexSpeedTypeGi0/1connectedrouteda-fulla-10010/100/1000BaseTXGi0/2wceserver20.20.2disabledroutedautoauto10/100/1000BaseTXGi0/3ipwccpweb-cachenotconnectroutedautoauto10/100/1000BaseTXGi0/4notconnectroutedautoauto10/100/1000BaseTXGi0/5notconnectroutedautoauto10/100/1000BaseTXGi0/6disabledroutedautoauto10/100/1000BaseTXGi0/7disabledroutedautoauto10/100/1000BaseTXGi0/8disabledroutedauto10010/100/1000BaseTXGi0/9notconnectroutedautoauto10/100/1000BaseTXGi0/10notconnectroutedautoauto10/100/1000BaseTXGi0/11disabledroutedautoautounknownGi0/12notconnectroutedautoautounknownSwitch#showinterfacesfastethernet0/1switchportName:Fa0/1Switchport:EnabledAdministrativeMode:staticaccessOperationalMode:downAdministrativeTrunkingEncapsulation:dot1qNegotiationofTrunking:OffAccessModeVLAN:1(default)TrunkingNativeModeVLAN:1(default)TrunkingVLANsEnabled:ALLPruningVLANsEnabled:2-1001Protected:falseUnknownun

1 / 12
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功