具有多区域的 OSPF

网络工程 思科 路由 路由器 ospf 数据包追踪器
2021-07-17 18:16:11

由于某种原因,我正在尝试在具有 OSPF 协议的 3 个区域的数据包跟踪器中重新创建理论情况,即使 ospf 跃点可以看到其他设备,设备之间也没有通信。

R1

interface FastEthernet0/0
 ip address 192.168.0.1 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 10.0.0.1 255.255.255.0
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
router ospf 1
 router-id 1.1.1.1
 log-adjacency-changes
 network 192.168.0.0 0.0.0.255 area 1
 network 10.0.0.0 0.0.0.3 area 1
!

R2

interface FastEthernet0/0
 ip address 11.0.0.1 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 10.0.0.2 255.255.255.0
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
router ospf 1
 router-id 2.2.2.2
 log-adjacency-changes
 area 2 virtual-link 3.3.3.3
 network 10.0.0.0 0.0.0.3 area 1
 network 11.0.0.0 0.0.0.3 area 2
!

R3

interface FastEthernet0/0
 ip address 11.0.0.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 12.0.0.1 255.255.255.0
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
router ospf 1
 router-id 3.3.3.3
 log-adjacency-changes
 area 2 virtual-link 2.2.2.2
 network 11.0.0.0 0.0.0.255 area 2
 network 12.0.0.0 0.0.0.3 area 3
!

R4

interface FastEthernet0/0
 ip address 192.168.1.1 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 12.0.0.2 255.255.255.0
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
router ospf 1
 router-id 4.4.4.4
 log-adjacency-changes
 network 12.0.0.0 0.0.0.3 area 3
 network 192.168.1.0 0.0.0.255 area 3
!

网络

1个回答

区域 1 和区域 3 不能直接与区域 2 通信。OSPF 区域只能连接到区域 0。如果将区域 2 更改为区域 0,事情应该会好很多。此外,您不能有不连续的区域 0。