Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

OSPF Virtual Link Reference

Direct answer

A virtual link is a logical connection to area 0 through another area. It repairs a design in which an area has no ABR attached to the backbone, or in which the backbone is split.

When to use this

Use it as a temporary measure during a merger or migration, and when an area's routes are missing because its ABR does not touch area 0.

First 30 seconds

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.

Operational verification

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
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS XE
Key commandarea <transit-area> virtual-link <remote-router-id>
Scope / prerequisiteUse it as a temporary measure during a merger or migration, and when an area's routes are missing because its ABR does …
Show · 1Reference · 1
What next?3 suggested next steps
Catalog command links2
Evidence1
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

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.

Key checks
  • show ip ospf virtual-links — up or down, transit area, adjacency state.
  • show ip ospf neighbor — a neighbour on OSPF_VL0.
  • show ip ospf border-routers — the other ABR reachable in the transit area.
  • show ip ospf | include ID — the router IDs used.
ReferenceWhat it is1 section · depth on demand

Mechanics & mental model

A virtual link is a logical connection to area 0 that runs through another area. It is used when an area has no ABR physically attached to the backbone, or when the backbone itself has been split in two.

ReferenceWhy it matters1 section · depth on demand

Why it matters operationally

OSPF requires every area to touch area 0, because routes between areas are only passed through the backbone. A virtual link repairs a design that breaks this rule — after a merger, or during a migration. It is a workaround with its own failure modes, not something to design in.

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

SituationVirtual link role
Area 20 attached only to area 10Connects 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 stepKeeps routing working until the physical design is fixed

Requirements and limits

PointDetail
Transit areaMust be a normal area (not stub, totally stubby or NSSA)
EndpointsTwo ABRs, configured with each other's router ID
AuthenticationArea 0 authentication also applies to the virtual link
DependencyThe 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 2328

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%
Technical changelog & impact

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.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

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.

Aliases that resolve here
ospf virtual linkvirtual-linkdiscontiguous area 0ospf backbone repair
Confirmation

Confirm action

Continue?