%OSPF-4-ERRRCV:接收到无效数据包:区域 ID 不匹配,来自骨干区域必须是虚拟链路

网络工程 思科 ospf 数据包追踪器
2021-07-11 20:48:41

我有这样的拓扑:

在此处输入图片说明

这个 Router0-1 的 Gig0/0/0 ip: 10.0.12.1/24, Router0-2 的 Gig0/0/0 ip: 10.0.12.2/24, Gig0/0/1 ip: 10.0.23.2/24, 这个 Router0-3 的 Gig0/0/0 ip: 10.0.23.3/24,

首先,所有路由器接口都被通告到区域 0 中。

现在,我宣布 Router0-3 的 Gig0/0/0 和 Router0-2 的 Gig0/0/1 到 Area1,但 Router0-2 得到以下日志:

00:57:06: %OSPF-4-ERRRCV: Received invalid packet: mismatch area ID, from backbone area must be virtual-link but not found from 10.0.23.2, GigabitEthernet0/0/1

00:57:16: %OSPF-4-ERRRCV: Received invalid packet: mismatch area ID, from backbone area must be virtual-link but not found from 10.0.23.2, GigabitEthernet0/0/1

00:57:26: %OSPF-4-ERRRCV: Received invalid packet: mismatch area ID, from backbone area must be virtual-link but not found from 10.0.23.2, GigabitEthernet0/0/1

00:57:36: %OSPF-4-ERRRCV: Received invalid packet: mismatch area ID, from backbone area must be virtual-link but not found from 10.0.23.2, GigabitEthernet0/0/1

....

我在 Router0-3 中尝试过 clear ospf prgress,仍然是这个问题。

在 Router0-1 ospf 数据库中:

Router1>show ip ospf database 
            OSPF Router with ID (1.1.1.1) (Process ID 1)

                Router Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum Link count
3.3.3.3         3.3.3.3         1703        0x80000002 0x00fef4 1
1.1.1.1         1.1.1.1         1034        0x80000008 0x0071a5 1
2.2.2.2         2.2.2.2         1034        0x80000009 0x0034d7 1

                Net Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum
10.0.23.3       3.3.3.3         1703        0x80000001 0x004c5f
10.0.12.2       2.2.2.2         1034        0x80000002 0x00bd6e

                Summary Net Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum
10.0.23.0       2.2.2.2         1529        0x80000001 0x00d65e
3.3.3.3         2.2.2.2         497         0x80000005 0x00ce76

在 Router0-2 ospf 数据库中:

Router2#show ip ospf database 
            OSPF Router with ID (2.2.2.2) (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         973         0x80000008 0x0071a5 1
3.3.3.3         3.3.3.3         1642        0x80000002 0x00fef4 1
2.2.2.2         2.2.2.2         973         0x80000009 0x0034d7 1

                Net Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum
10.0.23.3       3.3.3.3         1642        0x80000001 0x004c5f
10.0.12.2       2.2.2.2         973         0x80000002 0x00bd6e

                Summary Net Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum
10.0.23.0       2.2.2.2         1468        0x80000001 0x00d65e
3.3.3.3         2.2.2.2         436         0x80000005 0x00ce76

                Router Link States (Area 1)

Link ID         ADV Router      Age         Seq#       Checksum Link count
2.2.2.2         2.2.2.2         446         0x8000000e 0x0027c8 1
3.3.3.3         3.3.3.3         446         0x80000009 0x00745b 2

                Net Link States (Area 1)
Link ID         ADV Router      Age         Seq#       Checksum
10.0.23.3       3.3.3.3         446         0x80000003 0x004ec4

                Summary Net Link States (Area 1)
Link ID         ADV Router      Age         Seq#       Checksum
10.0.12.0       2.2.2.2         1475        0x80000001 0x0050ef

在 Router0-3 ospf 数据库中:

Router3#show  ip ospf database 
            OSPF Router with ID (3.3.3.3) (Process ID 1)

                Router Link States (Area 1)

Link ID         ADV Router      Age         Seq#       Checksum Link count
2.2.2.2         2.2.2.2         536         0x8000000e 0x0027c8 1
3.3.3.3         3.3.3.3         536         0x80000009 0x00745b 2

                Net Link States (Area 1)
Link ID         ADV Router      Age         Seq#       Checksum
10.0.23.3       3.3.3.3         536         0x80000003 0x004ec4

                Summary Net Link States (Area 1)
Link ID         ADV Router      Age         Seq#       Checksum
10.0.12.0       2.2.2.2         1565        0x80000001 0x0050ef
1个回答

我试过你的post实验,当我在一个区域将R3的接口分配给Area1时,R2会得到这个Error Receive日志。

但是如果你在 R3 中no router ospf 1,然后启动一个新的 OSPF 进程,并将接口添加到区域 1 中,则不会出现此故障。

然后显示Router2的OSPF数据库,有显示完美无缺。

Router2#show ip ospf database 
            OSPF Router with ID (2.2.2.2) (Process ID 1)

                Router Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum Link count
2.2.2.2         2.2.2.2         370         0x80000003 0x0048b0 2
1.1.1.1         1.1.1.1         370         0x80000003 0x0055b1 2

                Net Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum
10.0.12.2       2.2.2.2         370         0x80000001 0x002f8b

                Summary Net Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum
10.0.23.0       2.2.2.2         365         0x80000001 0x00d65e

                Router Link States (Area 1)

Link ID         ADV Router      Age         Seq#       Checksum Link count
3.3.3.3         3.3.3.3         375         0x80000003 0x00fef2 1
2.2.2.2         2.2.2.2         275         0x80000005 0x0039bf 1

                Net Link States (Area 1)
Link ID         ADV Router      Age         Seq#       Checksum
10.0.23.3       3.3.3.3         275         0x80000002 0x00a032

                Summary Net Link States (Area 1)
Link ID         ADV Router      Age         Seq#       Checksum
3.3.3.3         3.3.3.3         370         0x80000001 0x00ae97
2.2.2.2         2.2.2.2         365         0x80000001 0x00fa53
10.0.12.0       2.2.2.2         365         0x80000002 0x004ef0
1.1.1.1         2.2.2.2         360         0x80000003 0x002f20