我一直在进行下面的设置,基本上我不能让 OSPF 填充 L3 交换机的路由表。我已经在它们之间正确设置了 L3 Etherchannels 并具有正确的寻址。我附上了一些截图以供进一步分析。
OSPF 发布的唯一路由是我没有设置的默认路由。我为每个路由器手动设置了路由器 ID,并简单地创建了一个 OSPF 进程并将区域 0 分配给它们。
L3 交换机上也启用了 IP 路由。
提前致谢
R1:
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
!
end
R2:
Current 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
!
end
R3:
Current 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