cisco交换机配置培训课件_第1页
cisco交换机配置培训课件_第2页
cisco交换机配置培训课件_第3页
cisco交换机配置培训课件_第4页
cisco交换机配置培训课件_第5页
已阅读5页,还剩31页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

CISCOcatalyst系列交换机产品常用维护命令郑州嘉通公司制作2007年11月CISCOcatalyst系列郑州嘉通公司制作2007年11.在基于IOS的交换机上设置主机名/系统名:

switch(config)#hostnamehostname

在基于CLI的交换机上设置主机名/系统名:

switch(enable)setsystemnamename-string

2.在基于IOS的交换机上设置登录口令:

switch(config)#enablepasswordlevel1password

在基于CLI的交换机上设置登录口令:

switch(enable)setpassword

switch(enable)setenalbepass

3.在基于IOS的交换机上设置远程访问:

switch(config)#interfacevlan1

switch(config-if)#ipaddressip-addressnetmask

switch(config-if)#ipdefault-gatewayip-address

在基于CLI的交换机上设置远程访问:

switch(enable)setinterfacesc0ip-addressnetmaskbroadcast-addressswitch(enable)setinterfacesc0vlanswitch(enable)setiproutedefaultgateway

常用配置命令1.在基于IOS的交换机上设置主机名/系统名4.在基于IOS的交换机上启用和浏览CDP信息:

switch(config-if)#cdpenable

switch(config-if)#nocdpenable

为了查看Cisco邻接设备的CDP通告信息:

switch#showcdpinterface[typemodle/port]

switch#showcdpneighbors[typemodule/port][detail]

在基于CLI的交换机上启用和浏览CDP信息:

switch(enable)setcdp{enable|disable}module/port

为了查看Cisco邻接设备的CDP通告信息:

switch(enable)showcdpneighbors[module/port][vlan|duplex|capabilities|detail]5.基于IOS的交换机的端口描述:

switch(config-if)#descriptiondescription-string

基于CLI的交换机的端口描述:

switch(enable)setportnamemodule/numberdescription-string

4.在基于IOS的交换机上启用和浏览CDP信息:

sw

6.在基于IOS的交换机上设置端口速度:

switch(config-if)#speed{10|100|auto}

在基于CLI的交换机上设置端口速度:

switch(enable)setportspeedmoudle/number{10|100|auto}

switch(enable)setportspeedmoudle/number{4|16|auto}

7.在基于IOS的交换机上设置以太网的链路模式:

switch(config-if)#duplex{auto|full|half}

在基于CLI的交换机上设置以太网的链路模式:

switch(enable)setportduplexmodule/number{full|half}

8.在基于IOS的交换机上配置静态VLAN:

switch#vlandatabase

switch(vlan)#vlanvlan-numnamevlan

6.在基于IOS的交换机上设置端口速度:

配置案例Catalyst3560G-24ts-e配置center_1#showrunBuildingconfiguration...Currentconfiguration:1789bytes!version12.2noservicepadservicetimestampsdebuguptimeservicetimestampsloguptimenoservicepassword-encryption!hostnamecenter_1//交换机命名为center_1!nologgingconsoleenablepasswordcisco//enable密码:cisco!noaaanew-modelipsubnet-zero!配置案例Catalyst3560G-24ts-e配置nofileverifyauto!spanning-treemodepvst//起用生成树spanning-treeextendsystem-idspanning-treevlan1priority0//根桥优先级设置成0*越小越好!vlaninternalallocationpolicyascending!!interfacePort-channel1//建立以太网通道

switchporttrunkencapsulationdot1q//定义封装类型为dot1qswitchportmodetrunk//定义为干道!interfaceGigabitEthernet0/1interfaceGigabitEthernet0/2!interfaceGigabitEthernet0/3!interfaceGigabitEthernet0/4nofileverifyautoswitchporttrunkencapsulationdot1q//定义封装类型为dot1qswitchportmodetrunkchannel-group1modeon//放入以太网通道组1模式为无条件捆绑!interfaceGigabitEthernet0/24switchporttrunkencapsulationdot1q//定义封装类型为dot1qchannel-group1modeon//放入以太网通道组1模式为无条件捆绑!interfaceGigabitEthernet0/25spanning-treeportfast//起用portfast!interfaceGigabitEthernet0/26spanning-treeportfast!interfaceGigabitEthernet0/27switchporttrunkencapsulationinterfaceGigabitEthernet0/28spanning-treeportfast!interfaceVlan1ipaddress//vlan1管理IP!ipclasslessiphttpserver!control-plane!linecon0passwordcisco//enable密码:ciscologinlinevty04passwordcisco//vty密码:ciscologinlinevty515nologin!EndinterfaceGigabitEthernet0/28常用show命令1.showversion-显示当前交换机上运行的IOS版本,连同关于可以使用的硬件、RAM和闪存、交换机正常运行时间、当前运行的IOS映像文件、最后一次再次加载的原因以及配置注册的内容的许多细节。常用show命令1.showversion-显示当前交showverCiscoIOSSoftware,C3560Software(C3560-IPBASE-M),Version12.2(25)SEE2,RELEASESOFTWARE(fc1)Copyright(c)1986-2006byCiscoSystems,Inc.CompiledFri28-Jul-0607:19byyenanhImagetext-base:0x00003000,data-base:0x00EB0F14ROM:BootstrapprogramisC3560bootloaderBOOTLDR:C3560BootLoader(C3560-HBOOT-M)Version12.2(25r)SEC,RELEASESOFTWARE(fc4)Switchuptimeis1hour,14minutesSystemreturnedtoROMbypower-onSystemimagefileis"flash:c3560-ipbase-mz.122-25.SEE2/c3560-ipbase-mz.122-25.SEE2.bin"showverciscoWS-C3560-24TS(PowerPC405)processor(revisionD0)with118784K/12280Kbytesofmemory.ProcessorboardIDCAT1042ZJU0Lastresetfrompower-on2VirtualEthernetinterfaces24FastEthernetinterfaces2GigabitEthernetinterfacesThepassword-recoverymechanismisenabled.

512Kbytesofflash-simulatednon-volatileconfigurationmemory.BaseethernetMACAddress:00:19:E7:A0:83:80Motherboardassemblynumber:73-9897-06Powersupplypartnumber:341-0097-02Motherboardserialnumber:CAT10415V3HPowersupplyserialnumber:DCA103881LVModelrevisionnumber:D0Motherboardrevisionnumber:A0ciscoWS-C3560-24TS(PowerPC40Modelnumber:WS-C3560-24TS-SSystemserialnumber:CAT1042ZJU0TopAssemblyPartNumber:800-26160-02TopAssemblyRevisionNumber:C0VersionID:V02CLEICodeNumber:COMMG00ARBHardwareBoardRevisionNumber:0x01SwitchPortsModelSWVersionSWImage------------------------------------*126WS-C3560-24TS12.2(25)SEE2C3560-IPBASE-MConfigurationregisteris0xFModelnumberShowrunning-config[interfacetypemod/num|vlanvlan-id|modulemod]显示running-config配置文件的内容。可以跳到接口、vlan或者交换机的模块的相关配置Showrunning-config[inteShowstartup-config显示startup-config配置文件的内容Showtech-support为CiscoTAC支持人员提供信息Showinterfacemodule/number注意查看任何大于0的错误计数,速度与双工匹配Showstartup-configSwitch#showintg0/1GigabitEthernet0/1isdown,lineprotocolisdown(err-disabled)

HardwareisGigabitEthernet,addressis0019.e7a0.8381(bia0019.e7a0.8381)MTU1500bytes,BW10000Kbit,DLY1000usec,reliability255/255,txload1/255,rxload1/255EncapsulationARPA,loopbacknotsetKeepalivenotset

Auto-duplex,Auto-speed,linktypeisauto,mediatypeisunknowninputflow-controlisoff,outputflow-controlisunsupportedARPtype:ARPA,ARPTimeout04:00:00Lastinputnever,outputnever,outputhangneverLastclearingof"showinterface"countersneverInputqueue:0/75/0/0(size/max/drops/flushes);Totaloutputdrops:0Queueingstrategy:fifoOutputqueue:0/40(size/max)5minuteinputrate0bits/sec,0packets/sec5minuteoutputrate0bits/sec,0packets/sec

Switch#showintg0/10packetsinput,0bytes,0nobuffer

Received0broadcasts(0multicast)0runts,0giants,0throttles0inputerrors,0CRC,0frame,0overrun,0ignored0watchdog,0multicast,0pauseinput0inputpacketswithdribbleconditiondetected0packetsoutput,0bytes,0underruns0outputerrors,0collisions,15interfaceresets0babbles,0latecollision,0deferred0lostcarrier,0nocarrier,0PAUSEoutput0outputbufferfailures,0outputbuffersswappedout0packetsinput,0bytes,0noShowvlanidvlan-idcenter_1#showvlanVLANNameStatusPorts----------------------------------------------------------------------------1defaultactiveGi0/1,Gi0/2,Gi0/3,Gi0/4Gi0/5,Gi0/6,Gi0/7,Gi0/8Gi0/9,Gi0/10,Gi0/11,Gi0/12Gi0/13,Gi0/14,Gi0/15,Gi0/16Gi0/17,Gi0/18,Gi0/19,Gi0/20Gi0/21,Gi0/22,Gi0/23,Gi0/24Gi0/25,Gi0/26,Gi0/27,Gi0/281002fddi-defaultact/unsup1003token-ring-defaultact/unsup1004fddinet-defaultact/unsup1005trnet-defaultact/unsupShowvlanidvlan-id补充命令:Showipinterfacebriefnoipdomain-lookupnologgingconsole补充命令:CISCOcatalyst系列交换机产品常用维护命令郑州嘉通公司制作2007年11月CISCOcatalyst系列郑州嘉通公司制作2007年11.在基于IOS的交换机上设置主机名/系统名:

switch(config)#hostnamehostname

在基于CLI的交换机上设置主机名/系统名:

switch(enable)setsystemnamename-string

2.在基于IOS的交换机上设置登录口令:

switch(config)#enablepasswordlevel1password

在基于CLI的交换机上设置登录口令:

switch(enable)setpassword

switch(enable)setenalbepass

3.在基于IOS的交换机上设置远程访问:

switch(config)#interfacevlan1

switch(config-if)#ipaddressip-addressnetmask

switch(config-if)#ipdefault-gatewayip-address

在基于CLI的交换机上设置远程访问:

switch(enable)setinterfacesc0ip-addressnetmaskbroadcast-addressswitch(enable)setinterfacesc0vlanswitch(enable)setiproutedefaultgateway

常用配置命令1.在基于IOS的交换机上设置主机名/系统名4.在基于IOS的交换机上启用和浏览CDP信息:

switch(config-if)#cdpenable

switch(config-if)#nocdpenable

为了查看Cisco邻接设备的CDP通告信息:

switch#showcdpinterface[typemodle/port]

switch#showcdpneighbors[typemodule/port][detail]

在基于CLI的交换机上启用和浏览CDP信息:

switch(enable)setcdp{enable|disable}module/port

为了查看Cisco邻接设备的CDP通告信息:

switch(enable)showcdpneighbors[module/port][vlan|duplex|capabilities|detail]5.基于IOS的交换机的端口描述:

switch(config-if)#descriptiondescription-string

基于CLI的交换机的端口描述:

switch(enable)setportnamemodule/numberdescription-string

4.在基于IOS的交换机上启用和浏览CDP信息:

sw

6.在基于IOS的交换机上设置端口速度:

switch(config-if)#speed{10|100|auto}

在基于CLI的交换机上设置端口速度:

switch(enable)setportspeedmoudle/number{10|100|auto}

switch(enable)setportspeedmoudle/number{4|16|auto}

7.在基于IOS的交换机上设置以太网的链路模式:

switch(config-if)#duplex{auto|full|half}

在基于CLI的交换机上设置以太网的链路模式:

switch(enable)setportduplexmodule/number{full|half}

8.在基于IOS的交换机上配置静态VLAN:

switch#vlandatabase

switch(vlan)#vlanvlan-numnamevlan

6.在基于IOS的交换机上设置端口速度:

配置案例Catalyst3560G-24ts-e配置center_1#showrunBuildingconfiguration...Currentconfiguration:1789bytes!version12.2noservicepadservicetimestampsdebuguptimeservicetimestampsloguptimenoservicepassword-encryption!hostnamecenter_1//交换机命名为center_1!nologgingconsoleenablepasswordcisco//enable密码:cisco!noaaanew-modelipsubnet-zero!配置案例Catalyst3560G-24ts-e配置nofileverifyauto!spanning-treemodepvst//起用生成树spanning-treeextendsystem-idspanning-treevlan1priority0//根桥优先级设置成0*越小越好!vlaninternalallocationpolicyascending!!interfacePort-channel1//建立以太网通道

switchporttrunkencapsulationdot1q//定义封装类型为dot1qswitchportmodetrunk//定义为干道!interfaceGigabitEthernet0/1interfaceGigabitEthernet0/2!interfaceGigabitEthernet0/3!interfaceGigabitEthernet0/4nofileverifyautoswitchporttrunkencapsulationdot1q//定义封装类型为dot1qswitchportmodetrunkchannel-group1modeon//放入以太网通道组1模式为无条件捆绑!interfaceGigabitEthernet0/24switchporttrunkencapsulationdot1q//定义封装类型为dot1qchannel-group1modeon//放入以太网通道组1模式为无条件捆绑!interfaceGigabitEthernet0/25spanning-treeportfast//起用portfast!interfaceGigabitEthernet0/26spanning-treeportfast!interfaceGigabitEthernet0/27switchporttrunkencapsulationinterfaceGigabitEthernet0/28spanning-treeportfast!interfaceVlan1ipaddress//vlan1管理IP!ipclasslessiphttpserver!control-plane!linecon0passwordcisco//enable密码:ciscologinlinevty04passwordcisco//vty密码:ciscologinlinevty515nologin!EndinterfaceGigabitEthernet0/28常用show命令1.showversion-显示当前交换机上运行的IOS版本,连同关于可以使用的硬件、RAM和闪存、交换机正常运行时间、当前运行的IOS映像文件、最后一次再次加载的原因以及配置注册的内容的许多细节。常用show命令1.showversion-显示当前交showverCiscoIOSSoftware,C3560Software(C3560-IPBASE-M),Version12.2(25)SEE2,RELEASESOFTWARE(fc1)Copyright(c)1986-2006byCiscoSystems,Inc.CompiledFri28-Jul-0607:19byyenanhImagetext-base:0x00003000,data-base:0x00EB0F14ROM:BootstrapprogramisC3560bootloaderBOOTLDR:C3560BootLoader(C3560-HBOOT-M)Version12.2(25r)SEC,RELEASESOFTWARE(fc4)Switchuptimeis1hour,14minutesSystemreturnedtoROMbypower-onSystemimagefileis"flash:c3560-ipbase-mz.122-25.SEE2/c3560-ipbase-mz.122-25.SEE2.bin"showverciscoWS-C3560-24TS(PowerPC405)processor(revisionD0)with118784K/12280Kbytesofmemory.ProcessorboardIDCAT1042ZJU0Lastresetfrompower-on2VirtualEthernetinterfaces24FastEthernetinterfaces2GigabitEthernetinterfacesThepassword-recoverymechanismisenabled.

512Kbytesofflash-simulatednon-volatileconfigurationmemory.BaseethernetMACAddress:00:19:E7:A0:83:80Motherboardassemblynumber:73-9897-06Powersupplypartnumber:341-0097-02Motherboardserialnumber:CAT10415V3HPowersupplyserialnumber:DCA103881LVModelrevisionnumber:D0Motherboardrevisionnumber:A0ciscoWS-C3560-24TS(PowerPC40Modelnumber:WS-C3560-24TS-SSystemserialnumber:CAT1042ZJU0TopAssemblyPartNumber:800-26160-02TopAssemblyRevisionNumber:C0VersionID:V02CLEICodeNumber:COMMG00ARBHardwareBoardRevisionNumber:0x01SwitchPortsModelSWVersionSWImage------------------------------------*126WS-C3560-24TS12.2(25)SEE2C3560-IPBASE-MConfigurationregisteris0xFModelnumberShowrunning-config[interfacetypemod/num|vlanvlan-id|modulemod]显示running-config配置文件的内容。可以跳到接口、vlan或者交换机的模块的相关配置Showrunning-config[inteShowstartup-config显示startup-config配置文件的内容Showtech-support为CiscoTAC支持人员提供信息Showinterfacemodule/number注意查看任何大于0的错误计数,速度与双工匹配Showstartup-configSwitch#showintg0/1GigabitEthernet0/1isdown,lineprotocolisdown(err-disabled)

HardwareisGigabitEthernet,addressis0019.e7a0.8381(bia0019.e7a0.8381)MTU1500bytes,BW10000Kbit,DLY1000usec,reliability255/255,txload1/255,rxload1/255EncapsulationARPA,loopbacknotsetKeepalivenotset

Auto-duplex,Auto-speed,linktypeisauto,mediatypeisunknowninputflow-controlisoff,outputflow-controlisunsupportedARPtype:ARPA,ARPTimeout04:00:00Lastinputnever,outputnever,outputhangneverLastclearingof"showinterface"countersneverInputqueue:0/75/0/0(size/max/drops/flushes);Totaloutputdrops:0Queueingstrategy:fifoOutputqueue:0/40(size/

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论