OSPF Virtual Link Reference
1. show ip ospf virtual-links — up and Full?
2. Down → compare the router ID in the command with the other router's actual ID.
3. Configured on both ends, each naming the other?
4. Transit area normal, and the same area number on both?
5. Set router IDs explicitly so they cannot change.
both ABRs share a normal transit area → each reaches the other's router ID inside it → virtual link configured on both → adjacency Full over the link → remote area receives inter-area routes
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
area <transit-area> virtual-link <remote-router-id>Primary Commands
Configuration and operational commands for this Topic.
Show Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational verification Verify boundary
show ip ospf virtual-links
show ip ospf neighbor
show ip ospf border-routers
show ip route ospf
show ip ospf virtual-links states whether the link to the given router ID is up, which transit area and interface it uses, its cost, and that the adjacency is Full. The neighbour table lists the neighbour on an interface named OSPF_VL0. border-routers confirms that the other ABR is reachable in the transit area. The routing table of the remote area should now contain inter-area routes.
Known-good: the virtual link is up with a Full adjacency, and routers in the remote area have routes to the rest of the network.
Step 2 Failure boundaries & interpretation Narrow the fault
- The virtual link stays down. The router ID in the command is wrong, or the other router's ID has changed since.
- Configured on one side only. Both ABRs need the command, each naming the other.
- The transit area is a stub or NSSA. Not permitted; the link will not come up.
- The link is up, then lost after a reload. The router ID was chosen automatically and came out different.
- It went down when authentication was enabled in area 0. The virtual link needs the same authentication.
- The wrong area number was used. The command takes the transit area.
- The link works but routing is suboptimal. Backbone traffic now depends on the transit area's paths; the lasting fix is a real connection to area 0.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
It is configured on both ABRs with area <transit-area> virtual-link <other-router-ID>. The address is a router ID, not an interface address; the area named is the transit area; the transit area cannot be a stub or NSSA. The link is part of area 0 and needs its authentication.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
ReferenceHow it works1 section · depth on demand
How it works
A virtual link is configured between two ABRs that share a common area — the transit area. One of them is attached to area 0; the other gains its backbone connection through the link.
! on the ABR attached to area 0 (router ID 10.0.0.1)
router ospf 1
area 1 virtual-link 10.0.0.2
! on the remote ABR (router ID 10.0.0.2)
router ospf 1
area 1 virtual-link 10.0.0.1
Three details decide whether it works:
- The address in the command is the other router's router ID, not an interface address. The router IDs should therefore be set explicitly and never change.
- The area named is the transit area — the one both routers are in — not the area being connected.
- The transit area must be a normal area. A virtual link cannot cross a stub area or an NSSA.
Once up, the virtual link behaves like a point-to-point interface in area 0. The two routers become fully adjacent over it and exchange backbone LSAs; the packets travel as ordinary unicast traffic along the transit area's shortest path between them. Hellos are suppressed after the link is established, so the link's state follows the reachability of the other router in the transit area.
Because the link belongs to area 0, anything configured for area 0 — authentication in particular — applies to it.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
A virtual link repairs a broken or missing connection to area 0
The Catalyst 9300 OSPF guide documents area <area-id> virtual-link <router-id>, which repairs a backbone discontinuity. It notes that virtual links cannot pass through a stub area. A virtual link is a logical area 0 link through a transit area, between two ABRs identified by their router IDs.
! ABR-1 (connected to area 0 and area 10)
C9300-ABR1(config)# router ospf 1
C9300-ABR1(config-router)# area 10 virtual-link 10.0.0.31
! R3 (connected to area 10 and area 20, no area 0 interface)
C9300-R3(config)# router ospf 1
C9300-R3(config-router)# area 10 virtual-link 10.0.0.11
C9300-ABR1# show ip ospf virtual-links
Virtual Link OSPF_VL0 to router 10.0.0.31 is up
Run as demand circuit
Transit area 10, via interface TenGigabitEthernet1/1/3
Hello interval 10, Dead interval 40, Retransmit 5
Adjacency State FULL (Hello suppressed)
When a virtual link is used
| Situation | Virtual link role |
|---|---|
| Area 20 attached only to area 10 | Connects area 20's ABR to the backbone through area 10 |
| Area 0 split in two (for example after a link failure or a merger) | Joins the two backbone parts through a transit area |
| Temporary migration step | Keeps routing working until the physical design is fixed |
Requirements and limits
| Point | Detail |
|---|---|
| Transit area | Must be a normal area (not stub, totally stubby or NSSA) |
| Endpoints | Two ABRs, configured with each other's router ID |
| Authentication | Area 0 authentication also applies to the virtual link |
| Dependency | The virtual link goes down if the transit area path fails |
Why it's a workaround
Virtual links add hidden dependencies: area 0 now relies on the transit area's topology, and troubleshooting gets harder. Treat a virtual link as temporary, document it, and plan a real connection to area 0 (or GRE tunnels with OSPF in area 0) as the permanent fix.
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → OSPF Virtual Link Reference. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc2328.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.