




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
PAGEPAGE3YesLabCCNA實(shí)驗(yàn)第一部分路由器的基本配 實(shí)驗(yàn)1.1認(rèn)識(shí)路由器幾種配置模 實(shí)驗(yàn)1.2為路由器配置一個(gè)時(shí) 實(shí)驗(yàn)1.3設(shè)置路由器超時(shí)退出時(shí) 實(shí)驗(yàn)1.4為路由器配置實(shí)驗(yàn)1.5關(guān)閉路由器的DNS命令解析功 實(shí)驗(yàn)1.6為路由器配置描述信 實(shí)驗(yàn)1.7配置命令 實(shí)驗(yàn)1.8清空路由 實(shí)驗(yàn)1.9配置一臺(tái) 實(shí)驗(yàn)1.10Cisco的 實(shí)驗(yàn)1.11用戶登陸 實(shí)驗(yàn)1.12創(chuàng)建靜態(tài)Hostname表 實(shí)驗(yàn)第二部分靜態(tài)路由實(shí) 實(shí)驗(yàn)2.1靜態(tài)路 實(shí)驗(yàn)2.2靜態(tài)匯總路 實(shí)驗(yàn)2.3靜態(tài)默認(rèn)路 實(shí)驗(yàn)2.4選擇靜態(tài)路 實(shí)驗(yàn)2.5浮動(dòng)靜態(tài)路 實(shí)驗(yàn)2.6用靜態(tài)路由實(shí)現(xiàn)負(fù)載均 實(shí)驗(yàn)第三部分:RIP路由協(xié) 實(shí)驗(yàn)3.1:RIP版本 實(shí)驗(yàn)3.2:RIP版本 實(shí)驗(yàn)3.3:RIP版本1與版本2兼 實(shí)驗(yàn)3.5:RIPV2單播更 實(shí)驗(yàn)3.6:RIPV2自動(dòng)匯 實(shí)驗(yàn)3.7:RIPV2手動(dòng)匯 實(shí)驗(yàn)3.9:RIPV2明文認(rèn) 實(shí)驗(yàn)3.10:RIPV2MD5認(rèn) 實(shí)驗(yàn)3.11:RIP過(guò)濾路 實(shí)驗(yàn)4.1EIGRP基礎(chǔ)配 實(shí)驗(yàn)第五部分:OSPF基本配 實(shí)驗(yàn)5.1OSPF基本配 實(shí)驗(yàn) VLAN的劃 實(shí)驗(yàn) VLAN間路 實(shí)驗(yàn)6.3生成 實(shí)驗(yàn)第七部分 實(shí)驗(yàn)7.1靜態(tài) 實(shí)驗(yàn)7.2動(dòng)態(tài) 實(shí)驗(yàn)7.3復(fù)用內(nèi)部全局地址的 實(shí)驗(yàn)第八部分:PPP與 實(shí)驗(yàn)8.1HDLC與PPP的封 實(shí)驗(yàn)8.2PPP的PAP認(rèn) 實(shí)驗(yàn)8.3PPP的CHAP認(rèn) 實(shí)驗(yàn)9.1:把一臺(tái)Cisco路由器配置為幀中繼交換 實(shí)驗(yàn) 實(shí)驗(yàn)10.1標(biāo)準(zhǔn) 實(shí)驗(yàn)10.2擴(kuò)展控制列 實(shí)驗(yàn)10.3命名控制列 此實(shí)驗(yàn)手冊(cè)為測(cè)試版,難免有出錯(cuò)和不妥的地方,敬請(qǐng)諒解。如果你在做實(shí)驗(yàn)的過(guò)程中有發(fā)現(xiàn)任何錯(cuò)誤,或者你有任何建議。請(qǐng)你記錄下來(lái),我會(huì)視情況做出改正,并且為你署名。謝謝!此實(shí)驗(yàn)手冊(cè)由YESLAB。(此實(shí)驗(yàn)手冊(cè)最終會(huì)成書(shū),想如果你能夠署名,嘿嘿)Yeslab-LearningondemandRS&ISPQQGroup: :010:實(shí)驗(yàn)第一部分路由器的基本配置實(shí)驗(yàn)1.1認(rèn)識(shí)路由器幾種配置模式拓Router#configureterminalPAGEPAGE45:退出到模式說(shuō)明 配置實(shí)例Enterconfigurationcommands,oneperline.EndwithCNTL/Z.*Mar100:33:34.023:%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleYeslabcon0isnowPressRETURNtogetPAGEPAGE6實(shí)驗(yàn)1.2為路由器配置一個(gè)時(shí)實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步先進(jìn)入路由器的模式Y(jié)eslab#clockset10:10:1031julYeslab#showclock配置實(shí)Yeslab#clockset10:10:1031jul2011Jul3102:10:10.000:%SYS-6-CLOCKUPDATE:Systemclockhasbeenupdatedfrom18:14:11BeiJingSunJul312011to10:10:10BeiJingSunJul312011,configuredfromconsolebyconsole.Yeslab(config)#clocktimezoneBeiJing+8Jul3102:10:40.707:%SYS-6-CLOCKUPDATE:Systemclockhasbeenupdatedfrom10:10:40BeiJingSunJul312011to10:10:40BeiJingSunJul312011,configuredfromconsolebyconsole.10:25:42.135BeiJingSunJul311.3實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步Y(jié)eslab(config-line)#exec-timeout30301.4實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步Y(jié)eslab(config)#enablesecretYeslab(config)#lineconsole0Yeslab(config)#linevty04 NET上的用戶設(shè)置一個(gè)Yeslab(config)#lineaux01.5DNS實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步Y(jié)eslab(config)#noip//以上是關(guān)閉路由器命令解析功能,默認(rèn)情況下,當(dāng)你輸入一條CiscoIOS軟件無(wú)法識(shí)別 1.6實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步Y(jié)eslab(config)#bannermotd#IfyouarenotYESLABstudents,exitlanding.OtherwisetheconsequencesYeslab(config)#interfaceethernet0/1Yeslab(config)#descriptionThisistheRSlabaccessBuildingCurrentconfiguration:113bytesinterfaceEthernet0/1descriptionThisistheRSlabaccessYESLABnoipaddress1.7實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步Y(jié)eslab(config)#aliasexecopenshowip//以上是為查看路由信息令(showiproute)配置了一個(gè)更簡(jiǎn)單的別名(open)Codes:C-connected,S-static,R-RIP,M-mobile,B-D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticrouteo-ODR,P-periodicdownloadedstaticrouteGatewayoflastresortisnot1.8實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步進(jìn)入模式下Erasingthenvramfilesystemwillremoveallconfigurationfiles!Continue?[confirm]Eraseofnvram:complete1.9實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步Y(jié)eslab(config)#interfaceethernet0/1Yeslab#showipDefaultgatewayis實(shí)驗(yàn)?zāi)?:開(kāi)啟和關(guān)閉實(shí)驗(yàn)拓實(shí)驗(yàn)步首先修改三個(gè)路由器的名字如拓?fù)渌荆篟1R2R1(config-if)#noshutdown然后在R2R2(config-if)#noshutdownR2(config-if)#noR3(config-if)#noshutdown在R2上 R2#showcdpCapabilityCodes:R-Router,T-TransBridge,B-SourceRouteS-Switch,H-Host,I-IGMP,r-Device CapabilityPlatformPort Eth RS Eth Eth RS EthR2#showcdpneighborsDeviceID:R3Platform:Cisco3640,Capabilities:RouterSwitchIGMPInterface:Ethernet0/1,PortID(outgoingport):Ethernet0/0Holdtime:148secCiscoIOSSoftware,3600Software(C3640-JK9O3S-M),Version12.4(10a),RELEASESOFTWARE(fc2)TechnicalSupport:ht Copyright(c)1986-2006byCiscoSystems,Inc.CompiledWed11-Oct-0620:52byprod_rel_teamadvertisementversion:2VTPManagement:Duplex:DeviceID:R1Platform:Cisco3640,Capabilities:RouterSwitchIGMPInterface:Ethernet0/0,PortID(outgoingport):Ethernet0/1Holdtime:147secCiscoIOSSoftware,3600Software(C3640-JK9O3S-M),Version12.4(10a),RELEASESOFTWARE(fc2)TechnicalSupport:ht Copyright(c)1986-2006byCiscoSystems,Inc.CompiledWed11-Oct-0620:52byprod_rel_teamadvertisementversion:2VTPManagement:''Duplex:halfR2(config)#nocdprun%CDPisnot如果想再啟用的話再打下面令R2(config)#cdpR2(config-if)#nocdpenableR2(config-if)#cdp1.11實(shí)險(xiǎn)目實(shí)驗(yàn)拓實(shí)驗(yàn)步R1(config)#R1(config)#interfaceethernetR1(config-if)#ipaddressR1(config-if)#noshutdownR2(config)#interfaceethernetR2(config-if)#ipaddressR2(config-if)#noshutdown回到R1上去R2的直連接口地址R1#TypeescapesequencetoSending5,100-byteICMPEchosto,timeoutis2Successrateis80percent(4/5),round-tripmin/avg/max=32/43/60ms是不能夠去管理一臺(tái)路由器的。R2(config)#enablepasswordyeslabR2(config)#linevty04R1#netUserAccess//以上表示R1己經(jīng)成 net上R2了,這時(shí)再輸出剛才配的R2R2#show *0con 130vty 00:00:11 Peer回到R1R1#同時(shí)接下<Ctrl+Shift+6>,然后全部放開(kāi),再按下R1#showConn ByteIdleConn*1 0R1#R2#clearlinevty1.12Hostname實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步R1(config)#iphostyeslabR1R1netUserAccessVerification//以上表示可以直 實(shí)驗(yàn)第二部分靜態(tài)路由2.1實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步R1(config)#interfaceethernet0/1R1(config)#interfaceethernet0/1R1(config-if)#noshutdownR1(config-if)#ipaddressR2(config-if)#noshutdownR2(config-if)#ipaddressR2(config-if)#noshutdownR3(config-if)#noshutdownR3(config-if)#ipaddressR2#TypeescapesequencetoSending5,100-byteICMPEchosto,timeoutis2Successrateis100percent(5/5),round-tripmin/avg/max=28/46/80R2#TypeescapesequencetoSending5,100-byteICMPEchosto,timeoutis2Successrateis80percent(4/5),round-tripmin/avg/max=48/61/76R1(config)#iprouteR1#TypeescapesequencetoSending5,100-byteICMPEchosto,timeoutis2Successrateis100percent(5/5),round-tripmin/avg/max=32/47/76R1(config)#iprouteR2(config)#iprouteR3(config)#iprouteR1#TypeescapesequencetoSending5,100-byteICMPEchosto,timeoutis2Successrateis100percent(5/5),round-tripmin/avg/max=80/108/144//以上表示R1順利通R3了 R2(config)#iproute//這樣R2就能通R1了,因?yàn)閯偛乓呀?jīng)配了通往R3的路由,所以R2上不用再配了R3(config)#iprouteR3(config)#iprouteR1(config)#iproute在排錯(cuò)的時(shí)候,我們可以去查看本地的路由表,如在R1R1#showipCodes:C-connected,S-static,R-RIP,M-mobile,B-D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticrouteo-ODR,P-periodicdownloadedstaticrouteGatewayoflastresortisnot/24issubnetted,1subnets [1/0]via/24issubnetted,1subnets [1/0]via/24issubnetted,1subnets [1/0]via/24issubnetted,1 isdirectlyconnected,Loopback0/24issubnetted,1subnets isdirectlyconnected,2.2實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步R2(config-if)#ipaddressR2#showip/24issubnetted,1 isdirectlyconnected,Ethernet0//24issubnetted,4subnets isdirectlyconnected,Loopback3 isdirectlyconnected,Loopback1 isdirectlyconnected,Loopback0 isdirectlyconnected,Loopback/24issubnetted,1 isdirectlyconnected,R1R1(config)#iprouteR3R3(config)#iproute2.3實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步先去掉我們剛才做好的匯總靜態(tài)路由,然后我們用一條默認(rèn)路由來(lái)代替它。靜態(tài)默認(rèn)路由是由在R1上,先去掉剛才配置的匯總靜態(tài):R1(config)#noiproute在R3上也去掉R3(config)#noiprouteR1(config)#iprouteR3(config)#iprouteR1#showip/24issubnetted,1 isdirectlyconnected,/24issubnetted,1 isdirectlyconnected,Ethernet0/1 /0[1/0]via2.4實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步R1(config)#interfacefastEthernet0/0R1(config-if)#noshutdownR1(config)#interfacefastEthernet0/0R1(config-if)#noshutdownR1(config-if)#noshutdownR2R2(config)#interfacefastEthernet0/0R2(config-if)#ipaddressR2(config-if)#ipaddressR2(config-if)#noshutdownR3R3(config)#interfacefastEthernet0/0R3(config-if)#noshutdownR3(config-if)#noshutdownR3(config-if)#ipaddressR3(config-if)#ipaddressR3(config-if)#ipaddressR3(config-if)#ipaddress在R1上:R1(config)#iprouteR2R2(config)#iprouteR3(config)#iprouteR1Typeescapesequencetoabort.Tracingtherouteto36msec72msec3288msec*80這里我們想針對(duì)這個(gè)IP地址讓他走下面這條路,但是去,,等地R1R1(config)#iproute55R1#showip/8isvariablysubnetted,2subnets,2masks /32[1/0]via /24[1/0]via/24issubnetted,1 isdirectlyconnected,FastEthernet0/0/24issubnetted,1subnets isdirectlyconnected,這一條而不會(huì)再選擇剛才的/24這條路由,原因是因?yàn)樽铋L(zhǎng)匹配的原則。Typeescapesequencetoabort.Tracingtherouteto68msec*44Typeescapesequencetoabort.Tracingtherouteto84msec68msec4040msec*802.5實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步R1#showip/8isvariablysubnetted,2subnets,2masks /32[1/0]via /24[1/0]via/24issubnetted,1 isdirectlyconnected,FastEthernet0/0/24issubnetted,1subnets isdirectlyconnected,R1R1(config)#iprouteR1#showip/8isvariablysubnetted,2subnets,2masks /32[1/0]via /24[1/0]via/24issubnetted,1 isdirectlyconnected,FastEthernet0/0/24issubnetted,1subnets isdirectlyconnected,R1#showip/8isvariablysubnetted,2subnets,2masks /32[1/0]via /24[10/0]via/24issubnetted,1 isdirectlyconnected,2.6實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步步驟1:先配置好R1,R2,R3IP地址,保證直連通。R1(config)#interfacefastEthernet0/0R1(config-if)#ipaddressR1(config-if)#noshutdownR1(config)#interfacefastEthernet1/0R1(config-if)#ipaddressR1(config-if)#noshutdownR2(config)#interfacefastEthernet0/0R2(config-if)#ipaddressR2(config-if)#noshutdownR2(config)#interfacefastEthernet1/0R2(config-if)#ipaddressR2(config-if)#noR3(config)#interfacefastEthernet0/0R3(config-if)#ipaddressR3(config)#interfacefastEthernetR3(config-if)#ipaddressR3(config-if)#noshutdownR1#TypeR1#TypeescapesequencetoSending5,100-byteICMPEchosto,timeoutis2Successrateis80percent(4/5),round-tripmin/avg/max=4/33/96 TypeescapesequencetoSending5,100-byteICMPEchosto,timeoutis2Successrateis80percent(4/5),round-tripmin/avg/max=8/37/68R2#TypeescapesequencetoSending5,100-byteICMPEchosto,timeoutis2Successrateis80percent(4/5),round-tripmin/avg/max=4/33/64R2#showiproute/24R2#showiproute/24issubnetted,1subnets [1/0]via[1/0]viaR2(config)#iprouteR2(config)#iprouteR1(config)#iproute我們?nèi)2上去R1的地址觀察負(fù)載均衡,R2#debugipR2(config)#noipcefR2#TypeescapesequencetoSending5,100-byteICMPEchosto,timeoutis2Successrateis100percent(5/5),round-tripmin/avg/max=8/42/92ms*Mar100:20:00.779:ICMP:echoreplyrcvd,src,dst*Mar100:20:00.831:ICMP:echoreplyrcvd,src,dst*Mar100:20:00.843:ICMP:echoreplyrcvd,src,dst*Mar100:20:00.895:ICMP:echoreplyrcvd,src,dst*Mar100:20:00.903:ICMP:echoreplyrcvd,src,dst實(shí)驗(yàn)第三部分 路由協(xié)路由信息協(xié)議)是使用最廣泛的距離向量路由協(xié)議。RIPRIPRIP是由Xerox在70年發(fā)的,最初定義在RFC1058中。RIP用兩種數(shù)據(jù)包傳輸更新:更新和請(qǐng)求,每個(gè)有RIP30UDP520的網(wǎng)絡(luò)鄰居廣播(RIPv1)或組播(RIPv2)路由更新。因此路由器不知道網(wǎng)絡(luò)的全局情況,RIP采用水平分割、毒性逆轉(zhuǎn)、定義最大跳數(shù)、閃式更新、抑制計(jì)時(shí)5個(gè)機(jī)制來(lái)避免路由環(huán)RIP12。不論是版本12,使用跳數(shù)(HopCount)默認(rèn)路由更新周期為30管理距離(AD)為最大跳數(shù)為15支持等價(jià)路徑,默認(rèn)46而RIPv1和RIPv2的區(qū)別如表不支持VLSM和支持VLSM和實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步R1(config)#interfacefastEthernet0/0R1(config-if)#noshutdownR1(config)#interfacefastEthernet0/0R1(config-if)#noshutdownR1(config-if)#ipaddressR2上R2(config)#interfacefastEthernet1/0R2(config)#interfacefastEthernet1/0R2(config-if)#noshutdownR2(config-if)#ipaddressR3R3(config)#interfacefastEthernet0/0R3(config-if)#noshutdownR3(config-if)#ipaddressR1//以上是讓RIP運(yùn)行版本1。//以上是第二步loopback0進(jìn)入RIP進(jìn)程,在RIP里都是用主類的方法//以上是fastEthernet0/0進(jìn)入RIP進(jìn)程R2R2(config)#routerripR3R3(config)#routerripR1#showip /8[120/2]via,00:00:01, /8[120/1]via,00:00:21,FastEthernet0/0 /8[120/1]via,00:00:21,/24issubnetted,1 isdirectlyconnected,Loopback0/24issubnetted,1subnets isdirectlyconnected,類的路由。由于版本1根本不會(huì)用到,所以相關(guān)的實(shí)驗(yàn)會(huì)比較少。實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步3.1RIP1RIPR1R1(config)#routerripR1(config-router)#noauto-summary//RIP的自動(dòng)匯總功能,RIP協(xié)議默認(rèn)是自匯總的,如果不關(guān)閉的話,RIPR2R2(config)#routerripR3R3(config)#routerripR1#showip [120/2]via,00:00:01,/24issubnetted,1 [120/1]via,00:00:01,/24issubnetted,1 [120/1]via,00:00:01,/24issubnetted,1 isdirectlyconnected,Loopback0/24issubnetted,1subnets isdirectlyconnected,//RIP收斂比較慢,可能我們開(kāi)始會(huì)看到/8位的路由,這時(shí)我們可以用命令:cleariproute*實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步R3R3(config)#routerripR3#showip/24issubnetted,1 isdirectlyconnected,Loopback0/24issubnetted,1subnets isdirectlyconnected,R2#showip/24issubnetted,1 isdirectlyconnected,FastEthernet1/0/24issubnetted,1subnets isdirectlyconnected,Loopback0/24issubnetted,1subnets [120/1]via,00:00:06,/24issubnetted,1 isdirectlyconnected,R2R2(config-if)#ipripsendversion1R2(config-if)#ipripreceiveversion11R22R31的兼容。R2#showip /8[120/1]via,00:00:00,/24issubnetted,1 isdirectlyconnected,FastEthernet1/0/24issubnetted,1subnets isdirectlyconnected,Loopback0/24issubnetted,1subnets [120/1]via,00:00:22,/24issubnetted,1 isdirectlyconnected,R3R3#showip/24issubnetted,1 isdirectlyconnected,Loopback0/24issubnetted,1subnets isdirectlyconnected,R/8[120/1]via,00:00:01,FastEthernet0/0R/8[120/2]via,00:00:01,FastEthernet0/0R/8[120/1]via,00:00:01,FastEthernet0/0可恢復(fù)我們?cè)诒緦?shí)驗(yàn)做的改變,把R3再成RIP版本2,接著做下面的實(shí)驗(yàn)。實(shí)驗(yàn)3.4:在接口運(yùn)行實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步根據(jù)圖保證直連的連通性R1(config)#routerripR1(config)#routerripR2R2(config)#routerripR3R3(config)#routerripR1R1#showip/24issubnetted,1 [120/2]via,00:00:05,/24issubnetted,1 [120/1]via,00:00:05,/24issubnetted,1 [120/1]via,00:00:05,/24issubnetted,1 isdirectlyconnected,Loopback0/24issubnetted,1subnets isdirectlyconnected,R2#cleariprouteR2#showip/24issubnetted,1 [120/1]via,00:00:02,/24issubnetted,1 isdirectlyconnected,FastEthernet1/0/24issubnetted,1subnets isdirectlyconnected,Loopback0/24issubnetted,1subnets isdirectlyconnected,R1#showiproute/24issubnetted,1 [120/2]via,00:00:00,/24issubnetted,1 [120/1]via,00:00:00,/24issubnetted,1 [120/1]via,00:00:00,/24issubnetted,1 isdirectlyconnected,Loopback0/24issubnetted,1subnets isdirectlyconnected,的區(qū)別,EIGRPOSPF都是不發(fā)也不會(huì)收各自的報(bào)文。實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步R1R1#showiproute/24issubnetted,1 isdirectlyconnected,Loopback0/24issubnetted,1subnets isdirectlyconnected,R1R2R1#showip/24issubnetted,1 [120/2]via,00:00:01,/24issubnetted,1 [120/1]via,00:00:01,/24issubnetted,1 [120/1]via,00:00:01,/24issubnetted,1 isdirectlyconnected,Loopback0/24issubnetted,1subnets isdirectlyconnected,實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步R1(config)#interfacefastEthernet0/0R1(config-if)#noshutdownR1(config)#interfacefastEthernet0/0R1(config-if)#noshutdownR1(config-if)#ipaddressR2R2(config)#interfacefastEthernet0/0R2(config-if)#noshutdownR2(config-if)#noshutdownR3R3(config)#interfacefastEthernet0/0R3(config-if)#noshutdownR3(config-if)#ipaddressR1上R1(config)#routerripR2R2(config)#routerripR3R3(config)#routerripR1R1#showiproute /8[120/1]via,00:00:18,R2#showiproute/24issubnetted,3 [120/1]via,00:00:11,FastEthernet1/0 /8[120/1]via,00:00:02,FastEthernet0/0R3#showiproute/24issubnetted,3 [120/1]via,00:00:05,FastEthernet0/0 /8[120/2]via,00:00:05,FastEthernet0/0 /8[120/1]via,00:00:05,FastEthernet0/0我們先關(guān)閉RIP的自動(dòng)匯總再接著完成以下的實(shí)驗(yàn)。實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步R2R3R1#showiproute/24issubnetted,3 [120/1]via,00:00:00, [120/1]via,00:00:00, [120/2]via,00:00:00,R2R2(config-if)#ipsummary-addressripR1#cleariproute*/16issubnetted,1 [120/1]via,00:00:02,實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步R1(config)#interfacefastEthernet0/0R1(config-if)#noshutdownR1(config)#interfaceloopback0R1(config-if)#ipaddressR1(config)#interfacefastEthernet0/0R1(config-if)#noshutdownR1(config)#interfaceloopback0R1(config-if)#ipaddressR2R2(config)#interfacefastEthernet0/0R2(config-if)#noshutdownR2(config)#interfacefastEthernet1/0R2(config-if)#ipaddressR3R3(config)#interfacefastEthernet0/0R3(config-if)#noshutdownR3(config)#interfaceloopback0R3(config-if)#ipaddressR1(config)#routerripR1(config)#routerripR2R2(config)#routerripR3R3(config)#routerripR3R1R2查看路由表是否學(xué)習(xí)到了此路由,這里只顯示R1的查看結(jié)果。R1R1#showiproute/24issubnetted,1 [120/2]via,00:00:09,/24issubnetted,1 [120/1]via,00:00:09, /0[120/2]via,00:00:09,R3(config-if)#ipaddressR3(config-if)#ipaddressR1#cleariproute* [120/2]via,00:00:03, [120/1]via,00:00:03, R3(config)#interfaceloopback1③用的方式產(chǎn)生R3(config)#iproutenullR3(config)#routerripR3(config)#iproutenullR3(config)#routerripR1R1#cleariproute*/24issubnetted,1 [120/2]via,00:00:01,/24issubnetted,1 [120/1]via,00:00:01, /0[120/2]via,00:00:01,都進(jìn)RIP進(jìn)程里。R1#showiproute/24issubnetted,1 [120/2]via,00:00:04,/24issubnetted,1 [120/1]via,00:00:04, /0[120/2]via,00:00:03,實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步R1(config)#interfacefastEthernet0/0R1(config-if)#noshutdownR1(config)#interfacefastEthernet0/0R1(config-if)#noshutdownR1(config-if)#ipaddressR2R2(config)#interfacefastEthernet0/0R2(config-if)#noshutdownR2(config)#interfacefastEthernet1/0R2(config-if)#noshutdownR3R3(config)#interfacefastEthernet0/0R3(config-if)#noshutdownR3(config-if)#ipaddressR1R1(config)#routerripR2R2(config)#routerripR3R3(config)#routerripR1R1#showiproute/24issubnetted,1 [120/2]via,00:00:02,/24issubnetted,1 [120/1]via,00:00:02,/24issubnetted,1 [120/1]via,00:00:02, R1#confterminalR1(config-if)#ipripauthenticationmodeR1(config-if)#ipripauthenticationkey-chain//調(diào)用我們剛才配置的鏈R1#cleariproute*R1#showiproute//KEYIDR1R2#configureterminalR2(config-if)#ipripauthenticationmodeR2(config-if)#ipripauthenticationkey-chainR1#cleariproute*/24issubnetted,1 [120/2]via,00:00:03,/24issubnetted,1 [120/1]via,00:00:03,/24issubnetted,1 [120/1]via,00:00:03,實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步請(qǐng)確保RIPV2己經(jīng)正常工作。R2R2(config-keychain)#key1R2#configureterminalR2(config)#interfacefastEthernet1/0R2(config-if)#ipripauthenticationmodeR2(config-if)#ipripauthenticationkey-chainR3R3(config-keychain)#key1//此處的KID最好保持一致。R3#configureterminalR3(config)#interfacefastEthernet0/0R3(config-if)#ipripauthenticationmodeR3(config-if)#ipripauthenticationkey-chainR3#showiproute/24issubnetted,1 [120/1]via,00:00:26,/24issubnetted,1 [120/2]via,00:00:26,/24issubnetted,1 [120/1]via,00:00:26,實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步R3#showiproute/24R3#showiproute/24issubnetted,1 [120/1]via,00:00:15,/24issubnetted,1 [120/2]via,00:00:15,/24issubnetted,1 [120/1]via,00:00:15,R3上R3#cleariproute*/24issubnetted,1 [120/1]via,00:00:03,/24issubnetted,1 [120/1]via,00:00:03,實(shí)驗(yàn)第四部分:EIGRP(EnhancedInteriorGatewayRoutingProtocol,增強(qiáng)型內(nèi)部網(wǎng)關(guān)路由協(xié)議)是CiscoEIGRP概EIGRP通過(guò)發(fā)送和接收o包來(lái)建立和維持鄰居關(guān)系,并交換路由信息EIGRP的管理距離為90或(VLSM),支持IP、IPX、AppleTalk對(duì)每一種網(wǎng)絡(luò)協(xié)議,EIGRPEIGRPDiffusingUpdate(DUAL)無(wú)縫連接數(shù)據(jù)鏈路層協(xié)議和拓?fù)浣Y(jié)構(gòu),EIGRPOSI24.1EIGRP實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)。要想嘗試的EIGRP實(shí)驗(yàn),請(qǐng)參考即將與你見(jiàn)面的CCNP。嘿嘿實(shí)驗(yàn)拓 進(jìn)一條路由。這與RIP是一樣的 R2R2(config-router)#noauto-summaryR3R3(config-router)#noauto-summary在R1上:R1#showiproute/24issubnetted,1 [90/158720]via,00:01:09,/24issubnetted,1 [90/30720]via,00:12:40,/24issubnetted,1 [90/156160]via,00:12:44,R2R2#showiproute/24issubnetted,1 [90/156160]via,00:03:39,/24issubnetted,1 [90/156160]via,00:15:21,R3R3#showR3#showiproute/24issubnetted,1 [90/156160]via,00:03:57,/24issubnetted,1 [90/158720]via,00:03:57,/24issubnetted,1 [90/30720]via,00:03:57,進(jìn)EIGRP。這根據(jù)我們的工程需要,沒(méi)有必須。實(shí)驗(yàn)第五部分:OSPF基本配OSPF(OpenShortestPathFirst,開(kāi)放最短鏈路優(yōu)先)路由協(xié)議是典型的鏈路狀態(tài)路由協(xié)議。OSPFIETF20世紀(jì)80OSPFSPFOSPFRFC1131OSPF本1,但是版本1很快被進(jìn)行了重大改進(jìn)的版本所代替,這個(gè)新版本體現(xiàn)在RFC1247文檔中。RFC1247被稱為OSPF版本2,是為了明確其在穩(wěn)定性和功能性方面的實(shí)質(zhì)性改進(jìn)。這個(gè)OSPF版本有許多更新文檔,每一個(gè)更新都是對(duì)開(kāi)放標(biāo)準(zhǔn)的精心改進(jìn)。接下來(lái)的一些規(guī)范出現(xiàn)在RFC1583和2328中。OSPF版本2的版體現(xiàn)在RFC2328中。而OSPF版本3是關(guān)于IPv6的。OSPF的內(nèi)容多而復(fù)雜,所以本書(shū)分了多個(gè)章節(jié)來(lái)介紹。本章只討論單區(qū)域的OSPF。OSPF換路由信息。OSPF的特性如下:支持VLSM支持簡(jiǎn)單口令和MD5OSPFOSPFcost點(diǎn)到多點(diǎn)型(Point-to-MultiPoint)。不同的二層鏈路的類型需要OSPF不同的網(wǎng)絡(luò)類型來(lái)適應(yīng)。先算法(SPF)是Dijkstra發(fā)明的。OSPF路由器利用SPF,獨(dú)立地計(jì)算出到達(dá)任意目的地的最佳路由。實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓實(shí)驗(yàn)步//這里是手動(dòng)配置一個(gè)OSPF的router-ID. R2R3R2#showipospfNeighbor Dead R2#showiproute/32issubnetted,1 [110/2]via,00:04:33,/32issubnetted,1 [110/2]via,00:04:33,//以上表示路由也學(xué)到了。R1,R3實(shí)驗(yàn)第六部分:交換機(jī)基礎(chǔ)配置IOS的基本使用方法是一樣的。本章將簡(jiǎn)單介紹交換機(jī)的一些基本配置,以及交換機(jī)獨(dú)特的恢復(fù)、IOS恢復(fù)步驟。關(guān)于VLAN、Trunk等將在后面章節(jié)介紹。交換機(jī)是第二層的設(shè)備,可以域。交換機(jī)是基于收到的數(shù)據(jù)幀中的源MAC地址和目的MAC地址來(lái)進(jìn)行工作。交換機(jī)的作用主要有這么兩個(gè):一個(gè)是CAM(ContextAddressMemory)表,該表是MACCAMCAMr(Filter的端口,交換機(jī)將把幀從源端口以外的其他所有端口上發(fā)送出去,這稱為泛洪(Flood),當(dāng)交換機(jī)接收到的是幀是廣播幀或者多播幀,交換機(jī)也會(huì)泛洪幀。(1)轉(zhuǎn)發(fā)(Store-and-轉(zhuǎn)發(fā)方式是先后轉(zhuǎn)發(fā)的方式。它把從端口輸入的數(shù)據(jù)幀先全部接收并起來(lái);然后進(jìn)行直接轉(zhuǎn)發(fā)(Cut-無(wú)碎片(Fragment-度比直接轉(zhuǎn)發(fā)方式慢,但比轉(zhuǎn)發(fā)方式快許多。實(shí)驗(yàn) VLAN的劃實(shí)驗(yàn)?zāi)繉?shí)驗(yàn)拓?fù)鋵?shí)驗(yàn)步步驟1:在SW1上創(chuàng)建VLANSW1#vlanSW1#vlan SW1(vlan)#vlanVLAN2added:sw1(vlan)#vlanVLAN3Name:APPLYAPPLY【提示】交換機(jī)中的VLANflash:vlan.dat,果要完全清除交換機(jī)的配置,除了使用“erasestarting-config”還要使用flash:vlan.dat”命令把VLAN【提示】新的IOSVLAN,SW1(config)#vlanSW1(config-vlan)#nameSW1(config-SW1(config)#vlanSW1(config-vlan)#nameR1(config-if)#interfacefastEthernet0/0R1(config-if)#ipaddressr1(config-if)#noshutdownSW1(config)#interfacefastEthernet0/1SW1(config-if)#switchportmodeaccessSW1(config-if)#switchportaccessvlanSW1(config-if)#interfacefastEthernet0/2SW1(config-if)#switchportmodeaccessSW1(config-if)#switchportaccessvlan3R2(config-if)#interfacefastEthernet0/0R2(config-if)#ipaddressR2(config-if)#noshutdown查看vlan信息。1Fa0/0,Fa0/3,Fa0/4,Fa0/6,Fa0/7,Fa0/8,Fa0/10,Fa0/11,Fa0/12,Fa0/14,231002fddi-1003token-ring-SW1#showvlan-switch交換機(jī)3550或者交換機(jī)3560上,采用 令showvlanbriefVLAN 處于不同VLAN的計(jì)算機(jī)即使它們是在同一交換機(jī)上,它們之間的通信也必須使用路由器??梢栽诿總€(gè)VLAN上都有一個(gè)以太網(wǎng)口和路由器連接。采用這種方法,如果要實(shí)現(xiàn)N個(gè)VLAN間的通信,則路由器需要N個(gè)以太網(wǎng)接口,同時(shí)交換機(jī)的這個(gè)接口設(shè)置為T(mén)runk接口。在路由器上創(chuàng)建多個(gè)子接口,每個(gè)子接口封裝在不同的VLAN,子接口是路由器發(fā)送的數(shù)據(jù)幀后,通過(guò)Trunk接口發(fā)送數(shù)據(jù)給路由器,由于該鏈路是Trunk鏈路,數(shù)據(jù)幀中帶有VLAN10的,該數(shù)據(jù)上的計(jì)算機(jī)PC2,從而實(shí)現(xiàn)了VLAN間的通信。實(shí)驗(yàn)?zāi)空莆誸runk的配置實(shí)驗(yàn)拓實(shí)驗(yàn)步先在路由器R1上先在路由器R1上router(config)#hostnameR1R1(config-if)#noipaddressR1(config-if)#noshutdownR1(config-if)#exitR1(config-if)#encapsulationdot1Q//dot1qtrunk的封裝類型統(tǒng)一。并指明該子接口承載vlan10的流量。R1(config-if)#ipaddressR1(config)#interfaceethernet0/0.20R1(config-if)#encapsulationdot1Q20R1(config-if)#ipaddress先配置交換機(jī)與路由器之前的trunk才能同時(shí)通過(guò)VLAN10和VLAN20的流量SW1(config)#interfacefastEthernetSW1(config-if)#switchporttrunkencapsulationSW1(config-if)#switchportSW1(config-if)#switchportmode然后配置VLANSW1#vlandatabaseSW1(vlan)#vlan//再把相拓?fù)渲械慕涌趧澣胂鄬?duì)應(yīng)的VLANSW1(config)#interfacefastEthernet0/1SW1(config-if)#switchmodeaccessSW1(config-if)#switchaccessvlan10SW1(config-if)#noshutdownSW1(config-SW1(config)#interfacefastEthernet0/2SW1(config-if)#switchmodeaccessSW1(config-if)#switchaccessvlan20SW1(config-if)#noshutdownSW1(config-Router(config)#hostnamePC1PC1(config)#noiproutingRouter(config)#hostnamePC1PC1(config)#noiproutingPC1(config-if)#ipaddressPC1(config)#ipdefault-gatewayrouter(config)#hostnamePC2PC2(config)#noiproutingrouter(config)#hostnamePC2PC2(config)#noiproutingPC2(config-if)#ipaddressPC2(config)#ipdefault-gatewayTypeTypeescapesequencetoSending5,100-byteICMPEchosto,timeoutis2Successrateis100percent(5/5),round-tripmin/avg/max=4/4/46.3動(dòng)調(diào)整網(wǎng)絡(luò)的數(shù)據(jù)轉(zhuǎn)發(fā)路徑。STP重新收斂時(shí)間較長(zhǎng),通常需要30—50秒,為了減少這個(gè)時(shí)間,引入了一些補(bǔ)充技術(shù),例如uplinkfast、backbonefast等。RSTP則在協(xié)議上對(duì)STP作了改進(jìn),縮短了故障簡(jiǎn)介基本以解決這些問(wèn)題,STP基本思路是阻斷一些冗余的交換機(jī)接口,構(gòu)建一棵沒(méi)有環(huán)路的轉(zhuǎn)發(fā)樹(shù)。STP利用BPDU(BridgeProtocolDataUnit)和其他交換機(jī)進(jìn)行通信,從而確定哪個(gè)交換機(jī)該阻斷哪個(gè)接口。在BPDU中有幾個(gè)關(guān)鍵的字段,例如:根橋ID、路徑代價(jià)、端口ID等。為了在網(wǎng)絡(luò)中形成一個(gè)沒(méi)有環(huán)路的當(dāng)網(wǎng)絡(luò)上有多個(gè)VLAN,PVST(PerVlanSTP)會(huì)為每個(gè)VLANSTP樹(shù)。此時(shí)端口的阻斷基而實(shí)現(xiàn)負(fù)載平衡。缺點(diǎn)是如果VLANCisco實(shí)驗(yàn)?zāi)縯runk實(shí)驗(yàn)拓實(shí)驗(yàn)步先手動(dòng)配置三條鏈路為SW1(config)#interfacerangefastEthernet0/1,fastEthernetSW1(config-if-range)#switchporttrunkencapsulationSW1(config-if-range)#switchportmode切換到sw2上做配置SW2(config)#interfacerangefastEthernet0/2,fastEthernet0/5SW2(config-if-range)#switchporttrunkencapsulationdot1qSW2(config-if-range)#switchportmodetrunk切換到sw3SW3(config)#interfacerangefastEthernet0/1,fastEthernet0/2SW3(config-if-range)#switchporttrunkencapsulationdot1qSW3(config-if-range)#switchportmodetrunkW3(config-if-配置步驟2:增加VLAN2并在三
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 林地全面清理施工方案
- 打磨施工方案
- 新型頂板套管施工方案
- 滑移施工方案
- TSHAEPI 006-2023 源分離水沖式廁所技術(shù)導(dǎo)則
- 2025年度汽車(chē)美容店技師專業(yè)用工合同示范文本
- 二零二五年度戶外廣告牌租賃與廣告效果評(píng)估協(xié)議
- 2025年度林業(yè)砍樹(shù)與生態(tài)保護(hù)基金管理協(xié)議
- 二零二五年度5G通信設(shè)備合作誠(chéng)意金合同
- 2025年度碼頭港口集裝箱拼箱與拆箱服務(wù)合同
- 內(nèi)蒙體育職院《體育傳播學(xué)》教案第1章 傳播與傳播學(xué)
- 戶政知識(shí)技能比武大練兵考試題庫(kù)(完整版)
- 奶牛胚胎移植課件
- 慢性腎衰竭(慢性腎臟病)診療指南(內(nèi)容清晰)
- 瑪莎拉蒂路演執(zhí)行手冊(cè)升級(jí)版
- 《建筑工程資料管理規(guī)程》DB34T918-2019
- 小班數(shù)學(xué)掛燈籠教案反思
- 屈原《國(guó)殤》教學(xué)課件
- 美術(shù)課件:水印版畫(huà)
- GJ型高頻塑料熱合機(jī)電路圖
- LED驅(qū)動(dòng)電源基礎(chǔ)知識(shí)(課堂PPT)
評(píng)論
0/150
提交評(píng)論