cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
835
Views
1
Helpful
4
Replies

Ospf help

haiqalimanshah2
Level 1
Level 1
I have problem with ospf idk what i did
I can ping R1 to all except Lo4 area 40 same goes to other all have same problem where Lo4 cant be ping
 
R1

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

4 Replies 4

Georg Pauwen
VIP Alumni
VIP Alumni

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

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

Hello @haiqalimanshah2 ,

on R4 change:

router ospf 1

area 34 virtual-link 172.16.3.1

 

Regards, LG
*** Please Rate All Helpful Responses ***

@liviu.gheorghe @MHM Cisco World I stand corrected, you are both right. The loopback of R3 does not need to be in area 0.