H3C ospf router id 重复真的不能建立邻居吗?在不同区域中可以建立吗?

如上的拓扑 R1和R4的router id 相同,但是处在不同的区域

R1:

 

ospf 1 router-id 1.1.1.1

 area 0.0.0.0

  network 1.1.1.1 0.0.0.0

  network 10.1.1.0 0.0.0.3

 

 

R2:

 

ospf 1 router-id 2.2.2.2

 area 0.0.0.0

  network 2.2.2.2 0.0.0.0

  network 10.1.1.0 0.0.0.3

 area 0.0.0.1

  network 172.1.1.0 0.0.0.3

 

 

R4:

 

ospf 1 router-id 1.1.1.1

 area 0.0.0.1

  network 1.1.1.1 0.0.0.0

  network 172.1.1.0 0.0.0.3

 

 

在R2上可以见如下:

 

[R2]  dis ospf peer

 

                  OSPF Process 1 with Router ID 2.2.2.2

                        Neighbor Brief Information

 

 Area: 0.0.0.0        

 Router ID       Address         Pri Dead-Time Interface       State

 1.1.1.1         10.1.1.1        1   30        S0/6/0          Full/ -

 

 Area: 0.0.0.1        

 Router ID       Address         Pri Dead-Time Interface       State

 1.1.1.1         172.1.1.1       1   37        S0/6/1          Full/ -

 

 

 

[R2]dis ospf ro

 

         OSPF Process 1 with Router ID 2.2.2.2

                  Routing Tables 

 

 Routing for Network 

 Destination        Cost     Type    NextHop         AdvRouter       Area

 2.2.2.2/32         0        Stub    2.2.2.2         2.2.2.2         0.0.0.0

 10.1.1.0/30        1562     Stub    10.1.1.2        2.2.2.2         0.0.0.0

 1.1.1.1/32         1562     Stub    10.1.1.1        1.1.1.1         0.0.0.0

 1.1.1.1/32         1562     Stub    172.1.1.1       1.1.1.1         0.0.0.1

  但是现在遇到一个问题,在R2的ospf上可以见到两个目标地址是1.1.1.1的路由表,下一跳不同,我们来看路由表会优先选技哪一个下一跳呢?

[R2]dis ip ro

Routing Tables: Public

        Destinations : 10       Routes : 11

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

 

1.1.1.1/32          OSPF   10   1562         10.1.1.1        S0/6/0

                    OSPF   10   1562         172.1.1.1       S0/6/1

 

从路由表中可以见到有两条路由到1.1.1.1有两个下一跳,但是优先到are 0的1.1.1.1。

 

总结:在同一进程中,在不同区域中,ospf有相同的router id是可以建立邻居的。