网络工程ccna实验chp20路由重分布_第1页
网络工程ccna实验chp20路由重分布_第2页
网络工程ccna实验chp20路由重分布_第3页
网络工程ccna实验chp20路由重分布_第4页
已阅读5页,还剩6页未读 继续免费阅读

下载本文档

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

文档简介

1、20由重分由信息。 在路由选择协议之间交换路由信息的过程被称为路由重分布(Route Redistribution20.1由重分布概20由重分由信息。 在路由选择协议之间交换路由信息的过程被称为路由重分布(Route Redistribution20.1由重分布概度量值(seed 20-1由协议默认度量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令设置缺(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”命令中用参数“metric”指定度量值优先于路由模式下在“redistribute”命令中用参数“metric”指定度量值优先于路由模式下用“default-metric”命令设定的缺省度量

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.实验调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、治系统边界路由器(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 路由协议的时候,只能将 L1 和 L2 的路由重分布进来,而运行 IS-IS重分布直连,那么 R3 和R4 的路由表中将没有“192.168.12.0”的路由条目,造成局部网络

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 重分布直连的环回接口时,对“4.4.0.0”做的控制50,度量值的类型为 1,而对“4.4.1.0”做的控制(

27、2)由于要重分布直连接口,所以一定不能在 OSPF 的路由进程中通告“4.4.0.0”“4.4.1.0;控4.实验调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 学到整个网络的路由信息,其中路由条目“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. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论