網(wǎng)絡(luò)工程ccna實驗chp20路由重分布_第1頁
網(wǎng)絡(luò)工程ccna實驗chp20路由重分布_第2頁
網(wǎng)絡(luò)工程ccna實驗chp20路由重分布_第3頁
網(wǎng)絡(luò)工程ccna實驗chp20路由重分布_第4頁
免費預覽已結(jié)束,剩余7頁可下載查看

下載本文檔

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

文檔簡介

1、20由重分由信息。 在路由選擇協(xié)議之間交換路由信息的過程被稱為路由重分布(Route Redistribution20.1由重分布概20由重分由信息。 在路由選擇協(xié)議之間交換路由信息的過程被稱為路由重分布(Route Redistribution20.1由重分布概度量值(seed 20-1由協(xié)議默認度量20.2 實驗1:RIP、EIGRPOSPF重分1.RIPEIGRP2.默度量0IGP20-1RIP、EIGRPOSPF3.R1(config)#router rip2R1(config-router)#noauto-R1(config-router)#network20-1RIP、EIGRPO

2、SPF3.R1(config)#router rip2R1(config-router)#noauto-R1(config-router)#networkR1(config-router)#redistributeicmetric3R1(config)#iproute0.0.0.00.0.0.0RIPdefault-metric令設(shè)置缺(2)2:R2 R2(config)#router eigrp 1 R2(config-router)#noauto-summaryR2(config-router)#networkR2(config-router)#redistributeripmetric1

3、0001002551/將RIPEIGRPMTUR2(config)#router2R2(config-router)#no auto-summary R2(config-router)#network192.168.12.0R2(config-router)#redistributeeigrp1/將EIGRPRIPR2(config-router)#default-metric在“redistribute”命令中用參數(shù)“metric”指定度量值優(yōu)先于路由模式下在“redistribute”命令中用參數(shù)“metric”指定度量值優(yōu)先于路由模式下用“default-metric”命令設(shè)定的缺省度量

4、值3:R3 R3(config)#router eigrp 1 R3(config-router)#noauto-summaryR3(config-router)#network3.3.3.0R3(config-router)#networkR3(config-router)#redistributeospf1metric10001002551/將OSPFEIGRPR3(config-router)#distanceeigrp90150EIGRP R3(config)#router ospf 1R3(config-router)#router-idR3(config-router)#netwo

5、rk192.168.34.00.0.0.255areaR3(config-router)#redistributeeigrp1metric30metric-type1/將EIGRPOSPFR3(config-router)#default-informationoriginateR4(config)#router ospf 1R4(config-router)#router-idR4(config-router)#network4.4.4.00.0.0.255areaR4(config-router)#network192.168.34.00.0.0.255area4.實驗調(diào)R1#showip

6、Codes: C - connected, S - ic, R - RIP, M - mobile, B - D - EIGRP, EX - EIGRP external, O - OSPF, IA - er N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2 E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-er * - candidate default, U - per-

7、user P - periodic downloaded icic route, o - Gateway of last resort is 0.0.0.0 to network C192.168.12.0/24 is directly connected, 3.0.0.0/24 bnetted, 1 R3.3.3.0120/4via192.168.12.2,00:00:08,4.0.0.0/32 bnetted, 1 4.4.4.4120/4via192.168.12.2,00:00:08,202.96.134.0/24 is directly connected, Serial0/0/1

8、192.168.23.0/24120/4via192.168.12.2,00:00:08,192.168.34.0/24120/4via192.168.12.2,00:00:08,0.0.0.0/0 is directly connected, R2#showipCodes: C - connected, S - ic, R - RIP, M - mobile, B - D - EIGRP, EX - EIGRP external, O - OSPF, IA - er N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2 E1 - OSPF ext

9、ernal type 1, E2 - OSPF external type 2i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-er* - candidate default, U - per-user R2#showipCodes: C - connected, S - ic, R - RIP, M - mobile, B - D - EIGRP, EX - EIGRP external, O - OSPF, IA - er N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

10、E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-er* - candidate default, U - per-user ic route, o - P - periodic downloaded ic Gatewayoflastresortis192.168.12.1tonetworkC192.168.12.0/24 is directly connected, 3.0.0.0/24 bnetted, 1 D3.3.3

11、.090/2297856via192.168.23.3,00:00:21,4.0.0.0/32 bnetted, 1 D C4.4.4.4170/3097600via192.168.23.3,00:00:21,192.168.23.0/24 is directly connected, DEX192.168.34.0/24170/3097600via192.168.23.3,00:00:21,0.0.0.0/0120/3via192.168.12.1,00:00:05,“R*R3分布進來OSPF路由也被路由R2習到,路由代碼為“DEX170路由和外部路由,默認的時候路由的管理距離是R3#sho

12、wipCodes: C - connected, S - ic, R - RIP, M - mobile, B - D - EIGRP, EX - EIGRP external, O - OSPF, IA - er N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2 E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-er * - candidate default, U - p

13、er-user ic route, o - P - periodic downloaded ic Gateway of last resort is 192.168.23.2 to network DEX192.168.12.0/24150/3097600via192.168.23.2,00:13:43,3.0.0.0/24 bnetted, 1 C3.3.3.0 is directly connected, 4.0.0.0/32 bnetted, 1 OC4.4.4.4110/65via192.168.34.4,00:13:43,192.168.23.0/24 is directly con

14、nected, C192.168.34.0/24 is directly connected, D*EX0.0.0.0/0150/3097600via192.168.23.2,00:06:08,“D*EXEIGRP150。R4#showipCodes: C - connected, S - ic, R - RIP, M - mobile, B - D - EIGRP, EX - EIGRP external, O - OSPF, IA - er N1C192.168.34.0/24 is directly connected, D*EX0.0.0.0/0150/3097600via192.16

15、8.23.2,00:06:08,“D*EXEIGRP150。R4#showipCodes: C - connected, S - ic, R - RIP, M - mobile, B - D - EIGRP, EX - EIGRP external, O - OSPF, IA - er N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2 E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia

16、- IS-er* - candidate default, U - per-user ic route, o - P - periodic downloaded ic Gateway of last resort is 192.168.34.3 to network OE1192.168.12.0/24110/94via192.168.34.3,00:25:26,3.0.0.0/24 bnetted, 1 O 3.3.3.0110/94via192.168.34.3,00:25:26,4.0.0.0/24 bnetted, 1 COE1 4.4.4.0 is directly connecte

17、d, 192.168.23.0/24110/94via192.168.34.3,00:25:26,192.168.34.0/24 is directly connected, O*E20.0.0.0/0110/1via192.168.34.3,00:25:26,E1R3O E2”的默認路由。(5)showipR3#showipRoutingProtocol is eigrp 1 運行AS1EIGRPOutgoing update filter list for ing update filter list for is not is not Default networks flagged i

18、n outgoing Default networks accepted ing EIGRP metric weight K1=1, K2=0, K3=1, K4=0, um hopcount um metric variance Redistributing:eigrp1,ospf1ernal,external 1 & 2,nssa-external 1 & /將OSPF1EIGRPEIGRP NSF-aware route hold timer is 240s Automaticnetworksummarizationisnotineffectum path: 4 RoutingforNe

19、tworks:Routing Information :Last ernal90externalRoutingProtocol isospf 1 /運行OSPFOutgoingupdatefilterlistforRouting Information :Last ernal90externalRoutingProtocol isospf 1 /運行OSPFOutgoingupdatefilterlistforall ing update filter list for Router ID is not is not Itisanautonomoussystemboundaryrouter/自

20、治系統(tǒng)邊界路由器(ASBR) Redistributing External Routes from,eigrp1withmetricmappedto30,bnetsin/將EIGRP1OSPFNumber of um path: his router is 1. 1 normal 0 stub 0 Routing for 192.168.34.0 0.0.0.255 area Routing Information :LastUpdate Distance: (default is 20.3驗2:ISISOSPF分1.2.ISISOSPF3.R1(config)#router isisR1(

21、config-router)#netR1(config-router)#is-typelevel-2-erfaceR1(config-if)#ipaddress1.1.1.1R1(config)#router isisR1(config-router)#netR1(config-router)#is-typelevel-2-erfaceR1(config-if)#ipaddress1.1.1.1R1(config-if)#iprouteraddress192.168.12.1routerisis R2(config)#router isisR2(config-router)#net49.000

22、2.2222.2222.2222.00 R2(config-router)#is-type level-2-onlyR2(config-router)#redistributeospf1metric20OSPFIS-ISerfaceR2(config-if)#ipaddress2.2.2.2R2(config-if)#iprouterR2(config-if)#ipaddress192.168.12.2R2(config-if)#clockrate128000 R2(config-if)#ip router isis R2(config-if)#no shutdown R2(config)#r

23、outer ospf 1R2(config-router)#router-idR2(config-router)#network 192.168.23.0 0.0.0.255 area 1 R2(config-router)#redistributeisislevel-2metric50subnets/將IS-ISOSPFR2(config-router)#redistributeconnected在重分布 IS-IS 路由協(xié)議的時候,只能將 L1 和 L2 的路由重分布進來,而運行 IS-IS重分布直連,那么 R3 和R4 的路由表中將沒有“192.168.12.0”的路由條目,造成局部網(wǎng)絡(luò)

24、R3(config)#router ospf 1R3(config-router)#router-id3.3.3.00.0.0.255192.168.23.0192.168.34.00areaarea(4)步驟 4:配置路由器 R4 R4(config)#ipprefix-list R4(config)#ipprefix-R4(config)#route-map1seq5permit4.4.0.0/24/定義前綴列表 2 seq 5 permit 4.4.1.0/24permit10/定義策略,21R4(config-route-map)#match(4)步驟 4:配置路由器 R4 R4(co

25、nfig)#ipprefix-list R4(config)#ipprefix-R4(config)#route-map1seq5permit4.4.0.0/24/定義前綴列表 2 seq 5 permit 4.4.1.0/24permit10/定義策略,21R4(config-route-map)#matchipaddressprefix-list R4(config-route-map)#set metric 50R4(config-route-map)#setmetric-typetype-1 R4(config)#route-map conn permit 20R4(config-ro

26、ute-map)#matchipaddressprefix-list R4(config-route-map)#set metric 100R4(config)#routerospfR4(config-router)#router-id12R4(config-router)#network 192.168.34.0 0.0.0.255 area 0 R4(config-router)#redistributeconnectedsubnetsroute-mapconn(1)路由器 R4 重分布直連的環(huán)回接口時,對“4.4.0.0”做的控制50,度量值的類型為 1,而對“4.4.1.0”做的控制(

27、2)由于要重分布直連接口,所以一定不能在 OSPF 的路由進程中通告“4.4.0.0”“4.4.1.0;控4.實驗調(diào)R1#showipCodes: C - connected, S - ic, R - RIP, M - mobile, B - D - EIGRP, EX - EIGRP external, O - OSPF, IA - er N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2 E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, L1 - IS-IS leve

28、l-1, L2 - IS-IS level-2, ia - IS-er * - candidate default, U - per-user P - periodic downloaded icic route, o - Gateway of last resort is not C192.168.12.0/24 is directly connected, 1.0.0.0/24 bnetted, 1 C1.1.1.0 is directly connected, 2.0.0.0/24 bnetted, 1 i 2.2.2.0115/20via192.168.12.2,3.0.0.0/32

29、bnetted, 1 i 3.3.3.3115/30via192.168.12.2,4.0.0.0/24 bnetted, 2 i i 4.4.0.0115/30via192.168.12.2,4.4.1.0115/30via192.168.12.2,iL2192.168.23.0/24115/30via192.168.12.2,Serial0/0/0 iL2192.168.34.0/24115/30viai 3.3.3.3115/30via192.168.12.2,4.0.0.0/24 bnetted, 2 i i 4.4.0.0115/30via192.168.12.2,4.4.1.011

30、5/30via192.168.12.2,iL2192.168.23.0/24115/30via192.168.12.2,Serial0/0/0 iL2192.168.34.0/24115/30via192.168.12.2,以上輸出表明路由器 R1 學到整個網(wǎng)絡(luò)的路由信息,其中路由條目“2.2.2.0”是 IS-路由,而其它的“iL2R2R2#showipCodes: C - connected, S - ic, R - RIP, M - mobile, B - D - EIGRP, EX - EIGRP external, O - OSPF, IA - er N1-OSPFNSSAexter

31、naltype1,N2-OSPFNSSAexternaltype2 E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-er * - candidate default, U - per-user P - periodic downloaded icic route, o - Gateway of last resort is not C192.168.12.0/24 is directly connected, 1.0.0.

32、0/24 bnetted, 1 i 1.1.1.0115/20via192.168.12.1,2.0.0.0/24 bnetted, 1 C2.2.2.0 is directly connected, 3.0.0.0/32 bnetted, 1 O 3.3.3.3110/65via192.168.23.3,00:00:27,4.0.0.0/24 bnetted, 2 O OE2 4.4.0.0110/178via192.168.23.3,00:00:27,4.4.1.0110/100via192.168.23.3,00:00:27,192.168.23.0/24 is directly con

33、nected, OIA192.168.34.0/24110/128via192.168.23.3,00:00:27,R2iL2OSPFOIA”的路由,也R3#showipCodes: C - connected, S - ic, R - RIP, M - mobile, B - D - EIGRP, EX - EIGRP external, O - OSPF, IA - er N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2 E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-I

34、S, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-er * - candidate default, U - per-user ic route, o - P - periodic downloaded ic Gateway of last resort is not OE2192.168.12.0/24110/20via192.168.23.2,00:01:27,1.0.0.0/24 bnetted, 1 O 1.1.1.0110/50via192.168.23.2,00:01:23,2.0.0.0/24 bnetted, 1 O 2.2.

35、2.0110/20via192.168.23.2,00:01:27,3.0.0.0/24 bnetted, 1 C3.3.3.0 is directly connected, 4.0.0.0/24 bnetted, 2 O Gateway of last resort is not OE2192.168.12.0/24110/20via192.168.23.2,00:01:27,1.0.0.0/24 bnetted, 1 O 1.1.1.0110/50via192.168.23.2,00:01:23,2.0.0.0/24 bnetted, 1 O 2.2.2.0110/20via192.168.23.2,00:01:27,3.0.0.0/24 bnetted, 1 C3.3.3.0 is directly connected, 4.0.0.0/24 bnetted, 2 O OE2 C4.4.

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論