我有一个简单的3路由器网络,我需要为它配置OSPF,当使用两个路由器时,每件事情都能正常工作,我可以ping,但是当我添加第三个路由器时,没有什么工作。

左路由器
interface se0/1/0
ip address 200.20.20.1 255.255.255.252
no sh
interface gig0/0/0
ip address 192.168.3.1 255.255.255.224
no sh
router ospf 1
network 200.20.20.0 0.0.0.3 area 0
network 192.168.3.0 0.0.0.31 area 0
interface loopback 100
ip address 100.0.0.1/30 中间路由器
interface se0/1/0
ip address 200.20.20.2
no sh
interface se0/1/1
ip address 200.20.20.10
no sh
interface gig0/0/0
ip address 192.168.3.33 255.255.255.224
no sh
router ospf 1
network 200.20.20.0 0.0.0.3 area 0
network 200.20.20.8 0.0.0.3 area 0
network 192.168.3.32 0.0.0.31 area 0右路由器
interface se0/1/0
ip address 200.20.20.9 255.255.255.252
no sh
interface gig0/0/0
ip address 192.168.3.65 255.255.255.224
no sh
router ospf 1
network 200.20.20.8 0.0.0.3 area 0
network 192.168.3.65 0.0.0.31 area 0有人能解释一下我在这缺了什么吗?
发布于 2022-11-28 07:16:51
除了中间路由器上的配置摘录外,还缺少子网掩码:
interface se0/1/0
ip address 200.20.20.2
no sh
interface se0/1/1
ip address 200.20.20.10
no sh 一切似乎都配置正确。我希望它不会允许您在不输入子网掩码的情况下继续工作,所以我将假设您输入的内容是正确的,而不仅仅是做了一个错误或什么的。
我的建议是通过一些典型的故障排除步骤;
show ip ospf database routershow ip ospf neighborshow ip ospf interfacedebug ip ospf adj,debug ip ospf events编辑:我基本上复制了和这一样的设置,它对我来说很好(tracert看起来有点摇摇欲坠,但是hop计数是正确的,所以可能不是什么大事),我猜你在做的时候只犯了一两次错误。
https://networkengineering.stackexchange.com/questions/80668
复制相似问题