实验7:路由重分布基本配置.doc_第1页
实验7:路由重分布基本配置.doc_第2页
实验7:路由重分布基本配置.doc_第3页
实验7:路由重分布基本配置.doc_第4页
实验7:路由重分布基本配置.doc_第5页
已阅读5页,还剩1页未读 继续免费阅读

下载本文档

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

文档简介

实验 7:路由重分布基本配置1.实验目的通过本实验可以掌握(1)种子度量值的配置(2)路由重分布参数的含义(3)静态路由重分布(4)直连路由重分布(5)RIP 和EIGRP 的重分布(6)EIGRP 和 OSPF 的重分布(7)重分布路由的查看和调试2.拓扑结构3.实验步骤(1)配置路由器 R1R1(config)#router ripR1(config-router)#version 2R1(config-router)#no auto-summaryR1(config-router)#network 172.16.0.0R1(config-router)#redistribute static metric 3 /重分布静态路由R1(config)#ip route 192.168.1.0 255.255.255.0 null0(2)配置路由器 R2R2(config)#router eigrp 1R2(config-router)#no auto-summaryR2(config-router)#network 172.16.23.2 0.0.0.0R2(config-router)#redistribute rip metric 1000 100 255 1 1500/将 RIP 重分布到 EIGRP 中R2(config)#router ripR2(config-router)#version 2R2(config-router)#no auto-summaryR2(config-router)#network 172.16.0.0R2(config-router)#redistribute eigrp 1 /将 EIGRP 重分布到RIP 中R2(config-router)#default-metric 4/配置重分布进 RIP 协议所有路由的默认种子度量值R2(config)#router ripR2(config-router)#version 2R2(config-router)#no auto-summaryR2(config-router)#network 172.16.0.0R2(config-router)#redistribute eigrp 1 /将 EIGRP 重分布到RIP 中R2(config-router)#default-metric 4/配置重分布进 RIP 协议所有路由的默认种子度量值【技术要点】 因为 EIGRP 的度量相对复杂,所以重分布时需要分别指定带宽、延迟、可靠性、负载以及 MTU 参数的值。 通过“default-metric”命令设置缺省种子度量值将用于重分布到该协议的所有路由。 “redistribute”命令中可以用参数“metric”指定种子度量值,重分布不同的路由协议可以指定不同的种子度量值,而采用 “default-metric” 命令时,所有重分布进该协议时的种子度量值都相同。同时使用两者时,前者生效。 对于 RIP、EIGRP 和 OSPF,默认情况下重分布静态和直连路由时,不用指定种子度量值,路由器使用默认的种子度量值,如将直连或静态路由重分布进 RIP时,度量值为 1。(3)配置路由器 R3R3(config)#router eigrp 1R3(config-router)#no auto-summaryR3(config-router)#network 172.16.23.3 0.0.0.0R3(config-router)#redistribute ospf 1 metric 1000 100 255 1 1500/将 OSPF 重分布到 EIGRP 中R3(config-router)#distance eigrp 90 150/配置 EIGRP 默认管理距离,内部路由90,外部路由 150R3(config)#router ospf 1R3(config-router)#router-id 3.3.3.3R3(config-router)#network 172.16.34.3 0.0.0.0 area 0R3(config-router)#redistribute eigrp 1 metric 30 metric-type 1 subnets/将 EIGRP 重分布到 OSPF 中,“ subnets”参数指定重分布子网路由,否则只重分布主类网络的路由R3(config-router)#redistribute maximum-prefix 100 50【技术要点】命令“redistribute maximum-prefix maximum threshold warning-only”用于限制重分布到 OSPF 的最大路由条目的数量。各参数含义如下: maximum:重分布到 OSPF 的最大路由条目数,达到最大路由条目数后,将不再重分布路由信息,提示的信息类似“%IPRT-4-REDIST_MAX_PFX: Redistribution prefix limit has been reached ospf 1 100 prefixes”。 threshold:当超过最大路由条目数量的百分比之后,路由器将发出告警信息,默认为 75%,告警信息类似“%IPRT-4-REDIST_THR_PFX: Redistribution prefix threshold hasbeen reached ospf 1 50 prefixes”。 warning-only:当 超过了最大路由条目数之后,只显示告警信息,不 会限制重分布的路由条目的数量。(4)配置路由器 R4R4(config)#access-list 1 permit 172.16.0.0 0.0.254.0/该 ACL 用于匹配 172.16.X.0,X 代表偶数R4(config)#access-list 2 permit 172.16.1.0 0.0.254.0/该 ACL 用于匹配 172.16.X.0,X 代表奇数R4(config)#route-map CONN permit 10 /配置路由映射表R4(config-route-map)#match ip address 1 /匹配ACL 1R4(config-route-map)#set metric 200 /设置度量值R4(config-route-map)#exitR4(config)#route-map CONN permit 20R4(config-route-map)#match ip address 2R4(config-route-map)#set metric 100R4(config-route-map)#set metric-type type-1/设置 OSPF 路由类型为 OE1,默认为 OE2R4(config-route-map)#exitR4(config)#route-map CONN permit 30以上路由映射表 CONN 是为在 OSPF 重分布直连路由调用的,其含义:对于 172.16 开头的第三位是偶数的路由条目,设置度量值为 100,路由类型为 OE2(默认,不用配置),对于172.16 开头的第三位是奇数的路由条目,设置度量值为 200,路由类型为 OE1,而其他路由条目采用默认,即度量值为 20,路由类型为 OE2。R4(config)#router ospf 1R4(config-router)#router-id 4.4.4.4R4(config-router)#network 172.16.34.4 0.0.0.0 area 0R4(config-router)#redistribute connected subnets route-map CONN/重分布时调用路由映射表4.实验调试(1)在 R1 上查看路由表R1#show ip routeR1#show ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static routeGateway of last resort is not set 172.16.0.0/24 is subnetted, 7 subnetsR 172.16.34.0 120/4 via 172.16.12.2, 00:00:10, Serial0/0R 172.16.23.0 120/1 via 172.16.12.2, 00:00:10, Serial0/0C 172.16.12.0 is directly connected, Serial0/0R 172.16.0.0 120/4 via 172.16.12.2, 00:00:10, Serial0/0R 172.16.1.0 120/4 via 172.16.12.2, 00:00:10, Serial0/0R 172.16.2.0 120/4 via 172.16.12.2, 00:00:10, Serial0/0R 172.16.3.0 120/4 via 172.16.12.2, 00:00:10, Serial0/0S 192.168.1.0/24 is directly connected, Null0输出表明路由器R1 通过 RIPv2 学到从路由器 R2 重分布进 RIP 的路由。(2)在 R2 上查看路由表R2#show ip routeR2#show ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static routeGateway of last resort is not set 172.16.0.0/24 is subnetted, 7 subnetsD EX 172.16.34.0 170/3097600 via 172.16.23.3, 00:11:58, Serial0/1C 172.16.23.0 is directly connected, Serial0/1C 172.16.12.0 is directly connected, Serial0/0D EX 172.16.0.0 170/3097600 via 172.16.23.3, 00:01:24, Serial0/1D EX 172.16.1.0 170/3097600 via 172.16.23.3, 00:01:24, Serial0/1D EX 172.16.2.0 170/3097600 via 172.16.23.3, 00:01:24, Serial0/1D EX 172.16.3.0 170/3097600 via 172.16.23.3, 00:01:24, Serial0/1R 192.168.1.0/24 120/3 via 172.16.12.1, 00:00:20, Serial0/0输出表明从路由器R1 上重分布进RIP 的静态路由被路由器R2 学习到,路 由代码为;在路由器 R3 上重分布进来的 OSPF 路由也被路由器 R2 学习到,路由代码为“D EX”, 这也说明 EIGRP 能够识别内部路由和外部路由,默认的时候,EIGRP 内部路由的管理距离是 90,外部路由的管理距离是170。(3)在 R3 上查看路由表R3#show ip routeR3#show ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static routeGateway of last resort is not set 172.16.0.0/24 is subnetted, 7 subnetsC 172.16.34.0 is directly connected, Serial0/0C 172.16.23.0 is directly connected, Serial0/1D EX 172.16.12.0 150/3097600 via 172.16.23.2, 00:14:36, Serial0/1O E2 172.16.0.0 110/200 via 172.16.34.4, 00:03:04, Serial0/0O E2 172.16.1.0 110/20 via 172.16.34.4, 00:03:04, Serial0/0O E2 172.16.2.0 110/200 via 172.16.34.4, 00:03:04, Serial0/0O E2 172.16.3.0 110/20 via 172.16.34.4, 00:03:04, Serial0/0D EX 192.168.1.0/24 150/3097600 via 172.16.23.2, 00:14:39, Serial0/1输出表明,从路由器 R2 上重分布进 EIGRP 的 RIP 路由被路由器 R3 学习到,同时EIGRP 外部路由的管理距离被修改成 150,从路由器 R4 上重分布进 OSPF 的直连路由被路由器 R3 学习到,OSPF 路由的度量值及路由类型同路由映射表“CONN”设置的是一致的。(4)在 R4 上查看路由表R4#show ip routeR4#show ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static routeGateway of last resort is not set 172.16.0.0/24 is subnetted, 7 subnetsC 172.16.34.0 is directly connected, Serial0/0O E1 172.16.23.0 110/94 via 172.16.34.3, 00:03:45, Serial0/0O E1 172.16.12.0 110/94 via 172.16.34.3, 00:03:45, Serial0/0C 172.16.0.0 is directly connected, Loopback0C 172.16.1.0 is directly connected, Loopback1C 172.16.2.0 is directly connected, Loopback2C 172.16.3.0 is directly connected, Loopback3O E1 192.168.1.0/24 110/94 via 172.16.34.3, 00:03:45, Serial0/0输出表明,从路由器 R3 上重分布进OSPF 的路由被路由器 R4 学习到,路由代码为“O E1”。(5)show ip protocolsR3#show ip protocolsR3#show ip protocolsRouting Protocol is eigrp 1 Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Default networks flagged in outgoing updates Default networks accepted from incoming updates EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0 EIGRP maximum hopcount 100 EIGRP maximum metric variance 1 Redistributing: ei

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论