CCNP-22 路由重发布2

实验拓扑:

实验要求:R1与R2之间采用RIP路由协议,R3与R2之间采用EIGRP路由协议,要使R1和R3能够相互学习到对方的路由。
试验目的:掌握RIP与EIGRP路由重发布的基本配置。

试验配置:
R1:
R1(config)#int s1/0
R1(config-if)#ip add 199.99.1.1 255.255.255.0
R1(config-if)#no shu
R1(config-if)#exit
R1(config)#int loop0
R1(config-if)#ip add 172.16.0.1 255.255.255.0
R1(config-if)#exit
R1(config)#int loop1
R1(config-if)#ip add 172.16.1.1 255.255.255.0
R1(config-if)#exit
R1(config)#int loop2
R1(config-if)#ip add 172.16.2.1 255.255.255.0
R1(config-if)#exit
R1(config)#int loop3
R1(config-if)#ip add 172.16.3.1 255.255.255.0
R1(config-if)#exit
R1(config)#int loop4
R1(config-if)#ip add 172.16.4.1 255.255.255.0
R1(config-if)#exit
R1(config)#int loop5
R1(config-if)#ip add 172.16.5.1 255.255.255.0
R1(config-if)#exit
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 172.16.0.0
R1(config-router)#network 172.16.1.0
R1(config-router)#network 172.16.2.0
R1(config-router)#network 172.16.3.0
R1(config-router)#network 172.16.4.0
R1(config-router)#network 172.16.5.0
R1(config-router)#network 199.99.1.0
R1(config-router)#no auto-summary
R1(config-router)#end
R2:
R2(config)#int s1/0
R2(config-if)#ip add 199.99.1.2 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no shu
R2(config-if)#exit
R2(config)#int s1/1
R2(config-if)#ip add 199.99.2.1 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no shu
R2(config-if)#exit
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#network 199.99.1.0
R2(config-router)#end
R2#config t
R2(config)#router eigrp 100
R2(config-router)#network 199.99.2.0 0.0.0.255
R2(config-router)#end
R3:
R3(config)#int s1/0
R3(config-if)#ip add 199.99.2.2 255.255.255.0
R3(config-if)#no shu
R3(config-if)#exit
R3(config)#int loop0
R3(config-if)#ip add 172.17.0.1 255.255.255.0
R3(config-if)#exit
R3(config)#int loop1
R3(config-if)#ip add 172.17.1.1 255.255.255.0
R3(config-if)#exit
R3(config)#int loop2
R3(config-if)#ip add 172.17.2.1 255.255.255.0
R3(config-if)#exit
R3(config)#int loop3
R3(config-if)#ip add 172.17.3.1 255.255.255.0
R3(config-if)#exit
R3(config)#int loop4
R3(config-if)#ip add 172.17.4.1 255.255.255.0
R3(config-if)#exit
R3(config)#int loop5
R3(config-if)#ip add 172.17.5.1 255.255.255.0
R3(config-if)#exit
R3(config)#router eigrp 100
R3(config-router)#network 172.17.0.0 0.0.0.255
R3(config-router)#network 172.17.1.0 0.0.0.255
R3(config-router)#network 172.17.2.0 0.0.0.255
R3(config-router)#network 172.17.3.0 0.0.0.255
R3(config-router)#network 172.17.4.0 0.0.0.255
R3(config-router)#network 172.17.5.0 0.0.0.255
R3(config-router)#network 199.99.2.0 0.0.0.255
R3(config-router)#no auto-summary
R3(config-router)#end
基本的配置已经完成,下面分别查看三台路由器的路由表:
R1#show ip route
Codes: 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 route
Gateway of last resort is not set
     172.16.0.0/24 is subnetted, 6 subnets
C       172.16.4.0 is directly connected, Loopback4
C       172.16.5.0 is directly connected, Loopback5
C       172.16.0.0 is directly connected, Loopback0
C       172.16.1.0 is directly connected, Loopback1
C       172.16.2.0 is directly connected, Loopback2
C       172.16.3.0 is directly connected, Loopback3
C    199.99.1.0/24 is directly connected, Serial1/0
R2#show ip route
*Mar  1 00:02:40.927: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 199.99.2.2 (Serial1/1) is resync: peer graceful-restart
Codes: 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 route
Gateway of last resort is not set
     172.17.0.0/24 is subnetted, 6 subnets
D       172.17.5.0 [90/2297856] via 199.99.2.2, 00:00:01, Serial1/1
D       172.17.4.0 [90/2297856] via 199.99.2.2, 00:00:01, Serial1/1
D       172.17.1.0 [90/2297856] via 199.99.2.2, 00:00:01, Serial1/1
D       172.17.0.0 [90/2297856] via 199.99.2.2, 00:00:01, Serial1/1
D       172.17.3.0 [90/2297856] via 199.99.2.2, 00:00:01, Serial1/1
D       172.17.2.0 [90/2297856] via 199.99.2.2, 00:00:01, Serial1/1
     172.16.0.0/24 is subnetted, 6 subnets
R       172.16.4.0 [120/1] via 199.99.1.1, 00:00:13, Serial1/0
R       172.16.5.0 [120/1] via 199.99.1.1, 00:00:13, Serial1/0
R       172.16.0.0 [120/1] via 199.99.1.1, 00:00:13, Serial1/0
R       172.16.1.0 [120/1] via 199.99.1.1, 00:00:13, Serial1/0
R       172.16.2.0 [120/1] via 199.99.1.1, 00:00:13, Serial1/0
R       172.16.3.0 [120/1] via 199.99.1.1, 00:00:13, Serial1/0
C    199.99.2.0/24 is directly connected, Serial1/1
C    199.99.1.0/24 is directly connected, Serial1/0
R3#show ip route
Codes: 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 route
Gateway of last resort is not set
     172.17.0.0/24 is subnetted, 6 subnets
C       172.17.5.0 is directly connected, Loopback5
C       172.17.4.0 is directly connected, Loopback4
C       172.17.1.0 is directly connected, Loopback1
C       172.17.0.0 is directly connected, Loopback0
C       172.17.3.0 is directly connected, Loopback3
C       172.17.2.0 is directly connected, Loopback2
C    199.99.2.0/24 is directly connected, Serial1/0
R1与R3的路由表都显示的是自己直接连接的路由,R2的路由表里有从EIGRP和RIP学到的路由,下面开始配置路由重发布,首先把EIGRP重发布到RIP中:
R2(config)#router rip
R2(config-router)#redistribute eigrp 100 metric 3
R2(config-router)#exit
好了,下面我们在R1上查看路由表:
R1#show ip route
Codes: 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 route
Gateway of last resort is not set
R    172.17.0.0/16 [120/3] via 199.99.1.2, 00:00:04, Serial1/0
     172.16.0.0/24 is subnetted, 6 subnets
C       172.16.4.0 is directly connected, Loopback4
C       172.16.5.0 is directly connected, Loopback5
C       172.16.0.0 is directly connected, Loopback0
C       172.16.1.0 is directly connected, Loopback1
C       172.16.2.0 is directly connected, Loopback2
C       172.16.3.0 is directly connected, Loopback3
R    199.99.2.0/24 [120/3] via 199.99.1.2, 00:00:04, Serial1/0
C    199.99.1.0/24 is directly connected, Serial1/0
多了两条RIP路由,这两条路由是从EIGRP重发布过来的,并且自动汇总了,然后配置把RIP重发布到EIGRP中:
R2(config)#router eigrp 100
R2(config-router)#redistribute rip metric ?
  <1-4294967295>  Bandwidth metric in Kbits per second
R2(config-router)#redistribute rip metric 64 ?
  <0-4294967295>  EIGRP delay metric, in 10 microsecond units
R2(config-router)#redistribute rip metric 64 1 ?
  <0-255>  EIGRP reliability metric where 255 is 100% reliable
R2(config-router)#redistribute rip metric 64 1 255 ?
  <1-255>  EIGRP Effective bandwidth metric (Loading) where 255 is 100% loaded
R2(config-router)#redistribute rip metric 64 1 255 1 ?
  <1-65535>  EIGRP MTU of the path
R2(config-router)#redistribute rip metric 64 1 255 1 1500 ?
R2(config-router)#end
在把RIP重发布到EIGRP是要注意的问题就是metric值依次是:带宽—延迟—可靠性—负载—MTU,然后再到R3上查看路由表:
R3#show ip route
Codes: 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 route
Gateway of last resort is not set
     172.17.0.0/24 is subnetted, 6 subnets
C       172.17.5.0 is directly connected, Loopback5
C       172.17.4.0 is directly connected, Loopback4
C       172.17.1.0 is directly connected, Loopback1
C       172.17.0.0 is directly connected, Loopback0
C       172.17.3.0 is directly connected, Loopback3
C       172.17.2.0 is directly connected, Loopback2
     172.16.0.0/24 is subnetted, 6 subnets
D EX    172.16.4.0 [170/40512256] via 199.99.2.1, 00:00:03, Serial1/0
D EX    172.16.5.0 [170/40512256] via 199.99.2.1, 00:00:03, Serial1/0
D EX    172.16.0.0 [170/40512256] via 199.99.2.1, 00:00:03, Serial1/0
D EX    172.16.1.0 [170/40512256] via 199.99.2.1, 00:00:03, Serial1/0
D EX    172.16.2.0 [170/40512256] via 199.99.2.1, 00:00:03, Serial1/0
D EX    172.16.3.0 [170/40512256] via 199.99.2.1, 00:00:04, Serial1/0
C    199.99.2.0/24 is directly connected, Serial1/0
D EX 199.99.1.0/24 [170/40512256] via 199.99.2.1, 00:00:04, Serial1/0
OK,多了七条EIGRP系统外部路由,管理距离为170,这些路由并没有汇总,我们来把它们汇总,RIP的路由汇总我们在上一个试验中已经介绍过一种方法,就是在接口模式下配置汇总的方法,这回我们用另外一种方法:
R1(config)#router rip
R1(config-router)#auto-summary
R1(config-router)#end
这样配置完成后,也可以达到汇总的效果,但是这样汇总和在接口模式下配置会总是有区别的,我记得以前好像讲过,这里我们在重提一下:配置自动汇总只能汇总成主网络掩码,而接口模式下可以不用配置成主网络掩码的形式。
好了,让我们在重新查看一下R3的路由表:
R3#show ip route
Codes: 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 route
Gateway of last resort is not set
     172.17.0.0/24 is subnetted, 6 subnets
C       172.17.5.0 is directly connected, Loopback5
C       172.17.4.0 is directly connected, Loopback4
C       172.17.1.0 is directly connected, Loopback1
C       172.17.0.0 is directly connected, Loopback0
C       172.17.3.0 is directly connected, Loopback3
C       172.17.2.0 is directly connected, Loopback2
D EX 172.16.0.0/16 [170/40512256] via 199.99.2.1, 00:00:40, Serial1/0
C    199.99.2.0/24 is directly connected, Serial1/0
D EX 199.99.1.0/24 [170/40512256] via 199.99.2.1, 00:00:40, Serial1/0
现在变成了两条了。
我们再来看一下R2的路由表的情况:
R2#show ip route
Codes: 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 route
Gateway of last resort is not set
     172.17.0.0/24 is subnetted, 6 subnets
D       172.17.5.0 [90/2297856] via 199.99.2.2, 00:00:45, Serial1/1
D       172.17.4.0 [90/2297856] via 199.99.2.2, 00:00:45, Serial1/1
D       172.17.1.0 [90/2297856] via 199.99.2.2, 00:00:45, Serial1/1
D       172.17.0.0 [90/2297856] via 199.99.2.2, 00:00:45, Serial1/1
D       172.17.3.0 [90/2297856] via 199.99.2.2, 00:00:45, Serial1/1
D       172.17.2.0 [90/2297856] via 199.99.2.2, 00:00:45, Serial1/1
R    172.16.0.0/16 [120/1] via 199.99.1.1, 00:00:15, Serial1/0
C    199.99.2.0/24 is directly connected, Serial1/1
C    199.99.1.0/24 is directly connected, Serial1/0
RIP的路由被汇总了,但是EIGRP的路由并没有被汇总,我们这里来手工汇总EIGRP的路由:
R3(config)#int s1/0
R3(config-if)#ip summary-address eigrp 100 172.17.0.0 255.255.0.0
R3(config-if)#exit
和RIP一样,EIGRP的汇总也可以在接口模式下配置,还有一种方法是启用默认汇总,我们在配置EIGRP的时候已经取消了默认汇总了。完成后我们再到R2上查看路由表:
R2#show ip route
Codes: 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 route
Gateway of last resort is not set
D    172.17.0.0/16 [90/2297856] via 199.99.2.2, 00:00:01, Serial1/1
R    172.16.0.0/16 [120/1] via 199.99.1.1, 00:00:01, Serial1/0
C    199.99.2.0/24 is directly connected, Serial1/1
C    199.99.1.0/24 is directly connected, Serial1/0
好了,现在R2的路由表小多了,从RIP和EIGRP学到的都是汇总后的路由!
实验总结:掌握RIP和EIGRP路由重发布的基本配置。

转载于:https://blog.51cto.com/loveme23/49295

CCNP-22 路由重发布2(BSCI)相关推荐

  1. CCNP路由实验之八 路由重发布

     CCNP路由实验之八 路由重发布 在前面几个实验,已经学习了静态路由和动态路由.现在,我们要掌握如何使它们在一个网络中融合,即路由重发布.路由重分布可以实现多种路由协议之间共享路由信息并进行路由 ...

  2. vyos-vyatta在ospf和bgp之间路由重发布使用 打tag形式进行路由过滤

    在ospf和bgp之间路由重发布使用 打tag形式进行路由过滤 set policy route-map BGP-ROUTE-01 rule 100 set tag '4444' set policy ...

  3. 网络工程师提高篇 | 路由重发布你了解多少?从原理到配置,瑞哥带你学习一波!

    文章目录 技术背景 实施要点 路由优先级问题 路由倒灌 路由重发布的配置 OSPF与RIP的互重发布 重发布直连路由到OSPF 重发布静态路由到OSPF 技术背景 在同一个网络拓扑结构中,如果存在两种 ...

  4. 引入静态路由_网络工程师提高篇 | 路由重发布你了解多少?从原理到配置,瑞哥带你学习一波!...

    技术背景 实施要点 路由优先级问题 路由倒灌 路由重发布的配置 OSPF与RIP的互重发布 重发布直连路由到OSPF 重发布静态路由到OSPF 技术背景 在同一个网络拓扑结构中,如果存在两种不同的路由 ...

  5. ripv2ospf路由重发布

    ripv2&ospf路由重发布 拓扑图 要求 如上拓扑图,左侧路由使用ospf协议,右侧使用ripv2协议,让网络全网互通. 1. 在各个路由器上配置网络ip AR0 [Huawei-Seri ...

  6. 实验六:路由重发布配置

    1.实验拓扑图 2.实验目的 1)理解路由重发布的概念及作用 2)掌握路由重发布的配置方法 配置各路由器接口IP地址 R0 s0/1/0 192.168.12.1 Loopback 192.168.1 ...

  7. HCIP路由重发布技术以及路由策略及配置---RIP与OSPF双向重发布

    目录 1.重发布技术的概述 2.重发布技术的条件: 3.重发布技术的规则: 4.重发布技术的名词解释: 5.RIP单点重发布技术与配置 6.OSPF重发布技术与配置 7.多点双向重发布产生的问题--- ...

  8. 锐捷BGP基础配置(邻居建立、路由重发布、路由聚合、认证)

    目录 配置IBGP邻居 配置EBGP邻居 配置BGP重发布OSPF BGP路由聚合 BGP其它配置 配置IBGP邻居 R2.R3.R4底层IGP互通,此处IGP互通配置不做介绍 R2与R4通过Loop ...

  9. 路由重发布之RIP和OSPF

    实验拓扑图 实验过程 1.R1的预配置 Router>en Router#config t Enter configuration commands, one per line.  End wi ...

最新文章

  1. 数据服务让业务开发更敏捷
  2. python图像分割算法_Opencv(二)—图像分割之分水岭算法!
  3. quartz 报错:java.lang.classNotFoundException
  4. [JSOI 2011]分特产
  5. lzg_ad:XPE操作系统镜像尺寸优化
  6. P53:进化了8亿年的抑癌基因
  7. 服务器搭建2 VSFTP搭建FTP服务器
  8. 【Spring MVC】学习笔记汇总
  9. 关于USES_CONVERSION宏
  10. RPM 打包技术与典型 SPEC 文件分析
  11. ResNet和BN层
  12. DRAM内存物理地址和地址译码器原理的剖析
  13. Kubernetes Secrets
  14. 移动数据Moving Data
  15. 6种自动化测试框架(总有一款适合你)
  16. HTML5期末大作业:旅游景区网站设计——绿色古典旅游景区(6页) HTML+CSS+JavaScript 学生DW网页设计作业成品
  17. 张飞开关电源二_sdchguyi_新浪博客
  18. javacc编译原理实训报告
  19. 有效沟通-非暴力沟通
  20. 基于CANoe的UDS Bootloader刷写软件

热门文章

  1. System V IPC
  2. websocket连接mqtt实现发布及订阅主题
  3. 关于Vue.js2.0生命周期的研究与理解
  4. 国内ntp服务器ip地址
  5. 创建Maven的Web工程
  6. RStudio版本号管理 整合Git
  7. 关于AndroidSDK配置时的tools目录下找不到adb.exe的错误
  8. 在 SharePoint2010 中使用 XML 查看器取得其他站点的内容列表
  9. 【莓控】黑莓8110中文说明书
  10. 【WPF】用CustomControl打造WPF版的Marquee