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

[求助] 关于OSPF不同区域之间学习路由的问题?

[复制链接]
发表于 2016-6-27 11:18:29 | 显示全部楼层 |阅读模式
5鸿鹄币
比如说这张拓扑图,R3和R4的直连接口和R4的环回口都属于Area54,且彼此已经建立了邻接关系,那为什么我在R3上看不到R4的环回口路由呢?R3#show running-config
Building configuration...

Current configuration : 1361 bytes
!
! Last configuration change at 11:08:28 UTC Mon Jun 27 2016
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
!
hostname R3
!
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
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/1
ip address 23.1.1.3 255.255.255.0
serial restart-delay 0
!
interface Serial2/2
ip address 34.1.1.3 255.255.255.0
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
router-id 3.3.3.3
network 23.1.1.3 0.0.0.0 area 11
network 34.1.1.3 0.0.0.0 area 54
!         
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

R3#  


R4#show running-config
Building configuration...

Current configuration : 1412 bytes
!
! Last configuration change at 11:07:58 UTC Mon Jun 27 2016
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
!
hostname R4
!
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 Loopback1
ip address 172.16.2.2 255.255.255.0
!
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
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/2
ip address 34.1.1.4 255.255.255.0
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
router-id 4.4.4.4
network 34.1.1.4 0.0.0.0 area 54
network 172.16.2.1 0.0.0.0 area 54
!
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

R4#   

捕获.PNG

最佳答案

查看完整内容

哦, 你在R4上这个network语句错了: network 172.16.2.1 0.0.0.0 area 54 应该是 network 172.16.2.2 0.0.0.0 area 54
发表于 2016-6-27 11:18:30 | 显示全部楼层
哦, 你在R4上这个network语句错了:

network 172.16.2.1 0.0.0.0 area 54

应该是

network 172.16.2.2 0.0.0.0 area 54

点评

perfect!  发表于 2016-6-30 11:16

评分

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

查看全部评分

沙发 2016-6-27 11:18:30 回复 收起回复
回复

使用道具 举报

发表于 2016-6-27 12:04:35 | 显示全部楼层
查一查virtual link吧
板凳 2016-6-27 12:04:35 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-6-27 14:47:48 | 显示全部楼层
sboku 发表于 2016-6-27 12:04
查一查virtual link吧

但是R3的S2/2和R4的S2/2包括R3的环回口都在一个区域内,他们怎么可能不传递路由呢?我如果单独只脱出两台路由器,直连后就彼此就可以学到彼此的路由(这两台路由器所有接口都在同一Area内,且是非零区域)
地板 2016-6-27 14:47:48 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-6-27 14:49:57 | 显示全部楼层
sboku 发表于 2016-6-27 12:04
查一查virtual link吧

我说的其实是这种情况。R1和R2都在同一个Area内,R2上有一个环回口且都宣告进同一区域内,R1的路由表上就有R2环回口的路由信息。
捕获.PNG
5# 2016-6-27 14:49:57 回复 收起回复
回复

使用道具 举报

发表于 2016-6-27 23:55:28 | 显示全部楼层
碰到ospf的问题,很多时候你可以去看一下本路由器上,有没有你期望看见,而没有的那个条目的LSA,毕竟ospf的所有条目都是由LSA 获得的。

你可以在R3上看下,到底有没有关于 R4 lo0的LSA ,你再做一下, 如果你还是原来配置,明显没有。

因为:
network 172.16.2.1 0.0.0.0 area 54

interface Loopback1
ip address 172.16.2.2 255.255.255.0

看出问题来了吗? 你根本就没有把loopback0 宣告进ospf 或者说宣告错了
6# 2016-6-27 23:55:28 回复 收起回复
回复

使用道具 举报

发表于 2016-6-28 02:02:03 | 显示全部楼层
你能把所有路由器的配置都放上来么?  我可以来做做实验。
7# 2016-6-28 02:02:03 回复 收起回复
回复

使用道具 举报

发表于 2016-6-28 09:53:34 | 显示全部楼层
ccnafasttrack 发表于 2016-6-27 15:49
我说的其实是这种情况。R1和R2都在同一个Area内,R2上有一个环回口且都宣告进同一区域内,R1的路由表上就 ...

你的R4的IP地址写错了

interface Loopback1
ip address 172.16.2.2 255.255.255.0

router ospf 1
router-id 4.4.4.4
network 34.1.1.4 0.0.0.0 area 54
network 172.16.2.1 0.0.0.0 area 54

8# 2016-6-28 09:53:34 回复 收起回复
回复

使用道具 举报

发表于 2016-6-28 09:53:53 | 显示全部楼层
dingjerry 发表于 2016-6-28 03:06
哦, 你在R4上这个network语句错了:

network 172.16.2.1 0.0.0.0 area 54

9# 2016-6-28 09:53:53 回复 收起回复
回复

使用道具 举报

发表于 2016-6-28 09:54:39 | 显示全部楼层
sboku 发表于 2016-6-28 10:53
你的R4的IP地址写错了

interface Loopback1

噢,已经有人回答你了。晚了些

点评

good  发表于 2016-6-30 11:17

评分

参与人数 1好评度 +1 收起 理由
ccnafasttrack + 1 神马都是浮云

查看全部评分

10# 2016-6-28 09:54:39 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-6-30 11:17:37 | 显示全部楼层

没有关系,看来还得认真一点
11# 2016-6-30 11:17:37 回复 收起回复
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-15 05:10 , Processed in 0.092196 second(s), 26 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

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