yeslab-cisco rsisp ccnaccnp學(xué)習(xí)update1-013.實驗手冊第一部分路由器基本配置_第1頁
yeslab-cisco rsisp ccnaccnp學(xué)習(xí)update1-013.實驗手冊第一部分路由器基本配置_第2頁
yeslab-cisco rsisp ccnaccnp學(xué)習(xí)update1-013.實驗手冊第一部分路由器基本配置_第3頁
yeslab-cisco rsisp ccnaccnp學(xué)習(xí)update1-013.實驗手冊第一部分路由器基本配置_第4頁
yeslab-cisco rsisp ccnaccnp學(xué)習(xí)update1-013.實驗手冊第一部分路由器基本配置_第5頁
已閱讀5頁,還剩102頁未讀 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

PAGEPAGE3YesLabCCNA實驗第一部分路由器的基本配 實驗1.1認識路由器幾種配置模 實驗1.2為路由器配置一個時 實驗1.3設(shè)置路由器超時退出時 實驗1.4為路由器配置實驗1.5關(guān)閉路由器的DNS命令解析功 實驗1.6為路由器配置描述信 實驗1.7配置命令 實驗1.8清空路由 實驗1.9配置一臺 實驗1.10Cisco的 實驗1.11用戶登陸 實驗1.12創(chuàng)建靜態(tài)Hostname表 實驗第二部分靜態(tài)路由實 實驗2.1靜態(tài)路 實驗2.2靜態(tài)匯總路 實驗2.3靜態(tài)默認路 實驗2.4選擇靜態(tài)路 實驗2.5浮動靜態(tài)路 實驗2.6用靜態(tài)路由實現(xiàn)負載均 實驗第三部分:RIP路由協(xié) 實驗3.1:RIP版本 實驗3.2:RIP版本 實驗3.3:RIP版本1與版本2兼 實驗3.5:RIPV2單播更 實驗3.6:RIPV2自動匯 實驗3.7:RIPV2手動匯 實驗3.9:RIPV2明文認 實驗3.10:RIPV2MD5認 實驗3.11:RIP過濾路 實驗4.1EIGRP基礎(chǔ)配 實驗第五部分:OSPF基本配 實驗5.1OSPF基本配 實驗 VLAN的劃 實驗 VLAN間路 實驗6.3生成 實驗第七部分 實驗7.1靜態(tài) 實驗7.2動態(tài) 實驗7.3復(fù)用內(nèi)部全局地址的 實驗第八部分:PPP與 實驗8.1HDLC與PPP的封 實驗8.2PPP的PAP認 實驗8.3PPP的CHAP認 實驗9.1:把一臺Cisco路由器配置為幀中繼交換 實驗 實驗10.1標(biāo)準(zhǔn) 實驗10.2擴展控制列 實驗10.3命名控制列 此實驗手冊為測試版,難免有出錯和不妥的地方,敬請諒解。如果你在做實驗的過程中有發(fā)現(xiàn)任何錯誤,或者你有任何建議。請你記錄下來,我會視情況做出改正,并且為你署名。謝謝!此實驗手冊由YESLAB。(此實驗手冊最終會成書,想如果你能夠署名,嘿嘿)Yeslab-LearningondemandRS&ISPQQGroup: :010:實驗第一部分路由器的基本配置實驗1.1認識路由器幾種配置模式拓Router#configureterminalPAGEPAGE45:退出到模式說明 配置實例Enterconfigurationcommands,oneperline.EndwithCNTL/Z.*Mar100:33:34.023:%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleYeslabcon0isnowPressRETURNtogetPAGEPAGE6實驗1.2為路由器配置一個時實驗?zāi)繉嶒炌貙嶒灢较冗M入路由器的模式Y(jié)eslab#clockset10:10:1031julYeslab#showclock配置實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實驗?zāi)繉嶒炌貙嶒灢結(jié)eslab(config-line)#exec-timeout30301.4實驗?zāi)繉嶒炌貙嶒灢結(jié)eslab(config)#enablesecretYeslab(config)#lineconsole0Yeslab(config)#linevty04 NET上的用戶設(shè)置一個Yeslab(config)#lineaux01.5DNS實驗?zāi)繉嶒炌貙嶒灢結(jié)eslab(config)#noip//以上是關(guān)閉路由器命令解析功能,默認情況下,當(dāng)你輸入一條CiscoIOS軟件無法識別 1.6實驗?zāi)繉嶒炌貙嶒灢結(jié)eslab(config)#bannermotd#IfyouarenotYESLABstudents,exitlanding.OtherwisetheconsequencesYeslab(config)#interfaceethernet0/1Yeslab(config)#descriptionThisistheRSlabaccessBuildingCurrentconfiguration:113bytesinterfaceEthernet0/1descriptionThisistheRSlabaccessYESLABnoipaddress1.7實驗?zāi)繉嶒炌貙嶒灢結(jié)eslab(config)#aliasexecopenshowip//以上是為查看路由信息令(showiproute)配置了一個更簡單的別名(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實驗?zāi)繉嶒炌貙嶒灢竭M入模式下Erasingthenvramfilesystemwillremoveallconfigurationfiles!Continue?[confirm]Eraseofnvram:complete1.9實驗?zāi)繉嶒炌貙嶒灢結(jié)eslab(config)#interfaceethernet0/1Yeslab#showipDefaultgatewayis實驗?zāi)?:開啟和關(guān)閉實驗拓實驗步首先修改三個路由器的名字如拓撲所示:R1R2R1(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實險目實驗拓實驗步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是不能夠去管理一臺路由器的。R2(config)#enablepasswordyeslabR2(config)#linevty04R1#netUserAccess//以上表示R1己經(jīng)成 net上R2了,這時再輸出剛才配的R2R2#show *0con 130vty 00:00:11 Peer回到R1R1#同時接下<Ctrl+Shift+6>,然后全部放開,再按下R1#showConn ByteIdleConn*1 0R1#R2#clearlinevty1.12Hostname實驗?zāi)繉嶒炌貙嶒灢絉1(config)#iphostyeslabR1R1netUserAccessVerification//以上表示可以直 實驗第二部分靜態(tài)路由2.1實驗?zāi)繉嶒炌貙嶒灢絉1(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了,因為剛才已經(jīng)配了通往R3的路由,所以R2上不用再配了R3(config)#iprouteR3(config)#iprouteR1(config)#iproute在排錯的時候,我們可以去查看本地的路由表,如在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實驗?zāi)繉嶒炌貙嶒灢絉2(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實驗?zāi)繉嶒炌貙嶒灢较热サ粑覀儎偛抛龊玫膮R總靜態(tài)路由,然后我們用一條默認路由來代替它。靜態(tài)默認路由是由在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實驗?zāi)繉嶒炌貙嶒灢絉1(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這里我們想針對這個IP地址讓他走下面這條路,但是去,,等地R1R1(config)#iproute55R1#showip/8isvariablysubnetted,2subnets,2masks /32[1/0]via /24[1/0]via/24issubnetted,1 isdirectlyconnected,FastEthernet0/0/24issubnetted,1subnets isdirectlyconnected,這一條而不會再選擇剛才的/24這條路由,原因是因為最長匹配的原則。Typeescapesequencetoabort.Tracingtherouteto68msec*44Typeescapesequencetoabort.Tracingtherouteto84msec68msec4040msec*802.5實驗?zāi)繉嶒炌貙嶒灢絉1#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實驗?zāi)繉嶒炌貙嶒灢讲襟E1:先配置好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的地址觀察負載均衡,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實驗第三部分 路由協(xié)路由信息協(xié)議)是使用最廣泛的距離向量路由協(xié)議。RIPRIPRIP是由Xerox在70年發(fā)的,最初定義在RFC1058中。RIP用兩種數(shù)據(jù)包傳輸更新:更新和請求,每個有RIP30UDP520的網(wǎng)絡(luò)鄰居廣播(RIPv1)或組播(RIPv2)路由更新。因此路由器不知道網(wǎng)絡(luò)的全局情況,RIP采用水平分割、毒性逆轉(zhuǎn)、定義最大跳數(shù)、閃式更新、抑制計時5個機制來避免路由環(huán)RIP12。不論是版本12,使用跳數(shù)(HopCount)默認路由更新周期為30管理距離(AD)為最大跳數(shù)為15支持等價路徑,默認46而RIPv1和RIPv2的區(qū)別如表不支持VLSM和支持VLSM和實驗?zāi)繉嶒炌貙嶒灢絉1(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運行版本1。//以上是第二步loopback0進入RIP進程,在RIP里都是用主類的方法//以上是fastEthernet0/0進入RIP進程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根本不會用到,所以相關(guān)的實驗會比較少。實驗?zāi)繉嶒炌貙嶒灢?.1RIP1RIPR1R1(config)#routerripR1(config-router)#noauto-summary//RIP的自動匯總功能,RIP協(xié)議默認是自匯總的,如果不關(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收斂比較慢,可能我們開始會看到/8位的路由,這時我們可以用命令:cleariproute*實驗?zāi)繉嶒炌貙嶒灢絉3R3(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ù)我們在本實驗做的改變,把R3再成RIP版本2,接著做下面的實驗。實驗3.4:在接口運行實驗?zāi)繉嶒炌貙嶒灢礁鶕?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ā)也不會收各自的報文。實驗?zāi)繉嶒炌貙嶒灢絉1R1#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,實驗?zāi)繉嶒炌貙嶒灢絉1(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的自動匯總再接著完成以下的實驗。實驗?zāi)繉嶒炌貙嶒灢絉2R3R1#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,實驗?zāi)繉嶒炌貙嶒灢絉1(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,都進RIP進程里。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,實驗?zāi)繉嶒炌貙嶒灢絉1(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,實驗?zāi)繉嶒炌貙嶒灢秸埓_保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,實驗?zāi)繉嶒炌貙嶒灢絉3#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,實驗第四部分:EIGRP(EnhancedInteriorGatewayRoutingProtocol,增強型內(nèi)部網(wǎng)關(guān)路由協(xié)議)是CiscoEIGRP概EIGRP通過發(fā)送和接收o包來建立和維持鄰居關(guān)系,并交換路由信息EIGRP的管理距離為90或(VLSM),支持IP、IPX、AppleTalk對每一種網(wǎng)絡(luò)協(xié)議,EIGRPEIGRPDiffusingUpdate(DUAL)無縫連接數(shù)據(jù)鏈路層協(xié)議和拓撲結(jié)構(gòu),EIGRPOSI24.1EIGRP實驗?zāi)繉嶒灐R雵L試的EIGRP實驗,請參考即將與你見面的CCNP。嘿嘿實驗拓 進一條路由。這與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,進EIGRP。這根據(jù)我們的工程需要,沒有必須。實驗第五部分:OSPF基本配OSPF(OpenShortestPathFirst,開放最短鏈路優(yōu)先)路由協(xié)議是典型的鏈路狀態(tài)路由協(xié)議。OSPFIETF20世紀(jì)80OSPFSPFOSPFRFC1131OSPF本1,但是版本1很快被進行了重大改進的版本所代替,這個新版本體現(xiàn)在RFC1247文檔中。RFC1247被稱為OSPF版本2,是為了明確其在穩(wěn)定性和功能性方面的實質(zhì)性改進。這個OSPF版本有許多更新文檔,每一個更新都是對開放標(biāo)準(zhǔn)的精心改進。接下來的一些規(guī)范出現(xiàn)在RFC1583和2328中。OSPF版本2的版體現(xiàn)在RFC2328中。而OSPF版本3是關(guān)于IPv6的。OSPF的內(nèi)容多而復(fù)雜,所以本書分了多個章節(jié)來介紹。本章只討論單區(qū)域的OSPF。OSPF換路由信息。OSPF的特性如下:支持VLSM支持簡單口令和MD5OSPFOSPFcost點到多點型(Point-to-MultiPoint)。不同的二層鏈路的類型需要OSPF不同的網(wǎng)絡(luò)類型來適應(yīng)。先算法(SPF)是Dijkstra發(fā)明的。OSPF路由器利用SPF,獨立地計算出到達任意目的地的最佳路由。實驗?zāi)繉嶒炌貙嶒灢?/這里是手動配置一個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實驗第六部分:交換機基礎(chǔ)配置IOS的基本使用方法是一樣的。本章將簡單介紹交換機的一些基本配置,以及交換機獨特的恢復(fù)、IOS恢復(fù)步驟。關(guān)于VLAN、Trunk等將在后面章節(jié)介紹。交換機是第二層的設(shè)備,可以域。交換機是基于收到的數(shù)據(jù)幀中的源MAC地址和目的MAC地址來進行工作。交換機的作用主要有這么兩個:一個是CAM(ContextAddressMemory)表,該表是MACCAMCAMr(Filter的端口,交換機將把幀從源端口以外的其他所有端口上發(fā)送出去,這稱為泛洪(Flood),當(dāng)交換機接收到的是幀是廣播幀或者多播幀,交換機也會泛洪幀。(1)轉(zhuǎn)發(fā)(Store-and-轉(zhuǎn)發(fā)方式是先后轉(zhuǎn)發(fā)的方式。它把從端口輸入的數(shù)據(jù)幀先全部接收并起來;然后進行直接轉(zhuǎn)發(fā)(Cut-無碎片(Fragment-度比直接轉(zhuǎn)發(fā)方式慢,但比轉(zhuǎn)發(fā)方式快許多。實驗 VLAN的劃實驗?zāi)繉嶒炌負鋵嶒灢讲襟E1:在SW1上創(chuàng)建VLANSW1#vlanSW1#vlan SW1(vlan)#vlanVLAN2added:sw1(vlan)#vlanVLAN3Name:APPLYAPPLY【提示】交換機中的VLANflash:vlan.dat,果要完全清除交換機的配置,除了使用“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交換機3550或者交換機3560上,采用 令showvlanbriefVLAN 處于不同VLAN的計算機即使它們是在同一交換機上,它們之間的通信也必須使用路由器??梢栽诿總€VLAN上都有一個以太網(wǎng)口和路由器連接。采用這種方法,如果要實現(xiàn)N個VLAN間的通信,則路由器需要N個以太網(wǎng)接口,同時交換機的這個接口設(shè)置為Trunk接口。在路由器上創(chuàng)建多個子接口,每個子接口封裝在不同的VLAN,子接口是路由器發(fā)送的數(shù)據(jù)幀后,通過Trunk接口發(fā)送數(shù)據(jù)給路由器,由于該鏈路是Trunk鏈路,數(shù)據(jù)幀中帶有VLAN10的,該數(shù)據(jù)上的計算機PC2,從而實現(xiàn)了VLAN間的通信。實驗?zāi)空莆誸runk的配置實驗拓實驗步先在路由器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先配置交換機與路由器之前的trunk才能同時通過VLAN10和VLAN20的流量SW1(config)#interfacefastEthernetSW1(config-if)#switchporttrunkencapsulationSW1(config-if)#switchportSW1(config-if)#switchportmode然后配置VLANSW1#vlandatabaseSW1(vlan)#vlan//再把相拓撲中的接口劃入相對應(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動調(diào)整網(wǎng)絡(luò)的數(shù)據(jù)轉(zhuǎn)發(fā)路徑。STP重新收斂時間較長,通常需要30—50秒,為了減少這個時間,引入了一些補充技術(shù),例如uplinkfast、backbonefast等。RSTP則在協(xié)議上對STP作了改進,縮短了故障簡介基本以解決這些問題,STP基本思路是阻斷一些冗余的交換機接口,構(gòu)建一棵沒有環(huán)路的轉(zhuǎn)發(fā)樹。STP利用BPDU(BridgeProtocolDataUnit)和其他交換機進行通信,從而確定哪個交換機該阻斷哪個接口。在BPDU中有幾個關(guān)鍵的字段,例如:根橋ID、路徑代價、端口ID等。為了在網(wǎng)絡(luò)中形成一個沒有環(huán)路的當(dāng)網(wǎng)絡(luò)上有多個VLAN,PVST(PerVlanSTP)會為每個VLANSTP樹。此時端口的阻斷基而實現(xiàn)負載平衡。缺點是如果VLANCisco實驗?zāi)縯runk實驗拓實驗步先手動配置三條鏈路為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. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論