page1-61CCNACCNASPOTOTMWeb!CCNACCNACiscoITCCNAITCCNASPOTOCCNASPOTOSPOTOSPOTOCCNASPOTOCCNANodingSPOTOSPOTOMaydaySPOTO-TSRainypanSPOTO-TSzplover2006413PDF文件使用pdfFactoryPro试用版本创建!1Cisco.......................................................................32VLSM....................................63RIP..........................104RIPIGRPEIGRPOSPF.................................................145VLAN...............................................................306............................................................................417NAT.....................................................................478................................................................................549PPP.......................................................................60PDF文件使用pdfFactoryPro试用版本创建!1CiscoRouterRouter#showRouter(config)#Router(config-if)#Router(config-subif)#Router(config-line)#TelnetRouter(config-router)#RIPIGRP1.RouterenableRouter#configureterminalRouter(config)#noipdomainlookup//Router(config)#lineconsole0Router(config-line)#exec-timeout00//Router(config-line)#loggingsynchronous//Router(config-line)#exitRouter(config)#//2.Router(config)#hostnameR1//R1(config)#bannermotd#ThisisCiscoRouter2620.//(MOTD)#R1(config)#R1(config)#bannerexec#//TelnetTelnettoRouter2620!#R1(config)#endR1#clockset15:05:3325February2006//R1#PDF文件使用pdfFactoryPro试用版本创建!3.R1#R1#showclock//R1#shhistory//R1#shterminal//R1#terminalhistorysize22//22R1#shversion//R1#shsession//R1#shstartup-config//R1#shrunning-config//R1#copyrunstar//4.R1#conftR1(config)#enablepasswordtree//R1(config)#enablesecrettree1//R1(config)#linecon0R1(config-line)#passwordtree//R1(config-line)#login//R1(config-line)#linevty04//Telnet50-4R1(config-line)#passtree//TelnetTelnetR1(config-line)#loginR1(config-line)#lineaux0R1(config-line)#passtree//R1(config-line)#loginR1(config-line)#endR1#R1#shrun//R1#conftR1(config)#servicepassword-encryption//R1(config)#Ctrl+Z//endexitCtrl+ZR1#shrun//R1#logout//exit//PDF文件使用pdfFactoryPro试用版本创建!//:5.R1#conftR1(config)#noenablepasswordR1(config)#noensecretR1(config)#linecon0R1(config-line)#nopassR1(config-line)#nologinR1(config-line)#linevty04//Ctrl+AR1(config-line)#nopass//Ctrl+ER1(config-line)#nologR1(config-line)#lineaux0R1(config-line)#nopassR1(config-line)#nologR1(config-line)#endR1#shrunR1#R`#erasestartup-config//R1#reload//THEENDPDF文件使用pdfFactoryPro试用版本创建!2VLSMSPOTOCCNA1.IPIPIPR1S0172.16.10.1/24R2S0172.16.10.2/24R2S1172.16.20.1/24R3S0172.16.20.2/24R1#showcontrollersserial0//DTEDCER1#conftR1(config)#interfacesserial0R1(config-if)#descriptionConnectiontoR2//R1(config-if)#ipaddress172.16.10.1255.255.255.0//IPR1(config-if)#noshutdown//S0,DTES1,DCES0,DTES0,DCER1R2R3DTEcablePDF文件使用pdfFactoryPro试用版本创建!R1(config-if)#endR1#//Ctrl+Shift+6,XR2R2enR2#shconts0R2#shconts1R2#conftR2(config)#ints0R2(config-if)#ipadd172.16.10.2255.255.255.0R2(config-if)#noshutR2(config-if)#clockrate64000//DCER2(config-if)#ints1R2(config-if)#ipadd172.16.20.1255.255.255.0R2(config-if)#noshutR2(config-if)#clockrate64000R2(config-if)#//Ctrl+Shift+6,XR3R3enR3#shconts0R3#conftR3(config)#ints0R3(config-if)#ipadd172.16.20.2255.255.255.0R3(config)#noshutR3(config)#endR3#2.R2#showinterfaceserial0//R2#showipinterfacebrief//R2#showprotocols//R2#showipinterfaces0//R2#showcdpneighbors//CDPR2#showcdpneighdetail//IPR2#ping172.16.10.1//R2pingR1R3R2#ping172.16.20.2PDF文件使用pdfFactoryPro试用版本创建!!!!!!ping..3.VLSMloopback12032loopback23064(32IP3029)Loopback3101624C192.168.10.0IPIPR1LO1192.168.10.33/27R1S0192.168.10.5/30R2S0192.168.10.6/30R2S1192.168.10.9/30R2LO2192.168.10.65/26R3S0192.168.10.10/30R3LO3192.168.10.17/28Loopback330S1,DCES0,DTES0,DCER1R2R3S0,DTELoopback120PDF文件使用pdfFactoryPro试用版本创建!R1(config)#intloopback1//R1(config-if)#ipadd192.168.10.33255.255.255.224///27R1(config-if)#//noshutdownUPR1(config-if)#ints0R1(config-if)#ipadd192.168.10.5255.255.255.252//252/30R1(config-if)#noshutR1(config-if)#Ctrl+Shift+6,XR2R2enR2#conftR2(config)#ints0R2(config-if)#ipadd192.168.10.6255.255.255.252//IPR2(config-if)#noshutR2(config-if)#intloop2R2(config-if)#ipadd192.168.10.65255.255.255.192///26R2(config-if)#ints1R2(config-if)#ipadd192.168.10.9255.255.255.252R2(config-if)#noshutR2(config-if)#Ctrl+Shift+6,XR3R3enR3#R3#conftR3(config)#ints0R3(config-if)#ipadd192.168.10.10255.255.255.252R3(config-if)#noshutR3(config-if)#intloop3R3(config-if)#ipadd192.168.1