EIGRP与静态路由重分布

合集下载

基于EIGRP协议与OSPF协议的路由重分别与应用

基于EIGRP协议与OSPF协议的路由重分别与应用

基于EIGRP协议与OSPF协议的路由重分别与应用【摘要】路由重分布为在同一个互联网络中高效地支持多种路由协议提供了可能,执行路由重分布的路由器被称为边界路由器,因为它们位于两个或多个自治系统的边界上。

一般来说一个组织或者一个跨国公司很少只使用一个路由协议,而如果一个公司同时运行了多个路由协议,或者一个公司和另外一个公司合并的时候两个公司用的路由协议并不一样,这个时候必须使用重发布来将一个路由协议的信息发布到另外的一个路由协议里面去。

【关键词】核心路由;重发布;Metric1路由重发布1.1路由重发布介绍一般来说一个组织或者一个跨国公司很少只使用一个路由协议,可能在同一网内使用到多种路由协议,为了实现多种路由协议之间能够相互配合、协同工作,可以在路由器之间使用路由重分发(route redistribution)将其学习到的一种路由协议的路由通过另一种路由协议广播出去,这样网络的所有部分都可以连通了,而如果一个公司同时运行了多个路由协议,或者一个公司和另外一个公司合并的时候两个公司用的路由协议并不一样,这个时候该怎么办呢·所以必须采取一种方式来将一个路由协议的信息发布到另外的一个路由协议里面去,这样,重发布的技术就诞生了。

重发布的概念是将一种路由选择协议获悉的网络告知另一种路由选择协议,以便网络中每台工作站能到达其他的任何一台工作站,这一过程被称为重发布。

为了实现重分发,路由器必须同时运行多种路由协议,这样,每种路由协议才可以取路由表中的所有或部分其他协议的路由来进行广播。

1.2路由重发布需要考虑的问题1.2.1次优路径路由器有可能从一个自治系统学到的路由信息发送回该自治系统,特别是在做双向重分布的时候,这一点体现在管理距离值高的路由协议发布到管理距离值低的路由协议这一情况下,比如RIP协议通过双点重发布进ospf,这样的话在边界路由器上面就会产生次优路径,我们需要通过修改metric值,或者利用route-map,分发列表解决,然而EIGRP不需要考虑这个问题,因为EIGRP设计时就考虑到了这个问题,内部管理距离为100 外部管理距离为170,这也是EIGRP的一大优点。

三种动态路由协议下发默认路由的方式

三种动态路由协议下发默认路由的方式

RIP:(边界路由)
1.重分布静态路由re distribute static
2.default-intformation originate
3.缺省路由ip default-network (宣告主类网络号)
4.在RIP进程中宣告缺省路由network 0.0.0.0
5.在接口下汇总默认路由ip summary-address rip 0.0.0.0 0.0.0.0
EIGRP:(边界路由)
1.重分布静态路由re distribute static
2.缺省路由ip default-network (宣告主类网络号),同时在进程下宣告主类网络号,另外在连接内网的接口下采用手动汇总该外部路由
3.在EIGRP进程中宣告缺省路由network 0.0.0.0
4.全网使用静态路由实现逻辑全互联(不推荐)
OSPF:(边界路由)
使用default-information originate 必须在路由表中手动添加缺省指向NULL 0
default-information originate always----->强制添加缺省路由进入路由表
OSPF来说,它和距离矢量协议是不一样的,它的路径计算是基于SPF算法的,是通过LSA 来泛红路由,如果想在ospf内重分布默认路由的话,那么就需要配合使用default-information originate这个命令,因为ospf是只能重分布非缺省状态的静态路由,如果要是没有配置缺省路由的话,那么就要在default-information originate 后面加个always,就是无论本路由器路由表里有没有默认路由,都会广播出去。

思科认证:eigrp注入默认路由的三种方式

思科认证:eigrp注入默认路由的三种方式

⼀、静态重分布静态重分布是最简单的⼀种⽅式,只需要在路由器上配置两条命令就可以。

⾸先在R1上添加默认路由,然后在eigrp中使⽤redistribute命令。

R1(config)#ip route 0.0.0.0 0.0.0.0 s0/0 //添加默认路由R1(config)#router eigrp 90R1(config-router)#redistribute static //静态重分布⼆、通告默认路由这⼀种⽅式相对也⽐较简单。

通告默认路由就是把默认路由像普通段那样宣告到eigrp进程中去。

既然是通告默认路由,那⾸先得有⼀条默认路由。

R1(config)#ip route 0.0.0.0 0.0.0.0 s0/0 //添加默认路由R1(config)#router eigrp 90R1(config-router)#network 0.0.0.0 // 宣告默认路由三、ip default-networkip default-network 命令只⽀持有类IP,所以,在使⽤这种⽅式的时候,应该讲使⽤该段对应的主类络号。

⽐如本拓扑中应该使⽤12.0.0.0配置脚本如下:R1(config)#ip default-network 12.0.0.0 //使⽤ip default-network 声明默认路由R1(config)#router eigrp 90R1(config-router)#network 12.0.0.0 //声明该段R1(config-router)#exitR1(config)#ip route 12.0.0.0 255.0.0.0 null 0最后⼀条就需要注意了,在使⽤这种⽅法的时候,需要保证本机路由表中有对应的表项。

但是我们的12段是24位掩码,⽽ip default-network 声明的是主类络号,8位的掩码。

51CTO下载-静态、rip、eigrp、ospf路由重分布综合实验

51CTO下载-静态、rip、eigrp、ospf路由重分布综合实验

路由重分布综合实验一、实验名称:静态、rip、eigrp、ospf路由重分布综合实验三、实验拓扑图:三、实验拓扑图:四、实验步骤:四、实验步骤:上配置:R1上配置:Router>enableRouter#configure terminalRouter(config)#interface FastEthernet0/0Router(config-if)#ip address 192.168.20.1 255.255.255.0 Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#interface Serial0/0/0Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#no shutdownRouter(config-if)#clock rate 64000Router(config-if)#int loop1Router(config-if)#ip add 192.168.0.1 255.255.255.0 Router(config-if)#exitRouter(config)#route ospf 10Router(config-router)#net 192.168.1.0 0.0.0.255 area 1 Router(config-router)#redis rip subnetsRouter(config-router)#exitRouter(config)#route ripRouter(config-router)#version 2Router(config-router)#net 192.168.20.0Router(config-router)#exitRouter(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.2R2上配置:上配置:Router>enableRouter#configure terminalRouter(config)#interface Serial0/0/0Router(config-if)#ip address 192.168.1.2 255.255.255.0Router(config-if)#exitRouter(config)#interface Serial0/0/1Router(config-if)#clock rate 64000Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#interface FastEthernet0/0Router(config-if)#ip address 192.168.4.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#ip route 192.168.0.0 255.255.255.0 192.168.1.1 Router(config)#route ospf 20Router(config-router)#net 192.168.1.0 0.0.0.255 area 1Router(config-router)#net 192.168.2.0 0.0.0.255 area 0Router(config-router)#net 192.168.4.0 0.0.0.255 area 0 上配置:R3上配置:Router>enableRouter#configure terminalRouter(config)#interface Serial0/0/0Router(config-if)#ip address 192.168.3.1 255.255.255.0Router(config-if)#clock rate 64000Router(config-if)#no shutdownRouter(config)#interface Serial0/0/1Router(config-if)#ip address 192.168.2.2 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#interface FastEthernet0/1Router(config-if)#ip address 192.168.5.2 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#route ospf 30Router(config-router)#net 192.168.2.0 0.0.0.255 area 0Router(config-router)#net 192.168.5.0 0.0.0.255 area 0Router(config-router)#redis eigrp 100 subnetsRouter(config-router)#exitRouter(config)#route eigrp 100Router(config-router)#net 192.168.3.0Router(config-router)#redis ospf 30 metric 10000 100 255 1 100R4上配置:上配置:Router>enableRouter#configure terminalRouter(config)#interface Serial0/0/0Router(config-if)#ip address 192.168.3.2 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#int loop1Router(config-if)#ip add 192.168.100.100 255.255.255.0Router(config-if)#int loop2Router(config-if)#ip add 192.168.200.200 255.255.255.0Router(config-if)#exitRouter(config)#route eigrp 100Router(config-router)#net 192.168.3.0Router(config-router)#net 192.168.100.0Router(config-router)#net 192.168.200.0R5上配置:上配置:Router>enableRouter#configure terminalRouter(config)#interface FastEthernet0/0Router(config-if)#ip address 192.168.4.2 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#interface FastEthernet0/1Router(config-if)#ip address 192.168.5.2 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#route ospf 40Router(config-router)#net 192.168.4.0 0.0.0.255 area 0Router(config-router)#net 192.168.5.0 0.0.0.255 area 0五、实验检验:五、实验检验:Pc1Pc1::PC>ping 192.168.100.100Pinging 192.168.100.100 with 32 bytes of data:Reply from 192.168.100.100: bytes=32 time=156ms TTL=252Reply from 192.168.100.100: bytes=32 time=140ms TTL=252Reply from 192.168.100.100: bytes=32 time=141ms TTL=252Reply from 192.168.100.100: bytes=32 time=110ms TTL=252Ping statistics for 192.168.100.100:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 110ms, Maximum = 156ms, Average = 136msPC>ping 192.168.200.200Pinging 192.168.200.200 with 32 bytes of data:Reply from 192.168.200.200: bytes=32 time=141ms TTL=252Reply from 192.168.200.200: bytes=32 time=140ms TTL=252Reply from 192.168.200.200: bytes=32 time=94ms TTL=252Reply from 192.168.200.200: bytes=32 time=157ms TTL=252Ping statistics for 192.168.200.200:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds:Minimum = 94ms, Maximum = 157ms, Average = 133ms实验总结:通过综合实验,考察了所有路由器上的协议的配置及彼此之间的重分布,主要需要注意的是顺序及其关键点的配置,步步都不能马虎。

路由重分发工作原理

路由重分发工作原理

路由重分发工作原理路由重分发工作原理网络协议有很多种,例如isis、rip、ospf、bgp等,在大型公司中经常会出现网络设备之间运行多种网络协议的情况,各种网络协议之间如果不进行一定的配置那么设备之间是不能进行互通信息的,在这种情况下就出现了路由重分发技术,路由重分发的作用就是为了实现多种路由协议之间的协同工作。

路由重分发的工作原理:通过在各种路由协议的配置中添加一定的配置使将路由协议广播到另外的路由协议中,让各个路由协议都能检测到运行其他的路由协议的网段,从而实现数据的传输。

路由重分发技术需要用到redistribute命令rip协议的redistribute命令redistribute protocol 【metric metric-value】【match internal | external nssa-external type】【route-map map-tag】protocol:路由重分发的源路由协议 metric metric-value:设置路由重分发的度量值(1···6),没有将使用default-metric命令设置的metric值 match internal | external nssa-external type:设置重分发路由的条件,只适合重分发的源路由协议是ospf route-map map-tag应用路由图进行重分发ospf协议的redistribute命令 redistribute protocol 【subnets】【metric metric-value】【metric-type{1 | 2}】【tag tag-value】【route-map map-tag】protocol:路由重分发的源路由协议subnets:设置是否重分发子网metric metric-value:设置路由重分发的度量值(1···16777214),没有将使用default-metric命令设置的metric值metric metric-type:设置重分发的路由度量类型,默认值为2 tag tag-value:设置重分发的路由的tag(0···2147483647)默认为0 route-map map-tag应用路由图进行重分发重分发到ospf中的时候,除了直连路由和默认路由外,其他重分发的路由的默认的度量值是20,默认度量值类型是2,且默认不重分发子网。

重分布

重分布

Rip1,将直连路由重分布到RIP v1中router ripnetwork 10.0.0.0redistribute connected2、将静态路由重分布到RIP V1中r1上:ip route 10.1.1.0 255.255.255.0 1.1.1.2router ripredistribute static //可以不指定度量值,把其当作是直连网络来通告3、将EIGRP路由重分布到RIP V1中需要指定度量值重分布,否则路由重分布不能成功。

router ripredistribute eigrp 1 metric 1 //R2接收的度量值为1,不增加1注意:EIGRP是无类路由,路由携带掩码,但RIP V1是有类路由,不携带掩码通告。

另:IGRP时,是将加入IGRP进程的接口也会重分布出去4、将OSPF路由重分布到RIP V1中router ripredistribute ospf 10 metric 1--------------------------------------------------------------------------- IGRP/EIGRP1、将直连接口重分布到IGRP或EIGRP //可以不指定度量值redistribute connected2、将静态路由重分布到IGRP或EIGRP //可以不指定度量值redistribute static3、将RIP路由重分布到IGRP或EIGRP //需要指定度量值Rip- eigrp#router eigrp 1#redistribute rip metric 1544 2000 255 1 1500##4、将OSPF路由重分布到IGRP或EIGRP //需要指定度量值Ospf -> eigrpRouter eigrp 1Redistridute ospf 1Default-metric 1000 10 1 255 15005、将ISIS路由重分布到IGRP或EIGRP //需要指定度量值,且需要指定路由类型(L1,L2,L1-2)6、将默认路由重分布到IGRP或EIGRP //可以不指定度量值(1)使用重分布静态路由(2)使用ip default-network命令,要求真实网络,需要通告进进程。

一个路由器上两种路由协议怎样重分布

一个路由器上两种路由协议怎样重分布

一个路由器上两种路由协议怎样重分布竭诚为您提供优质文档/双击可除一个路由器上两种路由协议怎样重分布篇一:路由协议的重分布路由协议的重分布一、定义:重分布是指连接到不同路由选择域的边界路由器在不同自主系统之间交换和通告路由选择信息的能力。

二、重分布原则:路由必须位于路由选择表中才能被重分发showiproute看到的三、在重分发时设定种子metric协议seedmetricRip必须手工指定eigRp必须手工指定ospF20如果重分布进来的是bgp的话,metric是1,这是个特例is-is0bgp携带原来的metric值R1(config-router)#default-metric1使用此命令来设定种子metric值四、重分布分两种:1、单向重分布2、双向重分布1)ospF->Rip:将其它路由协议重分布进Rip,要注意加metric值R1(config)#routerripR1(config-router)#redistributeospf110metric1(优于default-metric命令)也可用以下方法指定metric值R1(config-router)#default-metric3(默认seedmetric=infinity无限大,修改seedmetric =3)R1(config-router)#redistributeconnected(可不加metric,默认=1)重分布直连R1(config-router)#redistributestatic(可不加metric,默认=1)重分布静态,路由前会打上R 2)Rip->ospF:将其它路由协议重分布进ospF,要注意加subnets参数R1(config)#routerospf110R1(config-router)#redistributeripsubnets(如不加subnets,默认只有主类地址能被重分布)默认的metric值为20,也可用以下命令指定:R1(config-router)#default-metric8R1(config-router)#redistributeripsubnetsmetric10 (默认seedcost=20,如果将bgp->ospF,默认=1)R1(config-router)#redistributeripsubnetsmetric10met ric-type1(加上路径cost,默认为e2)R1(config-router)#redistributeconnectedsubnets R1(config-router)#redistributestaticsubnets还可在后面加router-map来过滤路由3)isis->eigRp:将其它路由协议重分布进eigRp时也要指定metric值R1(config)#routereigrp90R1(config-router)#default-metric150010025511500R1(config-router)#redistributeisislevel-1-2metric15 4410025511500默认为level-2bwdlyRlomtu(不加metric,默认seedmetric=infinity)带宽延迟可靠性负载mtuR1(config-router)#redistributeconnected(不加metric也可)(根据直连接口的不同计算metric)R1(config-router)#redistributestatic(不加metric 也可)(根据下一跳接口计算metric)·注意:当把isis重分布进其他路由协议时,运行isis 的直连接口不能重分布进去,这是isis本身的bug。

路由重分发(EIGRP、RIP、OSPF间)

路由重分发(EIGRP、RIP、OSPF间)

EIGRP/RIP/OSPF间的路由重分发一、概述:路由重分发:使两个不同的路由域能够传递路由,从而使位于两个不同路由域的设备能够进行通信。

发生在两个不同路由域的边界上,这种处于边界的路由器叫做自治系统边界路由器。

自治系统边界路由器可以将一个路由域的信息放入另一个路由协议的信息表中。

二、RIP/OSPF间的路由重分发基本配置:1、规划IP地址,配置接口IP,并开启接口;2、在三个路由器上分别配置相应的路由协议(关闭自动汇总NO AU);3、在中间路由(RB)上做路由重分发;4、通过SHOW RUN和SHOW IP ROUTER命令来检查;5、测试(ping命令)RA#configRA(config)#int loopback 1RA(config-if)#ip add 192.168.1.1 255.255.255.0RA(config-if)#no shutdownRB、RC此处省略(接口配置)RA(config)#router ripRA(config-router)#ver 2RA(config-router)#no auRA(config-router)#net 192.168.1.0RA(config-router)#net 192.168.2.0RB、RC此处省略(基本路由协议配置)RB(config)#router ripRB(config-router)#redistribute ospf 110 metric 2RB(config-router)#exitRB(config)#router ospf 110RB(config-router)#redistribute rip subnetsRB(config-router)#endRB#show ip routerRB#show runRB#wrRA#PING 192.168.4.1三、RIP/EIGRP间的路由重分发注意:配置EIGRP协议是,后面所用的进程ID必须一致R2:router eigrp 1re rip metric 100000 100 255 1 1500<10000(带宽)100(延迟)255(可靠性)1(负载)1500(MTU)> router ripre eigrp 1 me 2四、OSPF/EIGRP间的路由重分发CopyR2:router eigrp 1re ospf 110 metric 100000 10 255 1 1500router ospf 110re eigrp 1 subnets五、RIP/OSPF/EIGRP间的路由重分发CopyR2:router eigrp 1redistribute rip metric 100000 10 255 1 1500redistribute ospf 110 metric 100000 10 255 1 1500network 192.16.5.0auto-summaryrouter ospf 110redistribute rip subnetsredistribute eigrp 1 subnetsnetwork 192.168.3.0 0.0.0.255 area 0router ripversion 2redistribute eigrp 1 metric 2redistribute ospf 110 metric 2network 192.168.2.0no auto-summary六、注意注意查看路由表(SHOW IP ROUTER),看路右边里面是否学到了路由协议。

重分布原则

重分布原则

重分布原则(影响的是该协议中其他路由器路由表,不影响本路由器路由表,只影响本路由器数据库)
1.复制粘贴路由表.
2.寻找被直连取代的路由(必须在路由进程下通告出来的直连路由).也会被复制粘贴。

3.往同一个协议的重分布中,重分布直连最优先处理,并且被重分布直连处理过的接口以后都不再处理了.
4.向EIGRP重分布RIP和OSPF时,重分布OSPF被最优先处理。

RIP
重分布EIGRP,OSPF,ISIS协议的时候要挂metric参数或者default-metric 1
重分布直连,静态,rip的时候不需要
EIGRP
重分布ospf,rip,isis协议的时候需要挂metric或者default-metric
重分布静态,直连,eigrp的时候不需要
OSPF
重分布任何协议,静态,直连的时候都不需要挂metric,但是注意subnets参数
IS-IS
IS-IS 度量必须在1 和63 之间。

IS-IS 中没有
default-metric 选项,应该为每个协议定义权值,如果没有为重分配到IS-IS 的路由指定权值,则度量值默认为0。

路由重分布配置

路由重分布配置

路由重分布实验实验一:静态路由、RIP或OSPF、EIGIP路由重分布【网络拓扑】【实验目的】1.静态路由重分布2.RIP和EIGRP的重分布3.EIGRP和OSPF的重分布4.重分布路由的查看和调试【实验配置1】配置路由器R1:Router>enRouter#conf tRouter(config)#host R1R1(config)#no ip domain looR1(config)#int loo1R1(config-if)#ip add 1.1.1.1 255.255.255.0R1(config-if)#no shutR1(config-if)#exitR1(config)#int loo2R1(config-if)#ip add 202.121.241.8 255.255.255.0 R1(config-if)#no shutR1(config-if)#exitR1(config)#int s2/0R1(config-if)#ip add 192.168.12.1 255.255.255.0 R1(config-if)#clock rate 64000R1(config-if)#no shutR1(config-if)#exitR1(config)#router ripR1(config-router)#ver 2R1(config-router)#no autoR1(config-router)#network 192.168.12.0R1(config-router)#exitR1(config)#ip route 0.0.0.0 0.0.0.0 loo2R1(config)#exit配置路由器R2:Router>enRouter#conf tRouter(config)#host R2R2(config)#no ip domain looR2(config)#int loo1R2(config-if)#ip add 2.2.2.2 255.255.255.0R2(config-if)#no shutR2(config-if)#exitR2(config)#int s2/0R2(config-if)#ip add 192.168.12.2 255.255.255.0 R2(config-if)#no shutR2(config-if)#exitR2(config)#int s3/0R2(config-if)#ip add 192.168.23.1 255.255.255.0 R2(config-if)#clock rate 64000R2(config-if)#exitR2(config)#router eigrp 1R2(config-router)#network 192.168.23.0R2(config-router)#no autoR2(config-router)#exitR2(config)#router ripR2(config-router)#ver 2R2(config-router)#no autoR2(config-router)#network 192.168.12.0R2(config-router)#exit配置路由器R3:Router>enRouter#conf tRouter(config)#host R3R3(config)#no ip domain looR3(config)#int loo1R3(config-if)#ip add 3.3.3.3 255.255.255.0R3(config-if)#no shutR3(config-if)#exitR3(config)#int s2/0R3(config-if)#ip add 192.168.23.2 255.255.255.0R3(config-if)#no shutR3(config-if)#exitR3(config)#int s3/0R3(config-if)#ip add 192.168.34.1 255.255.255.0R3(config-if)#clock rate 64000R3(config-if)#no shutR3(config-if)#exitR3(config)#router eigrp 1R3(config-router)#network 3.3.3.0 0.0.0.255R3(config-router)#network 192.168.23.0 0.0.0.255R3(config-router)#no autoR3(config-router)#exitR3(config)#router ospf 1R3(config-router)#router-id 3.3.3.3R3(config-router)#network 192.168.34.0 0.0.0.255 area 0 R3(config-router)#exit配置路由器R4:Router>enRouter#conf tRouter(config)#host R4R4(config)#no ip domain looR4(config)#int loo1R4(config-if)#ip add 4.4.4.4 255.255.255.0R4(config-if)#exitR4(config)#int s2/0R4(config-if)#ip add 192.168.34.2 255.255.255.0R4(config-if)#no shutR4(config-if)#exitR4(config)#router ospf 1R4(config-router)#router-id 4.4.4.4R4(config-router)#network 4.4.4.0 0.0.0.255 area 0R4(config-router)#network 192.168.34.0 0.0.0.255 area 0 R4(config-router)#exit【实验测试1】测试局部连通性:R1 ping R2R2 ping R3R3 ping R4显示路由表R1R2R3R4【实验配置2】路由重分布配置:在R1上进行静态重分布R1(config)#router ripR1(config-router)#redistribute static metric 3R1(config-router)#exit在R2将RIP重分布到EIGRP中,将EIGRP重分布到RIP中:R2(config)#router eigrp 1R2(config-router)#redistribute rip metric 10000 100 255 1 1500R2(config-router)#exitR2(config)#router ripR2(config-router)#redistribute eigrp 1 metric 10R2(config-router)#exit在R3将OSPF重分布到EIGRP中,将EIGRP重分布到OSPF中:R3(config)#router eigrp 1R3(config-router)#redistribute ospf 1 metric 10000 100 255 1 1500R3(config-router)#distance eigrp 90 150R3(config-router)#exitR3(config)#router ospf 1R3(config-router)#redistribute eigrp 1 metric 30 metric-type 1 subnetsR3(config-router)#exit【实验测试2】显示路由表:R1R2R3R4测试连通性:在R1上ping其他网段,通:实验二:路由重分布综合配置【网络拓扑】【实验目的】1.静态路由重分布2.RIP和EIGRP的重分布3.EIGRP和OSPF的重分布4.重分布路由的查看和调试【实验配置1】R1:Router>enRouter#conf tRouter(config)#host R1R1(config)#no ip domain looR1(config)#int loo0R1(config-if)#ip addr 192.168.19.1 255.255.255.0R1(config-if)#exitR1(config)#int loo1R1(config-if)#ip add 192.168.8.1 255.255.255.0R1(config-if)#exitR1(config)#int s2/0R1(config-if)#ip add 172.16.62.1 255.255.255.0R1(config-if)#clock rate 64000R1(config-if)#no shutR1(config-if)#exitR1(config)#int s3/0R1(config-if)#ip add 172.16.63.1 255.255.255.0R1(config-if)#no shutR1(config-if)#exitR1(config)#router ripR1(config-router)#ver 2R1(config-router)#network 192.168.19.0R1(config-router)#network 192.168.8.0R1(config-router)#exitR1(config)#router ospf 100R1(config-router)#network 172.16.62.0 0.0.0.255 area 0 R1(config-router)#network 172.16.63.0 0.0.0.255 area 0 R1(config-router)#exitR2:Router>enRouter#conf tRouter(config)#host R2R2(config)#no ip domain looR2(config)#int loo0R2(config-if)#ip add 192.168.16.1 255.255.255.0R2(config-if)#exitR2(config)#int loo1R2(config-if)#ip add 192.168.17.1 255.255.255.0R2(config-if)#exitR2(config)#int s3/0R2(config-if)#ip addr 172.16.64.2 255.255.255.0R2(config-if)#clock rate 64000R2(config-if)#no shutR2(config-if)#exitR2(config)#int s2/0R2(config-if)#ip add 172.16.62.2 255.255.255.0R2(config-if)#no shutR2(config-if)#exitR2(config)#router ripR2(config-router)#ver 2R2(config-router)#net 192.168.16.0R2(config-router)#net 192.168.17.0R2(config-router)#exitR2(config)#router ospf 100R2(config-router)#net 172.16.62.0 255.255.255.0 area 0 R2(config-router)#net 172.16.64.0 255.255.255.0 area 0 R2(config-router)#exitR3:Router>enRouter#conf tRouter(config)#host R3R3(config)#no ip domain looR3(config)#int s2/0R3(config-if)#ip add 172.16.64.3 255.255.255.0R3(config-if)#no shutR3(config-if)#exitR3(config)#int s3/0R3(config-if)#ip add 172.16.63.3 255.255.255.0R3(config-if)#clock rate 64000R3(config-if)#no shutR3(config-if)#exitR3(config)#int loo0R3(config-if)#ip add 192.168.24.1 255.255.255.0R3(config-if)#exitR3(config)#router ripR3(config-router)#net 192.168.24.0R3(config-router)#ver 2R3(config-router)#exitR3(config)#router ospf 100R3(config-router)#network 172.16.64.0 0.0.0.255 area 0 R3(config-router)#network 172.16.63.0 0.0.0.255 area 0 R3(config-router)#exitR3(config)#【实验测试1】显示路由表:R1:R2:R3:【重分布配置】R1:R1(config)#router ripR1(config-router)#redistribute ospf 100 match internal external 1 external 2 R1(config-router)#exitR1(config)#router ospf 100R1(config-router)#redistribute rip subnetsR1(config-router)#exitR2:R2(config)#router ripR2(config-router)#redistribute ospf 100 match internal external 1 external 2 R2(config-router)#exitR2(config)#router ospf 100R2(config-router)#redistribute rip subnetsR2(config-router)#exitR3:R3(config)#router ripR3(config-router)#redistribute ospf 100 match internal external 1 external 2 R3(config-router)#exitR3(config)#router ospf 100R3(config-router)#redistribute rip subnetsR3(config-router)#exit【实验测试2】显示路由表:R1:R2:R3:。

实验7:路由重分布基本配置

实验7:路由重分布基本配置

实验 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 参数的值。

Static、RIP、EIGRP和OSPF的重分布

Static、RIP、EIGRP和OSPF的重分布

Static、RIP、EIGRP和OSPF的重分布路由重分布:RIP、EIGRP和OSPF的重分布当许多运行多路由的网络要集成到一起时,必须在这些不同的路由选择协议之间共享路由信息。

在路由选择协议之间交换路由信息的过程称为路由重分布(Route Redistribute)路由重分布时,计量单位和管理距离是必须要考虑的因素。

每一种路由协议都有自己的度量标准,所以在进行重分布时必须转换度量标准,使得它们兼容。

种子度量值(Seed Metric)是定义在路由重分布里的,它是一条从外部重分布进来的路由的初始度量值。

路由协议默认的种子度量值如下表:路由重分布中应该考虑的一些问题:路由环路:路由器有可能从一个自治系统学到的路由信息发送回该自治系统,特别是在做双向重分布的时候路由信息的兼容性问题,每一种路由协议的度量标准metric不同,所以路由器通过重分布所选择的路径可能并非最佳路径;不一致的收敛问题,因为不同的路由协议收敛时间不同实验RIP、EIGRP和OSPF的重分布实验拓扑:实验目的:1.种子度量值的配置2.路由重分布参数的配置3.静态路由重分布的配置4.RIP和EIGRP的重分布5.EIGRP和OSPF的重分布6.重分布路由的查看和调试实验步骤和调试:1、根据拓扑配置路由器R1、R2、R3和R42、在R1上向RIP区域重分布静态路由在向RIP区域重分布路由的时候,必须指定度量值,或者通过"default-metric"设置默认种子度量值,因为RIP默认的种子度量值为无限大,只有重分布静态特殊,可以不指定种子度量值。

3、在R2上将RIP重分布进EIGRP中,EIGRP重分布进RIP中由于EIGRP的度量值相对复杂,所以在重分布时,需要分别设置带宽、延迟、可靠性、负载以及MTU的参数值。

在"Redistribute"命令中用参数"metric"指定的种子度量值优先于在路由模式下使用"default-metric命令设定的默认的种子度量值"4、在R3上将EIGRP重分布进OSPF中,OSPF重分布进EIGRP 中5、在R1上查看路由表以上输出表明R1通过RIPv2学到从R2重分布进RIP的路由。

思科认证:eigrp注入默认路由的三种方式

思科认证:eigrp注入默认路由的三种方式

思科认证:eigrp注入默认路由的三种方式一、静态重分布静态重分布是最简单的一种方式,只需要在路由器上配置两条命令就能够。

首先在R1上添加默认路由,然后在eigrp中使用redistribute 命令。

R1(config)#ip route 0.0.0.0 0.0.0.0 s0/0 //添加默认路由R1(config)#router eigrp 90R1(config-router)#redistribute static //静态重分布二、通告默认路由这个种方式相对也比较简单。

通告默认路由就是把默认路由像普通网段那样宣告到eigrp进程中去。

既然是通告默认路由,那首先得有一条默认路由。

R1(config)#ip route 0.0.0.0 0.0.0.0 s0/0 //添加默认路由R1(config)#router eigrp 90R1(config-router)#network 0.0.0.0 // 宣告默认路由三、ip default-networkip default-network 命令只支持有类IP,所以,在使用这种方式的时候,应该讲使用该网段对应的主类网络号。

比如本拓扑中应该使用12.0.0.0配置脚本如下:R1(config)#ip default-network 12.0.0.0 //使用ip default-network 声明默认路由R1(config)#router eigrp 90R1(config-router)#network 12.0.0.0 //声明该网段R1(config-router)#exitR1(config)#ip route 12.0.0.0 255.0.0.0 null 0最后一条就需要注意了,在使用这种方法的时候,需要保证本机路由表中有对应的表项。

但是我们的12网段是24位掩码,而ip default-network 声明的是主类网络号,8位的掩码。

OSPF、EIGRP、RIP、静态路由的重分布综合试验

OSPF、EIGRP、RIP、静态路由的重分布综合试验
D 192.168.5.0/24 [90/30720] via 192.168.4.2, 00:09:59, FastEthernet0/1
O E2 192.168.1.0/24 [110/20] via 192.168.3.1, 00:37:36, FastEthernet0/0
O 192.168.2.0/24 [110/2] via 192.168.3.1, 00:37:36, FastEthernet0/0
看下r2r4r5的shrun文件和路由表r2的核心配置文件interfacefastethernet00ipaddress192168122552552550duplexautospeedautointerfacefastethernet01ipaddress192168212552552550duplexautospeedautorouterospf100logadjacencychangesredistributeripsubnetsnetwork19216820000255arearouterripredistributeospf100network19216810defaultmetricr4的核心配置interfacefastethernet00ipaddress192168322552552550duplexautospeedautointerfacefastethernet01ipaddress192168412552552550duplexautospeedautoroutereigrp100redistributeospf100network19216840defaultmetric1000102551500autosummaryrouterospf100logadjacencychangesredistributeeigrp100subnetsnetwork19216830000255areadefaultmetric64r5的核心配置interfacefastethernet00ipaddress192168512552552550duplexautospeedautointerfacefastethernet01ipaddress192168422552552550duplexautospeedautoroutereigrp100network66660000network19216840network19216850autosummaryrouterospf100logadjacencychangesipclasslessiproute6666255255255255fastethernet00r2的路由表100081201via1921681100

eigrp协议配置及路由重发布静态路由

eigrp协议配置及路由重发布静态路由

Eigrp的配置以及路由的重发布目的:掌握路由Eigrp的配置以及路由重发布准备:先配置一条以eigrp协议运行的链路PC1——R1——R2——R3——PC2设备基础配置:PC1的配置如下:路由器R1的配置如下:Router1>enRouter1#conf tEnter configuration commands, one per line. End with CNTL/Z.Router1(config)#int f0/0Router1(config-if)#ip address 192.168.1.2 255.255.255.0Router1(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router1(config-if)#int f0/1Router1(config-if)#ip add 172.168.1.1 255.255.255.0Router1(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up路由器R2的配置如下:Router2>enRouter2#conf tEnter configuration commands, one per line. End with CNTL/Z.Router2(config)#int f0/0Router2(config-if)#ip add 172.168.1.2 255.255.255.0Router2(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter2(config-if)#int f0/1Router2(config-if)#ip add 172.168.2.1 255.255.255.0Router2(config-if)#no shRouter2(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up路由器R3的配置如下:Router3>enRouter3#conf tEnter configuration commands, one per line. End with CNTL/Z.Router3(config)#int f0/1Router3(config-if)#ip add 172.168.2.2 255.255.255.0Router3(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upRouter3(config-if)#int f0/0Router3(config-if)#ip add 192.168.2.2 255.255.255.0Router3(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up PC2的配置如下:下面先验证下相邻设备之间是否可以通行经检验以上设置可以使PC1——R1——R2——R3——PC2链路中的相邻设备间互相通信接下来在R1,R2,R3 三台路由器中配置eigrp路由协议配置EIGRP语法:在全局模式下输入route eigrp 【as-number】R1配置如下:Router1(config-if)#exitRouter1(config)#route eigrp 100Router1(config-router)#net 192.168.1.0 0.0.0.255Router1(config-router)#net 172.168.1.0 0.0.0.255配置完R1看下配置是否生效:Router1(config-router)#end%SYS-5-CONFIG_I: Configured from console by consoleRouter1#show runBuilding configuration...Current configuration : 519 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname Router1!!!!!!!!!!!!!!!!!!interface FastEthernet0/0ip address 192.168.1.2 255.255.255.0 duplex autospeed auto!interface FastEthernet0/1ip address 172.168.1.1 255.255.255.0 duplex autospeed auto!router eigrp 100network 192.168.1.0network 172.168.1.0 0.0.0.255auto-summary!ip classless!!!!!!!line con 0line vty 0 4login!!!End看见运行配置中以上配置eigrp协议生效同理在R2,R3中配置eigrp协议R2的配置如下:Router2#conf tEnter configuration commands, one per line. End with CNTL/Z.Router2(config)#route eig 100Router2(config-router)#net 172.168.1.0 0.0.0.255%DUAL-5-NBRCHANGE: IP-EIGRP 100:Neighbor 172.168.1.1 (FastEthernet0/0) is up: new adjacencyRouter2(config-router)#net 172.168.2.0 0.0.0.255R3的配置如下:Router3(config)#rout eigrp 100Router3(config-router)#net 192.168.2.0 0.0.0.255Router3(config-router)#net 172.168.2.0 0.0.0.255Router3(config-router)#%DUAL-5-NBRCHANGE: IP-EIGRP 100:Neighbor 172.168.2.1 (FastEthernet0/1) is up: new adjacencyeigrp协议配置好后。

EIGRP协议解析和关键技术点02(配备实验)CCNP

EIGRP协议解析和关键技术点02(配备实验)CCNP

EIGRP发放默认路由向EIGRP区域注入默认路由:1.重分布静态(首先在边界网关上静态路由R1 0.0.0.0 S0 然后重分布这条默认路由到EIGRP 区域中)R1:ip route 0.0.0.0 0.0.0.0 s0/0router eigrp 90redistribute static 宣告这条静态路由得到的结果如下:可以看到重分布进来的路由管理距离是170work 0.0.0.0 (首先R1上写一条静态路由下一跳为出接口,然后network 0.0.0.0 宣告出去)我们先去R1上取消掉重分布看到的结果如下这里可以表明EIGRP收敛速度很快,那条重分布的静态路由一下就不见了。

通告静态路由后看结果如下由于是在进程中通告出来的所以可以看出它的管理距离是90表示是内部路由3.ip default-network 这种相对于前面的就比较复杂一点(第一步配置ip default-network + 主类网络号,第二步需要在EIGRP进程中通告第一步配置的网络号,第三步需要确保本地路由器有前面宣告的那条路由,那么就得添加一条指向空的路由,也可以开启汇总)不需要添加静态路由. ip default-network 12.0.0.0 ---router ergrp 90 -network 12.0.0.0---ip route 12.0.0.0 255.0.0.0 null 0 ,注意都是主类的网络号。

这种方法在别的协议下也可以做。

在R1上看到的结果如下:这里我们可以通过ping 不存在的IP并抓包检查这条路由是否是默认路由。

可以看到有包发送出去了,证明这条路由就是默认路由,从D*也可以看出来高级EIGRP特性EIGRP的自动汇总在主类边界路由器上,同一个主类A,B,C,D但是不同子网的话也算是个主类边界。

手工汇总:基于接口下,路由传播方向的出接口,在本地会产生一条指向空接口的路由,当所有明细路由消失的时候汇总路由才会消失。

eigrp重分布metric计算

eigrp重分布metric计算

eigrp重分布metric计算EIGRP(Enhanced Interior Gateway Routing Protocol)是一种基于距离向量和增量更新的路由协议,用于在企业网络中动态地选择最佳路径进行数据包转发。

在EIGRP中,路由器之间通过交换Hello消息和Update消息来交换路由信息,并根据这些信息计算出最佳路径。

EIGRP的metric(度量)用于衡量路径的优劣,以便选择最佳路径进行数据包转发。

在EIGRP中,metric由带宽、延迟、可靠性、负载和MTU(最大传输单元)等因素组成。

通过调整这些因素的权重,可以影响路径的选择。

在EIGRP中,重分布是指将其他路由协议(如OSPF、RIP等)学习到的路由信息引入到EIGRP中,并将其作为EIGRP的一部分。

重分布可以使不同的路由协议之间互相学习到对方的路由信息,从而实现网络的互联和互通。

在进行重分布时,需要考虑到不同路由协议之间的metric差异。

不同的路由协议可能使用不同的metric计算方法,导致其计算出的路径可能不一致。

因此,在进行重分布时,需要进行metric的转换和调整,以确保不同路由协议之间的路径选择一致。

在EIGRP中,重分布metric的计算可以通过配置路由器的路由映射表来实现。

路由映射表用于定义不同路由协议之间的metric转换规则,以便将其他协议的metric转换为EIGRP的metric。

通过定义合适的转换规则,可以实现不同路由协议之间的metric一致,从而保证路径选择的一致性。

在配置路由映射表时,可以根据不同的需求和网络环境来选择不同的转换规则。

例如,可以根据带宽、延迟等因素来进行转换,也可以根据具体的应用场景来进行转换。

通过灵活配置路由映射表,可以满足不同网络的需求,确保路径选择的准确性和可靠性。

除了进行metric的转换外,还可以通过调整EIGRP的metric权重来影响路径的选择。

EIGRP允许管理员根据实际需求来调整带宽、延迟等因素的权重,从而影响路径选择的优先级。

EIGRP路由选择协议静态路由重发布

EIGRP路由选择协议静态路由重发布

EIGRP路由选择协议静态路由重发布作者:栾鹤来源:《科技资讯》2011年第02期摘要:本文通过一次实际的组网经历简述了在EIGRP协议运行环境,与其他非EIGRP路由选择运行环境互通过程中遇到的问题及其原因分析和解决过程。

附带讨论了路由的一些基本概念。

关键词:EIGRP 静态路由路由重发布中图分类号:TN915 文献标识码:A 文章编号:1672-3791(2011)01(b)-0013-01某银行的储蓄网点互联用的是我们公司提供的DDN业务,由于业务的发展欲增加十几个网点,由我们公司提供联网用的路由器,并提供技术支持。

路由器选用的是H公司新出的AR28-09B,与之对联的设备是H公司的R3600路由器。

1问题的提出由于R3600路由器上联的是CISCO的路由器R2600,其上运行的都是EIGRP路由选择协议,与之相联的R3600路由器也是运行的EIGRP路由选择协议。

但是EIGRP路由选择协议是CISCO公司的私有路由选择协议。

R3600是H公司的早期的产品,运行的是非授权的EIGRP路由选择协议。

后来的产品AR28-09B由于知识产权的纠纷,H公司取消了对EIGRP路由选择协议的支持。

1.1 初始配置在AR28-09B上,配置如下:Interface Ethernet0ip address 192.168.1.1 255.255.255.240interface serial0link-protocol pppip address 10.1.1.15 255.255.255.252Ip route-static 0.0.0.0 0.0.0.0 serial 0 preference 60在R3600上,相关的配置部分:Interface Ethernet0Ip address 172.1.1.1 255.255.255.0Interface serial2:2Link-protocol pppIp address 10.1.1.14 255.255.255.252Ip route-static 0.0.0.0 0.0.0.0 172.1.1.2 preference 60在R2600上,相关的配置部分:Interface Ethernet0Ip address 172.1.1.2 255.255.255.01.2 测试结果在预先做的模拟测试中发现,链路起来的情况下,在路由器AR28-09B上可以ping通上行的R3600上面的R2600的管理接口172.1.1.2,但是从AR28-09B以太网口出来的主机192.168.1.2上却ping不通上端的R3600上面的R2600的管理接口172.1.1.2.反方向ping也是一样.检查R2600,发现其路由表上没有AR28-09B的ethernet网口的网络地址的路由表项,故从AR28-09B ping上来的数据包,虽然可以到达R2600,但是回来的ICMP包,却找不到回程的路由,而被R2600丢掉了,致使ping过程失败。

EIGRP与静态路由重分布

EIGRP与静态路由重分布

EIGRP与静态路由重分布EIGRP与静态路由重分布一、网络拓扑图二、设备配置R1:Router>Router>enaRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hos R1R1(config)#INT F 0/0R1(config-if)#ip address 192.168.1.254 255.255.255.0R1(config-if)#no shutdownR1(config-if)#exit%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on InterfaceFastEthernet0/0, changed state to up R1(config)#R1(config)#int s 2/0R1(config-if)#ip address 192.168.2.1 255.255.255.0R1(config-if)#clo ra 64000R1(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial2/0, changed state to downR1(config-if)#exiR1(config)#router eigrp 1R1(config-router)#network 192.168.1.0R1(config-router)#network 192.168.2.0R1(config-router)#exiR1(config)#do wrBuilding configuration...[OK]R2:Router>Router>enaRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hos R2R2(config)#int s 2/0R2(config-if)#ip address 192.168.2.2 255.255.255.0R2(config-if)#no shutdownR2(config-if)#exit%LINK-5-CHANGED: Interface Serial2/0, changed state to up R2(config)#int s 3/0%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to upR2(config-if)#ip address 192.168.3.1 255.255.255.0R2(config-if)#clo ra 64000R2(config-if)#no shuR2(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial3/0, changed state to downR2(config-if)#exiR2(config)#router eigrp 1R2(config-router)#network 192.168.2.0%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 192.168.2.1 (Serial2/0) is up: new adjacencyR2(config-router)#redistribute static metric 1000 100 1 250 150R2(config-router)#exiR2(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.2R2(config)#ip route 192.168.4.0 255.255.255.0 192.168.3.2R2(config)#do wrBuilding configuration...[OK]R3:Router>Router>enaRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hos R3R3(config)#int f 0/0R3(config-if)#ip address 192.168.4.254 255.255.255.0R3(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changedstate to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upR3(config-if)#exiR3(config)#int s 2/0R3(config-if)#ip address 192.168.3.2 255.255.255.0R3(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial2/0, changed state to up R3(config-if)#exiR3(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.1%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to upR3(config)#ip route 192.168.2.0 255.255.255.0 192.168.3.1R3(config)#ip route 192.168.1.0 255.255.255.0 192.168.3.1R3(config)#do wrBuilding configuration...[OK]测试结果:从PC0 ping PC1:。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

EIGRP与静态路由重分布
一、网络拓扑图
二、设备配置
R1:
Router>
Router>ena
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hos R1
R1(config)#INT F 0/0
R1(config-if)#ip address 192.168.1.254 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R1(config)#
R1(config)#int s 2/0
R1(config-if)#ip address 192.168.2.1 255.255.255.0
R1(config-if)#clo ra 64000
R1(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to down
R1(config-if)#exi
R1(config)#router eigrp 1
R1(config-router)#network 192.168.1.0
R1(config-router)#network 192.168.2.0
R1(config-router)#exi
R1(config)#do wr
Building configuration...
[OK]
R2:
Router>
Router>ena
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hos R2
R2(config)#int s 2/0
R2(config-if)#ip address 192.168.2.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
R2(config)#int s 3/0
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
R2(config-if)#ip address 192.168.3.1 255.255.255.0
R2(config-if)#clo ra 64000
R2(config-if)#no shu
R2(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial3/0, changed state to down
R2(config-if)#exi
R2(config)#router eigrp 1
R2(config-router)#network 192.168.2.0
%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 192.168.2.1 (Serial2/0) is up: new adjacency
R2(config-router)#redistribute static metric 1000 100 1 250 150
R2(config-router)#exi
R2(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.2
R2(config)#ip route 192.168.4.0 255.255.255.0 192.168.3.2
R2(config)#do wr
Building configuration...
[OK]
R3:
Router>
Router>ena
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hos R3
R3(config)#int f 0/0
R3(config-if)#ip address 192.168.4.254 255.255.255.0
R3(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R3(config-if)#exi
R3(config)#int s 2/0
R3(config-if)#ip address 192.168.3.2 255.255.255.0
R3(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
R3(config-if)#exi
R3(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.1
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
R3(config)#ip route 192.168.2.0 255.255.255.0 192.168.3.1
R3(config)#ip route 192.168.1.0 255.255.255.0 192.168.3.1
R3(config)#do wr
Building configuration...
[OK]
测试结果:
从PC0 ping PC1:。

相关文档
最新文档