ospf与rip区别、RIP双向重发布时如何解决次优路径问题?

路由重分发&redistribute&命令
Redistribution
Routes learned by some other means are selectively redistributed
into a routing
protocol from one of three sources:
-Another routing protocol& 另外的一种路由协议
routes&&&&&&&&&&&&
-Directly connected routes 直连的路由
Routing loop prevention:
-Only routes used by the router itself are redistributed
-Double redistribution inside the same router is not
Using Seed Metrics
The initial,or seed,metric for a route is derived from the directly
router interface.
Once a compatible metric is established,the metric will increase in
increments
just like any other route.
将RIP 重分发进入 EIGRP
router eigrp 110
net 10.0.0.0
redistribute rip
default-metric
注: Use the “default-metric” command to
establish the seed metric for the route or specify the metric when
redistributing.
关于 Default Seed Metrics
Protocol&&&&&&&&
Default Seed Metric
RIP&&&&&&&&&&&&&
EIGRP&&&&&&&&&&&
OSPF&&&&&&&&&&&&
20 for all except BGP,which is
1&&&&&&&&&&&&
BGP&&&&&&&&&&&&&
BGP metric is set to IGP metric value
One-Point Redistribution
One-point redistribution
-One-default route or static routes needed
单点单向:默认路由或者静态路由可能需要
单点双向:一个路由器运行两种不同的协议。比如ASBR路由器。
需要将rip& 重分发进 ospf
需要将ospf 重分发进 rip
Multipoint
redistribution& 多点
-One-way& 单向
-Two-way& 双向
可能出现一些次优路径 或者 路由环路的问题。
重分发可能产生的问题
Routing loop 路由环路
Suboptimal path selection 次优路径
Incompatible routing information 不兼容得路由信息
Inconsistent convergence time&&
不一致的收敛时间
Solutions:解决方案
1.Administrative distance& 手动修改管理距离
2.Route maps 路由映射
3.Distribution lists 分发列表
4.Manipulation of metrics&
手动地修改metric值。
Steps to Configure Redistribution to
重分发RIP的步骤:
1.Enter router RIP configuration mode 进入 RIP路由模式
& router rip&
R(config-router)#
redistribute ospf 1
R(config-router)# redistribute ospf 1
match&& Redistribution of OSPF
metric& Metric for redistributed routes
route-map Route map reference
注意:metric值的设置。设置一个合适的度量值。
These optional parameters influence redistribution into the RIP
routing protocol.
看个实际例子
router rip
redistribute ospf 1 metric 3
重分发 OSPF的步骤:
R(config-router)#
redistribute eigrp 100 metric 100 subnets
R(config-router)# redistribute eigrp 100
metric&&&&&&&&&&
Metric for redistributed routes
metric-type&&&&&
OSPF/IS-IS exterior metric type for redistributed routes
route-map&&&&&&&
Route map reference
subnets&&&&&&&&&
Consider subnets for redistribution into OSPF
tag&&&&&&&&&&&&&
set tag for routes redistributed into OSPF
注意: subnets 参数,通告子网, 如果没有这个参数的话,那么子网将无法通告。
再看个相对重要参数 metric-type 的例子吧
router ospf 1
redistribute eigrp 100 subnets metric-type 1
Redistribute from EIGRP AS 100 into OSPF and change the metric type
from type 2
to type 1.
关于EIGRP的重分发
R(config-router)#
redistribute ospf 1
R(config-router)# redistribute ospf 1
match& Redistribution of OSPF routes
metric Metric for redistributed routes
route-map& Route map reference
default-mertic 5 1
1. The default metric is set to :Bandwidth in kilobits =10000,
Delay in tens of microseconds =100, Reliability=255(maximum),Load
=1(minimum),MTU=1500bytes
2.You need to use this command when redistributing from another
peotocol with incompatible metric into EIGRP
3.You do not need this command when redistributing :
-static routes to interface or connected networks
-between EIGRP processes
汇总之后重分发:
interface s0
ip summary-address rip 10.0.0.0 255.250.0.0
如果是 rip 或者是 eigrp 汇总网络重分发的时候, 近接口写。
router ospf 1
area 1 range 10.8.0.0 255.250.0.0
然后将汇总 完得网络 重分发。
当然如果是ASBR,则使用命令summary address
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。多点双向路由重发布策略设计_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
文档贡献者
评价文档:
多点双向路由重发布策略设计
双​向​路​由​重​发​布​策​略
把文档贴到Blog、BBS或个人站等:
普通尺寸(450*500pix)
较大尺寸(630*500pix)
大小:681.00KB
登录百度文库,专享文档复制特权,财富值每天免费拿!
你可能喜欢兰蒂卢斯 的BLOG
用户名:兰蒂卢斯
文章数:46
访问量:2797
注册日期:
阅读量:30808
阅读量:1478
阅读量:754
阅读量:651
51CTO推荐博文
实验拓扑:如图,属于ospf中的双点双向重分发,上面方框表示运行的是ospf协议,下面方框表示运行的是RIP协议。实验目的:1.将RIP和OSPF互相重分发,观察会发生什么问题& & & & & 2.通过改变管理距离,解决次优路径问题实验步骤:首先完成基本配置R1R1#conf tEnter configuration commands, one per line. &End with CNTL/Z.R1(config)#int f0/1R1(config-if)#ip add 10.1.12.1 255.255.255.0R1(config-if)#no shR1(config-if)#int f0/0R1(config-if)#ip add 10.1.13.1 255.255.255.0R1(config-if)#no shR1(config-if)#int l0 & & & & & & & & & & & &R1(config-if)#ip add 1.1.1.1 255.255.255.255R1(config-if)#no shR1(config-if)#exR2R2#conf tEnter configuration commands, one per line. &End with CNTL/Z.R2(config)#int f0/0R2(config-if)#ip add 10.1.12.2 255.255.255.0R2(config-if)#no shR2(config-if)#int f0/1R2(config-if)#ip add 10.1.24.2 255.255.255.0R2(config-if)#no shR2(config-if)#int l0R2(config-if)#ip add 2.2.2.2 255.255.255.255R2(config-if)#no shR2(config-if)#exR3R3#conf tEnter configuration commands, one per line. &End with CNTL/Z.R3(config-if)#int f0/1R3(config-if)#ip add 10.1.13.3 255.255.255.0R3(config-if)#no shR3(config-if)#int f0/0R3(config-if)#ip add 10.1.34.3 255.255.255.0R3(config-if)#no shR3(config-if)#int l0R3(config-if)#ip add 3.3.3.3 255.255.255.255R3(config-if)#no shR3(config-if)#exR4R4#conf tEnter configuration commands, one per line. &End with CNTL/Z.R4(config)#int l0R4(config-if)#ip add 4.4.4.4 255.255.255.255R4(config-if)#no shR4(config-if)#int f0/0R4(config-if)#ip add 10.1.24.4 255.255.255.0R4(config-if)#no shR4(config-if)#int f0/1R4(config-if)#ip add 10.1.34.4 255.255.255.0R4(config-if)#no shR4(config-if)#ex接着在R1,R2,R3上运行OSPF ,在R2,R3,R4上运行RIP,注意宣告网段时候不要重叠。R1(config)#router ospf 1R1(config-router)#router-id 1.1.1.1R1(config-router)#network 1.1.1.1 0.0.0.0 a 1&R1(config-router)#network 10.1.12.0 0.0.0.255 a 1R1(config-router)#network 10.1.13.0 0.0.0.255 a 1R2(config)#router ospf 1R2(config-router)#router-id 2.2.2.2R2(config-router)#network 10.1.12.0 0.0.0.255 a 1R2(config-router)#network 10.1.12.0 0.0.0.255 a 1R2(config-router)#exR3(config)#router ospf 1R3(config-router)#router-id 3.3.3.3&R3(config-router)#network 10.1.13.0 0.0.0.255 a 1R3(config-router)#exR3(config)#endR2(config)#router ripR2(config-router)#version 2R2(config-router)#no auto-summary&R2(config-router)#network 10.0.0.0R3(config)#router rip&R3(config-router)#version 2R3(config-router)#no auto-summary&R3(config-router)#network 10.0.0.0R3(config-router)#exR4(config)#router ripR4(config-router)#version 2R4(config-router)#no auto-summary&R4(config-router)#network 4.4.4.4R4(config-router)#network 10.0.0.0此时,在R3上show ip route,观察去往4.4.4.4的路由走向R3#show ip route.......& & &1.0.0.0/32 is subnetted, 1 subnetsO & & & 1.1.1.1 [110/11] via 10.1.13.1, 00:02:01, FastEthernet0/1& & &3.0.0.0/32 is subnetted, 1 subnetsC & & & 3.3.3.3 is directly connected, Loopback0& & &4.0.0.0/32 is subnetted, 1 subnetsR & & & 4.4.4.4 [120/1] via 10.1.34.4, 00:00:05, FastEthernet0/0& & &10.0.0.0/24 is subnetted, 4 subnetsC & & & 10.1.13.0 is directly connected, FastEthernet0/1O & & & 10.1.12.0 [110/20] via 10.1.13.1, 00:02:01, FastEthernet0/1R & & & 10.1.24.0 [120/1] via 10.1.34.4, 00:00:07, FastEthernet0/0C & & & 10.1.34.0 is directly connected, FastEthernet0/0发现是直接通过RIP从R4的f0/1走的,没问题。2.路由重分发这时候,在R2,R3上将ospf重分发入ripR2(config)#router rip&R2(config-router)#redistribute ospf 1 metric 2R3(config)#router rip&R3(config-router)#redistribute ospf 1 metric 2注意:将ospf注入rip时,要加上度量值metric,否则默认不可达。这时候,继续在R3上show ip routeR3#show ip route........& & &1.0.0.0/32 is subnetted, 1 subnetsO & & & 1.1.1.1 [110/11] via 10.1.13.1, 00:18:38, FastEthernet0/1& & &3.0.0.0/32 is subnetted, 1 subnetsC & & & 3.3.3.3 is directly connected, Loopback0& & &4.0.0.0/32 is subnetted, 1 subnetsR & & & 4.4.4.4 [120/1] via 10.1.34.4, 00:00:07, FastEthernet0/0& & &10.0.0.0/24 is subnetted, 4 subnetsC & & & 10.1.13.0 is directly connected, FastEthernet0/1O & & & 10.1.12.0 [110/20] via 10.1.13.1, 00:18:38, FastEthernet0/1R & & & 10.1.24.0 [120/1] via 10.1.34.4, 00:00:08, FastEthernet0/0C & & & 10.1.34.0 is directly connected, FastEthernet0/0依然是没问题的。在R2上将RIP注入ospfR2(config)#router ospf 1R2(config-router)#redistribute rip subnets&这时候,在R3上查看路由表R3#show ip route.....& & &1.0.0.0/32 is subnetted, 1 subnetsO & & & 1.1.1.1 [110/11] via 10.1.13.1, 00:00:05, FastEthernet0/1& & &3.0.0.0/32 is subnetted, 1 subnetsC & & & 3.3.3.3 is directly connected, Loopback0& & &4.0.0.0/32 is subnetted, 1 subnetsO E2 & &4.4.4.4 [110/20] via 10.1.13.1, 00:00:05, FastEthernet0/1& & &10.0.0.0/24 is subnetted, 4 subnetsC & & & 10.1.13.0 is directly connected, FastEthernet0/1O & & & 10.1.12.0 [110/20] via 10.1.13.1, 00:00:05, FastEthernet0/1O E2 & &10.1.24.0 [110/20] via 10.1.13.1, 00:00:07, FastEthernet0/1C & & & 10.1.34.0 is directly connected, FastEthernet0/0因为ospf的AD值小于RIP,所以在R3上去往4.4.4.4会优先选择ospf的路径,就是R3―R1―R2―R4这条路,明明只需要走R3―R4这条路,却需要走一大圈,这就是所谓的次优路径,在现网中会造成大量的路由资源浪费。并且,在R3上将RIP重分发入ospf也会失败,因为,在R3路由表中的RIP路由已经被ospf覆盖,重分发路由是要以路由表中存在路由作为前提。那么如何解决这种问题?可以通过修改AD值来控制路由的走向。3.修改AD值,解决次优路径首先做一个ACL访问列表允许目标网段R3(config)#access-list 1 permit 4.4.4.4在RIP中修改RIP到达R4的AD值为100(小于ospf),并且应用ACLR3(config)#router ripR3(config-router)#distance 100 10.1.34.4 0.0.0.255 1R3(config-router)#endR3#clear ip route * & & & & 清空下路由表R3#show ip route &&.......& & &1.0.0.0/32 is subnetted, 1 subnetsO & & & 1.1.1.1 [110/11] via 10.1.13.1, 00:00:01, FastEthernet0/1& & &3.0.0.0/32 is subnetted, 1 subnetsC & & & 3.3.3.3 is directly connected, Loopback0& & &4.0.0.0/32 is subnetted, 1 subnetsR & & & 4.4.4.4 [100/1] via 10.1.34.4, 00:00:01, FastEthernet0/0& & &10.0.0.0/24 is subnetted, 4 subnetsC & & & 10.1.13.0 is directly connected, FastEthernet0/1O & & & 10.1.12.0 [110/20] via 10.1.13.1, 00:00:01, FastEthernet0/1O E2 & &10.1.24.0 [110/20] via 10.1.13.1, 00:00:02, FastEthernet0/1C & & & 10.1.34.0 is directly connected, FastEthernet0/0经过调整,发现路由已经正常了。在R2上也要做一样的修改,否则R2去往4.4.4.4也会出现次优路径R2(config)#access-list 1 permit 4.4.4.4R2(config)#router ripR2(config-router)#distance 100 10.1.24.4 0.0.0.255 1R2(config-router)#end在R3上也将RIP重分发入ospfR3(config)#router ripR3(config-router)#redistribute rip subnetsR3(config-router)#end & & & & & & & &&最后在R1上查看去往R4的环回口4.4.4.4是否正常R1#clear ip route *R1#show ip route &&......& & &1.0.0.0/32 is subnetted, 1 subnetsC & & & 1.1.1.1 is directly connected, Loopback0& & &4.0.0.0/32 is subnetted, 1 subnetsO E2 & &4.4.4.4 [110/20] via 10.1.13.3, 00:00:01, FastEthernet0/0& & & & & & & & [110/20] via 10.1.12.2, 00:00:01, FastEthernet0/1& & &10.0.0.0/24 is subnetted, 4 subnetsC & & & 10.1.13.0 is directly connected, FastEthernet0/0C & & & 10.1.12.0 is directly connected, FastEthernet0/1O E2 & &10.1.24.0 [110/20] via 10.1.12.2, 00:00:01, FastEthernet0/1O E2 & &10.1.34.0 [110/20] via 10.1.13.3, 00:00:02, FastEthernet0/0负载均衡,没有问题,实验结束。本文出自 “” 博客,请务必保留此出处
了这篇文章
类别:┆阅读(0)┆评论(0)在rip和ospf多点重分发时什么情况下出现环路_百度知道
在rip和ospf多点重分发时什么情况下出现环路
提问者采纳
如果不做处理! 还有双向双点重分发的时候双向多点重分发的时候,会出现路由环路和次优路径的现象
提问者评价
其他类似问题
为您推荐:
ospf的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁请问为什么要做双点双向重分发,会产生什么问题(OSPF---BGP, RIP---BGP)_百度知道
请问为什么要做双点双向重分发,会产生什么问题(OSPF---BGP, RIP---BGP)
请问为什么要做双点双向重分发,会产生什么问题(OSPF---BGP, RIP---BGP)
我有更好的答案
可以配合分发列表,路由映射表,做双点双向重分发的话会出现次优路径或者路由环路重分发是为了让两种不同的路由协议能够相互学习路由条目,前缀列表等技术或修改管理距离来解决
路由从高AD协议灌如低AD协议,会发生回灌。反之,路由从低AD协议灌如高AD协议,不会发生回灌。
请解释下什么叫回灌谢谢
为了将不同域的路由互相引入
其他类似问题
为您推荐:
ospf的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁

我要回帖

更多关于 ospf与rip区别 的文章

 

随机推荐