我想在下面的拓扑上配置 OSPF。问题是当我将两台路由器相互连接并且将一台路由器配置到区域 0 并将另一台路由器配置到区域 1 时,它们不会将彼此视为邻居。所以我无法从一个ping到另一个。我阅读了 Cisco 文档并进行了其他一些实验,我知道如何为不同领域配置 OSPF,但不知道如何为这个领域配置 OSPF。我收到此错误:
%OSPF-4-ERRRCV:收到无效数据包:区域 ID 不匹配,来自主干区域必须是虚拟链接,但未从 192.168.12.1、FastEthernet0/0 找到
有人能解释一下为什么我们应该为两个接口直接连接的路由器使用不同的区域吗?我应该怎么做配置?
谢谢大家,对不起,英语不好。
这是我对这个 IOS c3640-jk9s-mz.124-16.image上的路由器的配置:
R1
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Tarna
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
!
!
ip tcp synwait-time 5
!
!
interface FastEthernet0/0
ip address 192.168.12.1 255.255.255.0
duplex auto
speed auto
!
!
router ospf 1
log-adjacency-changes
network 192.168.12.0 0.0.0.255 area 0
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
!
control-plane
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end
R2
Current configuration : 1419 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Spielburg
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
!
!
ip tcp synwait-time 5
!
interface FastEthernet0/0
ip address 192.168.12.2 255.255.255.0
duplex auto
speed auto
!
!
router ospf 1
log-adjacency-changes
network 192.168.12.0 0.0.0.255 area 1
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
control-plane
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end