NEXUS OSPF ABR
Die Verbindung von mehreren AREAS erfolgt immer über die Area 0!
Die Area 0 ist auf dem N9K-2 konfiguriert und dort ist auch eine default Route konfiguriert
N9k-1
switchname N9k-1
!
feature ospf
feature interface-vlan
!
interface Ethernet1/1
no switchport
ip address 10.1.12.1/24
ip router ospf 1 area 0.0.0.12
no shutdown
!
interface loopback0
ip address 172.30.30.1/30
ip ospf network point-to-point
!
cli alias name save copy run start
!
router ospf 1
router-id 1.1.1.1
area 0.0.0.12 range 10.1.20.0/24
N9K-2
switchname N9k-2
!
feature ospf
feature interface-vlan
!
interface Ethernet1/1
no switchport
ip address 10.1.12.2/24
ip router ospf 1 area 0.0.0.12
no shutdown
!
interface Ethernet1/2
no switchport
ip address 10.1.23.2/24
ip router ospf 1 area 0.0.0.23
no shutdown
!
interface loopback0
ip address 10.1.0.1/24
ip ospf network point-to-point
ip router ospf 1 area 0.0.0.0
!
router ospf 1
router-id 2.2.2.2
default-information originate
area 0.0.0.0 range 10.1.0.0/24
area 0.0.0.12 range 10.1.12.0/24
area 0.0.0.23 range 10.1.23.0/24
!
ip route 0.0.0.0/0 10.1.0.1
N9k-3
switchname N9k-3
!
feature ospf
feature interface-vlan
!
interface Ethernet1/2
no switchport
ip address 10.1.23.3/24
ip router ospf 1 area 0.0.0.23
no shutdown
!
interface loopback100
ip address 192.168.100.1/24
ip router ospf 1 area 0.0.0.23
!
interface loopback101
ip address 192.168.101.1/24
ip router ospf 1 area 0.0.0.23
!
interface loopback102
ip address 192.168.102.1/24
ip router ospf 1 area 0.0.0.23
!
interface loopback103
ip address 192.168.103.1/24
ip router ospf 1 area 0.0.0.23
!
interface loopback104
ip address 192.168.104.1/24
ip router ospf 1 area 0.0.0.23
!
interface loopback105
ip address 192.168.105.1/24
ip router ospf 1 area 0.0.0.23
!
router ospf 1
router-id 3.3.3.3
area 0.0.0.23 range 10.1.23.0/24
area 0.0.0.23 range 192.168.100.0/22
!