设为首页收藏本站language 语言切换
查看: 1479|回复: 3
收起左侧

[求助] 关于将OSPF路由重分发进RIP的话,必须在redistribute ospf 1 后面加上metric字段吗?

[复制链接]
发表于 2016-4-16 16:53:33 | 显示全部楼层 |阅读模式
15鸿鹄币
如果不加metrcis字段是不是OSPF就进不到RIP域内?至少我通过实验的结果是如此?
这个是R2 ASBR路由器的配置:
R2#show runn
Building configuration...

Current configuration : 1425 bytes
!
! Last configuration change at 11:25:35 UTC Sat Apr 16 2016
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
!
!
!
!         
no ip domain lookup
ip cef
ipv6 multicast rpf use-bgp
no ipv6 cef
!
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
!         
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex full
!
interface FastEthernet1/0
no ip address
shutdown
speed auto
duplex auto
!
interface FastEthernet1/1
no ip address
shutdown
speed auto
duplex auto
!         
interface Serial2/0
ip address 192.168.1.2 255.255.255.0
serial restart-delay 0
!
interface Serial2/1
ip address 192.168.2.1 255.255.255.0
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
redistribute rip subnets
network 192.168.2.1 0.0.0.0 area 0
!
router rip
version 2
redistribute ospf 1
network 192.168.1.0
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line vty 0 4
login
!
!
end

R2#   

在执行完上述操作之后,发现R3上有R1上的路由,但是R1上却没有R3上的路由,是不是就是我说的那个原因?

拓扑图

拓扑图

最佳答案

查看完整内容

将ospf重分布进rip没加metric就会使用默认值,默认值是16跳,即不可达
发表于 2016-4-16 16:53:34 | 显示全部楼层
将ospf重分布进rip没加metric就会使用默认值,默认值是16跳,即不可达

点评

回答的太棒了  发表于 2016-4-18 08:48

评分

参与人数 1好评度 +1 收起 理由
ccnafasttrack + 1 很给力!

查看全部评分

沙发 2016-4-16 16:53:34 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-4-18 08:47:40 | 显示全部楼层
风的痕迹32768 发表于 2016-4-17 23:58
将ospf重分布进rip没加metric就会使用默认值,默认值是16跳,即不可达

原来如此,多谢前辈
板凳 2016-4-18 08:47:40 回复 收起回复
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-8 14:24 , Processed in 0.073841 second(s), 18 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表