01-25-2024 11:29 PM - edited 01-25-2024 11:36 PM
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback0
ip address 172.16.1.1 255.255.255.0
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0/0
bandwidth 64
ip address 172.16.12.1 255.255.255.0
clock rate 128000
!
interface Serial0/0/1
no ip address
clock rate 2000000
shutdown
!
interface FastEthernet0/1/0
switchport mode access
!
interface FastEthernet0/1/1
switchport mode access
!
interface FastEthernet0/1/2
switchport mode access
!
interface FastEthernet0/1/3
switchport mode access
!
interface Vlan1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
network 172.16.1.0 0.0.0.255 area 0
network 172.16.12.2 0.0.0.0 area 0
network 172.16.12.0 0.0.0.255 area 0
!
ip classless
!
ip flow-export version 9
R2
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback0
ip address 172.16.2.1 255.255.255.0
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0/0
bandwidth 64
ip address 172.16.12.2 255.255.255.0
!
interface Serial0/0/1
bandwidth 64
ip address 172.16.23.2 255.255.255.0
clock rate 128000
!
interface Serial0/1/0
no ip address
clock rate 2000000
shutdown
!
interface Serial0/1/1
no ip address
clock rate 2000000
shutdown
!
interface Vlan1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
network 172.16.2.0 0.0.0.255 area 0
network 172.16.12.0 0.0.0.255 area 0
network 172.16.23.0 0.0.0.255 area 0
!
ip classless
interface Vlan1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
network 172.16.2.0 0.0.0.255 area 0
network 172.16.12.0 0.0.0.255 area 0
network 172.16.23.0 0.0.0.255 area 0
!
ip classless
R3
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback0
ip address 172.16.3.1 255.255.255.0
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0/0
no ip address
clock rate 2000000
shutdown
!
interface Serial0/0/1
bandwidth 64
ip address 172.16.23.3 255.255.255.0
!
interface Serial0/1/0
bandwidth 64
ip address 172.16.34.3 255.255.255.0
clock rate 128000
!
interface Serial0/1/1
no ip address
clock rate 2000000
shutdown
!
interface Vlan1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
area 34 virtual-link 172.16.4.1
network 172.16.23.0 0.0.0.255 area 0
network 172.16.3.0 0.0.0.255 area 34
network 172.16.34.0 0.0.0.255 area 34
network 172.16.4.0 0.0.0.255 area 40
!
ip classless
!
R4
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback0
ip address 172.16.4.1 255.255.255.0
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0/0
bandwidth 64
ip address 172.16.34.4 255.255.255.0
!
interface Serial0/0/1
no ip address
clock rate 2000000
!
interface FastEthernet0/1/0
switchport mode access
!
interface FastEthernet0/1/1
switchport mode access
!
interface FastEthernet0/1/2
switchport mode access
!
interface FastEthernet0/1/3
switchport mode access
!
interface Vlan1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
area 34 virtual-link 172.16.34.3
network 172.16.34.0 0.0.0.255 area 34
network 172.16.4.0 0.0.0.255 area 40
!
ip classless
01-26-2024 10:37 AM
Hello,
your virtual link does not look right. On R4, whatever you configure the VL to, needs to be in area 0. Make the changes marked in bold:
R3
router ospf 1
log-adjacency-changes
area 34 virtual-link 172.16.4.1
network 172.16.23.0 0.0.0.255 area 0
--> network 172.16.3.0 0.0.0.255 area 0
network 172.16.34.0 0.0.0.255 area 34
network 172.16.4.0 0.0.0.255 area 40
R4
--> area 34 virtual-link 172.16.3.1
01-26-2024 10:42 AM
No need any link in area 0
Only the IP you use in virtual link is not correct. Correct it.
Note :- it better to use IP that ospf use as router ID. So double check if rputers use LO as router-id
MHM
01-26-2024 10:55 AM - edited 01-26-2024 10:55 AM
Hello @haiqalimanshah2 ,
on R4 change:
router ospf 1
area 34 virtual-link 172.16.3.1
01-26-2024 12:41 PM
@liviu.gheorghe @MHM Cisco World I stand corrected, you are both right. The loopback of R3 does not need to be in area 0.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide