我一直在做下面的设置,基本上我不能让OSPF填充L3交换机的路由表。我已经正确地设置了他们之间的L3以太通道与适当的地址。我附上了一些截图供进一步分析。
OSPF公布的唯一路由是我没有设置的默认路由。我手动设置每个路由器的路由器ID,并简单地创建了一个OSPF进程,并将区域0分配给所有路由器。
IP路由也已在L3交换机上启用。
提前感谢

Current configuration : 1718 bytes
!
version 12.2(37)SE1
!
hostname R1
!
ip routing
!
spanning-tree mode pvst
!
interface Port-channel1
no switchport
ip address 1.1.1.1 255.255.255.0
!
interface Port-channel3
no switchport
ip address 3.3.3.1 255.255.255.0
!
interface FastEthernet0/1
no switchport
no ip address
channel-group 1
ip ospf 10 area 0
duplex auto
speed auto
!
interface FastEthernet0/2
no switchport
no ip address
channel-group 1
ip ospf 10 area 0
duplex auto
speed auto
!
interface FastEthernet0/5
no switchport
no ip address
channel-group 3
ip ospf 10 area 0
duplex auto
speed auto
!
interface FastEthernet0/6
no switchport
no ip address
channel-group 3
ip ospf 10 area 0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
router ospf 10
router-id 1.1.1.1
log-adjacency-changes
!
endCurrent configuration : 1718 bytes
!
version 12.2(37)SE1
!
hostname R2
!
ip routing
!
spanning-tree mode pvst
!
interface Port-channel1
no switchport
ip address 1.1.1.2 255.255.255.0
!
interface Port-channel2
no switchport
ip address 2.2.2.1 255.255.255.0
!
interface FastEthernet0/1
no switchport
no ip address
channel-group 1
ip ospf 10 area 0
duplex auto
speed auto
!
interface FastEthernet0/2
no switchport
no ip address
channel-group 1
ip ospf 10 area 0
duplex auto
speed auto
!
interface FastEthernet0/3
no switchport
no ip address
channel-group 2
ip ospf 10 area 0
duplex auto
speed auto
!
interface FastEthernet0/4
no switchport
no ip address
channel-group 2
ip ospf 10 area 0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
router ospf 10
router-id 2.2.2.2
log-adjacency-changes
!
ip classless
!
ip flow-export version 9
!
endCurrent configuration : 1718 bytes
!
version 12.2(37)SE1
!
hostname R3
!
ip routing
!
spanning-tree mode pvst
!
interface Port-channel2
no switchport
ip address 2.2.2.2 255.255.255.0
!
interface Port-channel3
no switchport
ip address 3.3.3.2 255.255.255.0
!
interface FastEthernet0/3
no switchport
no ip address
channel-group 2
ip ospf 10 area 0
duplex auto
speed auto
!
interface FastEthernet0/4
no switchport
no ip address
channel-group 2
ip ospf 10 area 0
duplex auto
speed auto
!
interface FastEthernet0/5
no switchport
no ip address
channel-group 3
ip ospf 10 area 0
duplex auto
speed auto
!
interface FastEthernet0/6
no switchport
no ip address
channel-group 3
ip ospf 10 area 0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
router ospf 10
router-id 3.3.3.3
log-adjacency-changes
!
ip classless
!
ip flow-export version 9
!
end发布于 2020-06-26 14:18:31
您没有正确配置OSPF。
您需要添加网络语句来定义参与OSPF的接口以及它们所处的区域。最简单的方法是将所有接口都包含在区域0中。将此命令添加到OSPF配置中:
router ospf 10
network 0.0.0.0 255.255.255.255 area 0发布于 2020-06-25 22:20:52
路由器协议只会为路由做广告:
redistribute connectednetwork语句在OSPF中提供转发表中存在的路由。另外,对于OSPF,您必须使用"network“语句来配置参与OSPF进程的接口。
例如:
network 192.168.0.0/24中,则进程将只使用第一个接口。network 192.168.0.0/23,则两个接口都能够建立关系。https://networkengineering.stackexchange.com/questions/68667
复制相似问题