Troubleshooting notes · OSPF

OSPF virtual link down: wrong router ID or transit area

show ip ospf virtual-links says the virtual link is down and the remote area's routes never reach area 0. The two classic mistakes: an interface address instead of the router ID, and the wrong transit area. Real output from Cisco IOS XE 17.18.

The symptom

Area 3 isn't connected to area 0, so a virtual link was configured through area 12. Head office still sees nothing from area 3, and both ends say the virtual link is down:

R2# show ip ospf virtual-links
Virtual Link OSPF_VL0 to router 10.0.23.2 is down
  Transit area 12
R3# show ip ospf virtual-links
Virtual Link OSPF_VL0 to router 2.2.2.2 is down
  Transit area 3

Look closely: each side shows its own mistake.

How a virtual link is configured

On both ends: area <transit area> virtual-link <router ID of the other end>. Both values are easy to get wrong.

Cause 1: an IP address instead of a router ID

R2 points at 10.0.23.2, an interface address of R3. The target must be R3's OSPF router ID (3.3.3.3):

R2(config)# router ospf 1
R2(config-router)# no area 12 virtual-link 10.0.23.2
R2(config-router)# area 12 virtual-link 3.3.3.3

Cause 2: the wrong area

R3 names area 3, the disconnected area. The area in the command is the transit area that both routers share, area 12:

R3(config)# router ospf 1
R3(config-router)# no area 3 virtual-link 2.2.2.2
R3(config-router)# area 12 virtual-link 2.2.2.2

Check it

R2# show ip ospf virtual-links | include Virtual|Transit|Adjacency
Virtual Link OSPF_VL1 to router 3.3.3.3 is up
  Transit area 12, via interface Ethernet0/1
    Adjacency State FULL (Hello suppressed)
R1# show ip route ospf | include 4.4.4.4|10.0.34
O IA     4.4.4.4 [110/31] via 10.0.12.2, 00:00:36, Ethernet0/0
O IA     10.0.34.0/30 [110/30] via 10.0.12.2, 00:00:36, Ethernet0/0

The virtual link is up and FULL, and head office now has area 3's routes as inter-area (O IA) routes. "Hello suppressed" is normal: virtual links run as demand circuits. The name changed from OSPF_VL0 to OSPF_VL1 because the link was recreated; the number doesn't matter.

Two more things to know: a virtual link can't cross a stub or NSSA area (IOS refuses the config), and because a virtual link belongs to area 0, it needs area 0's authentication if area 0 uses any.

Practise this fault

This fault is in ENARSI Lab 18 of ENARSI Troubleshooting Labs: a ready-made GNS3 project where you find and fix it yourself, alongside the other faults in the ticket, with the tested solution.

Or start with 15 free labs (5 each from CCNA, ENARSI and ENCOR), by email:

We’ll email you the download links and occasional lab tips. Unsubscribe with one click, any time. Your address is never shared.