在我的多区域-OSPF配置中,我可以平我的邻居,但没有一个超过一跳的距离(例如ABR2)。另外,traceroute刚刚显示了"1 ***-2***-3** *“
有人能想到OSPF配置中可能出现的错误吗?

配置:
en
conf t
no ip domain-lookup
ipv6 unicast-routing
int loopback 0
ip address 2.2.2.2 255.255.255.0
exit
ipv6 router ospf 1
area 45 range 2001:db8:18:4500::/56
auto-cost reference-bandwidth 100000
router-id 2.2.2.2
exit
router ospf 1
area 45 range 10.45.0.0 255.255.0.0
area 0 range 10.0.0.0 255.255.0.0
auto-cost reference-bandwidth 100000
network 10.45.0.0 255.255.255.252 area 45
network 10.45.0.4 255.255.255.252 area 45
network 10.0.0.0 255.255.255.252 area 0
network 10.0.0.4 255.255.255.252 area 0
int s0/1/0
ip add 10.45.0.1 255.255.255.252
ipv6 add 2001:db8:18:4501::1/64
ipv6 ospf 1 area 45
ip ospf hello-interval 3
ipv6 ospf hello-interval 3
no sh
int s0/1/1
ip add 10.45.0.5 255.255.255.252
ipv6 add 2001:db8:18:4502::1/64
ipv6 ospf 1 area 45
ip ospf hello-interval 3
ipv6 ospf hello-interval 3
no sh
int s0/0/0
ip add 10.0.0.2 255.255.255.252
ipv6 add 2001:db8:18:0001::2/64
ipv6 ospf 1 area 0
ip ospf hello-interval 3
ipv6 ospf hello-interval 3
no sh
int s0/0/1
ip add 10.0.0.6 255.255.255.252
ipv6 add 2001:db8:18:0002::2/64
ipv6 ospf 1 area 0
ip ospf hello-interval 3
ipv6 ospf hello-interval 3
no sh发布于 2018-02-21 10:02:46
正如@ar_在对我的问题的评论中指出的:问题在于,我以错误的方式配置了网络命令。所以我用子网掩码代替通配符掩码。( OSPF中的网络命令需要通配符掩码)。
@RonMaupin在这个答案的评论中添加了信息,在最新的IOS版本中,这两种方式(子网掩码和通配符)都能工作。
https://networkengineering.stackexchange.com/questions/48414
复制相似问题