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

[已解决] 高手请进,关于OSPF不能通告3类LSA的问题。

[复制链接]
发表于 2011-7-15 22:52:26 | 显示全部楼层 |阅读模式
本帖最后由 小乔 于 2011-7-16 09:37 编辑

23.png
实验环境:模拟器dynamips
IOS :c3640-jk9o3s-mz.124-7a.bin
SW用一台路由器模拟实现
简单拓扑               
                        R1
                       e2/0
                         |
                         |
R2-e2/0---------SW----------e2/0-R3-s0/0--------------s0/0-R5


R1配置:
interface Loopback0
ip address 1.1.1.1 255.255.255.0
ip ospf network point-to-point
interface FastEthernet2/0
no switchport
ip address 10.1.1.1 255.0.0.0
router ospf 1
router-id 1.1.1.1
log-adjacency-changes
network 1.1.1.1 0.0.0.0 area 0
network 10.1.1.1 0.0.0.0 area 0

R2配置:
interface Loopback0
ip address 2.2.2.2 255.255.255.0
ip ospf network point-to-point
interface FastEthernet2/0
no switchport
ip address 10.2.2.2 255.0.0.0
ip ospf priority 0
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
network 2.2.2.2 0.0.0.0 area 0
network 10.2.2.2 0.0.0.0 area 0

R3配置:
interface Loopback0
ip address 3.3.3.3 255.255.255.0
ip ospf network point-to-point
interface Serial0/0
ip address 11.1.1.1 255.255.0.0
serial restart-delay 0
no dce-terminal-timing-enable
interface FastEthernet2/0
no switchport
ip address 10.3.3.3 255.0.0.0
ip ospf priority 0
router ospf 1
log-adjacency-changes
network 3.3.3.3 0.0.0.0 area 0
network 10.3.3.3 0.0.0.0 area 0
!
router ospf 2
log-adjacency-changes
network 11.1.1.1 0.0.0.0 area 1

SW配置:
no ip routing

R5配置:
!
interface Loopback0
ip address 5.5.5.5 255.255.255.0
ip ospf network point-to-point
!
interface Serial0/0
ip address 11.1.2.2 255.255.0.0
serial restart-delay 0
no dce-terminal-timing-enable
router ospf 2
log-adjacency-changes
network 5.5.5.5 0.0.0.0 area 1
network 11.1.2.2 0.0.0.0 area 1


以上是我在模拟器上的配置,请留意以下的信息,我从这些信息中发现R3是一个ABR却不能通告3类LSA,请各位高手指点一下为什么会这样,是我哪里出错了,还是我的理解有误呢:

r3#sh ip ospf database
            OSPF Router with ID (11.1.1.1) (Process ID 2)
                Router Link States (Area 1)
Link ID         ADV Router      Age         Seq#       Checksum Link count
5.5.5.5         5.5.5.5         327         0x80000002 0x0070C0 3
11.1.1.1        11.1.1.1        323         0x80000004 0x00480F 2
            OSPF Router with ID (3.3.3.3) (Process ID 1)
                Router Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum Link count
1.1.1.1         1.1.1.1         540         0x80000003 0x005C9E 2
2.2.2.2         2.2.2.2         540         0x80000002 0x007578 2
3.3.3.3         3.3.3.3         539         0x80000002 0x008C53 2
                Net Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum
10.1.1.1        1.1.1.1         540         0x80000001 0x0033D9

R5也没有学到MA网络中的路由由于它没有收到3类LSA,所以没有MA网络的路由。
r5#sh ip ospf database
            OSPF Router with ID (5.5.5.5) (Process ID 2)
                Router Link States (Area 1)
Link ID         ADV Router      Age         Seq#       Checksum Link count
5.5.5.5         5.5.5.5         423         0x80000002 0x0070C0 3
11.1.1.1        11.1.1.1        421         0x80000004 0x00480F 2


下面是在R1、R3、R5路由表的情况

r1#sh 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
     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Loopback0
     2.0.0.0/24 is subnetted, 1 subnets
O       2.2.2.0 [110/2] via 10.2.2.2, 00:00:09, FastEthernet2/0
     3.0.0.0/24 is subnetted, 1 subnets
O       3.3.3.0 [110/2] via 10.3.3.3, 00:00:09, FastEthernet2/0
C    10.0.0.0/8 is directly connected, FastEthernet2/0


r3#sh 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
     1.0.0.0/24 is subnetted, 1 subnets
O       1.1.1.0 [110/2] via 10.1.1.1, 00:01:12, FastEthernet2/0
     2.0.0.0/24 is subnetted, 1 subnets
O       2.2.2.0 [110/2] via 10.2.2.2, 00:01:12, FastEthernet2/0
     3.0.0.0/24 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Loopback0
     5.0.0.0/24 is subnetted, 1 subnets
O       5.5.5.0 [110/65] via 11.1.2.2, 00:01:35, Serial0/0
C    10.0.0.0/8 is directly connected, FastEthernet2/0
     11.0.0.0/16 is subnetted, 1 subnets
C       11.1.0.0 is directly connected, Serial0/0


r5#sh 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
     5.0.0.0/24 is subnetted, 1 subnets
C       5.5.5.0 is directly connected, Loopback0
     11.0.0.0/16 is subnetted, 1 subnets
C       11.1.0.0 is directly connected, Serial0/0

在这里我们可以看到R5并没有学到MA网络的路由,我认为主要原因是因为ABR没有将MA网络的路由用3类LSA通告给区域1,可是什么原因导致,R3不产生3类LSA呢?其实我这个实验就是想验证一下3类LSA的发布和通告的。
发表于 2011-7-16 00:28:09 | 显示全部楼层
看下你R3的路由表,有没有R1,R2上的路由
沙发 2011-7-16 00:28:09 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2011-7-16 01:01:22 | 显示全部楼层
楼主为什么要将11.1.1.0网段通告到OSPF进程2里呢???虽然R3和R5能起OSPF邻居关系,但是路由是学习不到的,难道你想做OSPF多进程重发布??

更改如下,将R3与R5都起OSPF进程1,11.1.1.0网段宣告到area 1里面。
这时看R5的OSPF 数据库就会有3类的LSA了

点评

虽然暂时没有给出这样做的原因,但起码是问题得到解决,难道兄弟就是传说中的高手!  发表于 2011-7-19 20:58

评分

参与人数 1鸿鹄币 +10 收起 理由
小乔 + 10 赞一个!

查看全部评分

板凳 2011-7-16 01:01:22 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-7-16 01:47:24 | 显示全部楼层

按照这位大哥给出的意见我重新将11.1.1.1和11.1.2.2还有R5的环回接口的网络通告进OSPF进程1中,验证路由学习成功,OSPF的3类LSA在区域1中有体现,问题解决,但我还是不明白我们在配置路由rouer ospr process-id,这个ID不是无需与其它路由器的ID相同吗?我的OSPF进程不一致为什么会产生这种问题呢?继续追问。。。。。
地板 2011-7-16 01:47:24 回复 收起回复
回复 支持 反对

使用道具 举报

 成长值: 63415
发表于 2011-7-16 09:36:09 | 显示全部楼层
qk_88 发表于 2011-7-16 01:47
按照这位大哥给出的意见我重新将11.1.1.1和11.1.2.2还有R5的环回接口的网络通告进OSPF ...

不同路由器可以使用不同的进程号,但是在一个路由器上必须使用一个进程号,要不然就成为多进程了

点评

高手,对路由精通的高手。  发表于 2011-7-19 20:57
5# 2011-7-16 09:36:09 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-7-16 17:30:36 | 显示全部楼层
十分感谢各位高手的解答,基本上我明白了。谢谢~~~~
6# 2011-7-16 17:30:36 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2011-7-26 09:43:48 | 显示全部楼层
7# 2011-7-26 09:43:48 回复 收起回复
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-3 07:12 , Processed in 0.083776 second(s), 19 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

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