PacketTracer5.0实验(一)交换机的基本配置与管理一、实验目标掌握交换机基本信息的配置与管理二、技术原理交换机的管理方式基本分为两种:带内管理和带外管理。通过交换机的Console端口管理交换机属于带外管理:这种管理方式不占用交换机的网络端口,第一次配置交换机必须利用Console端口进行配置。通过远程Telnet、拨号等方式属于带内管理。三、交换机的命令行操作模式主要包括:用户模式Switch特权模式Switch#全局配置模式Switch(config)#端口模式Switch(config-if)#四、实验步骤1、实验拓扑2、交换机基本配置命令a.进入特权模式Switchenable//en=enableSwitch#b.进入全局配置模式Switch#configureterminal//conft=configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.c.进入交换机端口视图模式Switch(config)#interfacefastEthernet0/1//intf0/1=interfacefastEthernet0/1Switch(config-if)#d.配置交换机端口速度Switch(config-if)#speed?10Force10Mbpsoperation100Force100MbpsoperationautoEnableAUTOspeedconfigurationSwitch(config-if)#speed100e.配置交换机端口双工模式Switch(config-if)#duplex?autoEnableAUTOduplexconfigurationfullForcefullduplexoperationhalfForcehalf-duplexoperationSwitch(config-if)#duplexfullf.退回到上一级模式Switch(config-if)#exitSwitch(config)#g.直接退回到特权模式Switch(config-if)#endSwitch#%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleSwitch#h.查看交换机版本信息Switch#showversionCiscoIOSSoftware,C2960Software(C2960-LANBASE-M),Version12.2(25)FX,RELEASESOFTWARE(fc1)Copyright(c)1986-2005byCiscoSystems,Inc.CompiledWed12-Oct-0522:05bypt_teamROM:C2960BootLoader(C2960-HBOOT-M)Version12.2(25r)FX,RELEASESOFTWARE(fc4)SystemreturnedtoROMbypower-onCiscoWS-C2960-24TT(RC32300)processor(revisionC0)with21039Kbytesofmemory.24FastEthernet/IEEE802.3interface(s)2GigabitEthernet/IEEE802.3interface(s)63488Kbytesofflash-simulatednon-volatileconfigurationmemory.BaseethernetMACAddress:0040.0B69.8831Motherboardassemblynumber:73-9832-06Powersupplypartnumber:341-0097-02Motherboardserialnumber:FOC103248MJPowersupplyserialnumber:DCA102133JAModelrevisionnumber:B0Motherboardrevisionnumber:C0Modelnumber:WS-C2960-24TTSystemserialnumber:FOC1033Z1EY--More--...Configurationregisteris0xFi.查看当前生效的配置信息Switch#showrunning-configBuildingconfiguration...Currentconfiguration:1033bytes!version12.2noservicetimestampslogdatetimemsecnoservicetimestampsdebugdatetimemsecnoservicepassword-encryption!hostnameSwitch!!!interfaceFastEthernet0/1duplexfullspeed100!interfaceFastEthernet0/2!interfaceFastEthernet0/3!interfaceFastEthernet0/4!interfaceFastEthernet0/5--More--...!!endj.帮助信息①Switch#?Execcommands:1-99SessionnumbertoresumeclearResetfunctionsclockManagethesystemclockconfigureEnterconfigurationmodeconnectOpenaterminalconnectioncopyCopyfromonefiletoanotherdebugDebuggingfunctions(seealso'undebug')deleteDeleteafiledirListfilesonafilesystemdisableTurnoffprivilegedcommandsdisconnectDisconnectanexistingnetworkconnectionenableTurnonprivilegedcommandseraseEraseafilesystemexitExitfromtheEXEClogoutExitfromtheEXECmoreDisplaythecontentsofafilenoDisabledebugginginformationspingSendechomessagesreloadHaltandperformacoldrestartresumeResumeanactivenetworkconnectionsetupRuntheSETUPcommandfacility--More--②Switch#co?configureconnectcopy③Switch#copy?flash:Copyfromflash:filesystemftp:Copyfromftp:filesystemrunning-configCopyfromcurrentsystemconfigurationstartup-configCopyfromstartupconfigurationtftp:Copyfromtftp:filesystem