Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

VRF

Direct answer

VRF-Lite creates multiple isolated Layer-3 routing and forwarding contexts on one device without requiring MPLS.

When to use this

Use it to separate tenants, management or overlapping address spaces on a shared platform.

First 30 seconds

1. show vrf — the interface in the intended VRF? (Adding vrf forwarding removes the IP address — re-add it.)

2. show ip route vrf <name> — route to the destination?

3. Test with ping vrf <name> <ip> — a plain ping uses the global table.

4. Routing protocol running inside the VRF (router ospf <n> vrf <name> or address-family)?

5. Inter-VRF traffic needs route leaking or a firewall/fusion router.

Operational verification

VRF defined → interfaces assigned (address re-applied) → routing per VRF → VRF routing table has the routes → traffic stays inside the VRF → leaking only where intended

Evidence · next step

1. Confirm VRF definition.
2. Confirm interface-to-VRF binding.
3. Check the VRF RIB and CEF.
4. Test with a VRF-aware source.
5. Inspect any explicit route-leaking policy and return path.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
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.

PlatformCisco IOS / IOS XE · Cisco IOS XE
Key commandvrf definition <name>
Scope / prerequisiteUse it to separate tenants, management or overlapping address spaces on a shared platform.
Show · 2Reference · 11
What next?3 suggested next steps
Child topics (this level)3
Catalog command links13
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.

How to read the output

show ip route vrf <vrf>

Look first: route source/code, prefix, next hop, outgoing interface

Healthy: Expected prefix is installed with intended next hop/source.

Warning: Route absent, unexpected protocol/AD/metric, recursive next hop or wrong exit.

Does not prove: RIB presence does not prove FIB programming or packet delivery.

show ip route vrf <name>

Look first: route source/code, prefix, next hop, outgoing interface

Healthy: Expected prefix is installed with intended next hop/source.

Warning: Route absent, unexpected protocol/AD/metric, recursive next hop or wrong exit.

Does not prove: RIB presence does not prove FIB programming or packet delivery.

Operational workflow

Verification & Troubleshooting

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

5 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 First 30 seconds Verify boundary

Immediate answer: Verify interface VRF membership, the VRF RIB and CEF, then test with a VRF-aware source.

Verification chain: Ingress interface → VRF selection → VRF RIB → VRF CEF/adjacency → explicit leak/boundary → traffic

Stop condition: Global-table reachability does not show the same destination resolves in the intended VRF.

Step 2 Verification path Verify boundary

Primary bounded procedure: Use show vrf, then perform the route/neighbor lookup in the exact VRF and verify the bounded path.

Step 3 Verification and output interpretation Verify boundary

Use VRF-aware route and interface commands such as show ip route vrf <name> and the relevant interface detail to show both membership and routing state. When testing reachability, source the test from the intended VRF or use a VRF-aware ping/traceroute so the lookup occurs in the correct table. For a leaked route, show it exists in the source context, appears in the destination VRF by the intended mechanism, and has a valid return path. Identical prefix text in two VRFs is not ambiguity when the VRF context is kept attached to the evidence; always record the context together with prefix/next-hop data.

Step 4 Verification & troubleshooting Narrow the fault

1. Confirm VRF definition.

2. Confirm interface-to-VRF binding.

3. Check the VRF RIB and CEF.

4. Test with a VRF-aware source.

5. Inspect any explicit route-leaking policy and return path.

Path: Networking → Virtualization & Overlays → VRF. Local intent: VRF: Separate Routing Tables, Route Isolation, VRF-aware Services.

Step 5 Where it fails Narrow the fault

Common failure classes are underlay loss, control-plane registration failure, stale endpoint/route, policy rejection, MTU/encapsulation issue, one-way tunnel or asymmetric egress. Also consider stale state, asymmetric return path, address-family or VRF mismatch, MTU/encapsulation mismatch, policy ordering, timer/authentication mismatch, partial convergence and a working management plane over a broken data plane.

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.

command output · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • Interface membership selects the VRF before route lookup
  • Each VRF has an independent RIB/FIB and neighbor context
  • Moving an interface into a VRF can remove its IP configuration on some platforms
  • Inter-VRF communication requires an explicit leak, firewall or routed boundary.
Key checks
  • show vrf / show vrf detail — VRFs, interfaces and RD/RT.
  • show ip route vrf <name> — the VRF routing table.
  • show ip interface brief vrf <name> — interfaces in the VRF.
  • ping vrf <name> <ip> source <if> / traceroute vrf <name> <ip> — tests inside the VRF.
  • show ip arp vrf <name> — neighbours resolved in the VRF.
  • show run | section vrf — routing protocol instances or address families per VRF.
ReferenceWhy it matters1 section · depth on demand

Overview

A VRF gives a router or switch several independent routing tables, so traffic in one VRF cannot reach another unless routes are deliberately leaked. VRF-Lite uses VRFs without MPLS; MPLS L3VPNs carry VRFs across a provider core with route distinguishers and route targets.

ConceptMeaning
VRFSeparate RIB/FIB
VRF-LitePer-hop VRFs, often over 802.1Q subinterfaces
RDMakes VPN prefixes unique in MP-BGP
RTControls import/export between VRFs

Management-plane services (SNMP, syslog, NTP, AAA) need VRF-aware configuration if the management network is in a VRF.

ReferenceImportant terms & boundaries4 sections · depth on demand

In depth

VRF: several separate routing tables on one router or switch

A VRF (virtual routing and forwarding instance) gives a device an extra, independent routing table. The Catalyst 9300 VRF-lite guide describes VRF-lite (multi-VRF CE) as using the input interface to decide which VRF a packet belongs to, with a separate forwarding table per VRF built from the Layer 3 interfaces assigned to it. Overlapping addresses are allowed across VRFs, and a Layer 3 interface can belong to only one VRF at a time.

C9300(config)# vrf definition GUEST
C9300(config-vrf)# rd 64500:90
C9300(config-vrf)# address-family ipv4
C9300(config-vrf-af)# exit-address-family
C9300(config-vrf)# address-family ipv6
C9300(config-vrf-af)# exit-address-family
C9300(config)# interface Vlan90
C9300(config-if)# vrf forwarding GUEST
C9300(config-if)# ip address 10.90.0.1 255.255.255.0
C9300(config)# interface TenGigabitEthernet1/1/8
C9300(config-if)# no switchport
C9300(config-if)# vrf forwarding GUEST
C9300(config-if)# ip address 172.30.90.1 255.255.255.252
C9300(config)# ip route vrf GUEST 0.0.0.0 0.0.0.0 172.30.90.2
C9300# show vrf
  Name                             Default RD            Protocols   Interfaces
  GUEST                            64500:90              ipv4,ipv6   Vl90
                                                                     Te1/1/8

Documented behaviour (Catalyst 9300 VRF-lite guide)

TopicDetail
LookupA destination not in the VRF's table is dropped; no fallback to the global table
InterfacesPhysical routed ports or SVIs; one VRF per interface
Address familiesOne VRF can carry both IPv4 and IPv6
HardwareThe Layer 3 TCAM is shared by all VRFs; if a VRF runs out, its forwarding falls back to software
ProtocolsBGP, OSPF, EIGRP, RIP and static for IPv4; OSPFv3, BGP, EIGRPv6 and static for IPv6; PIM-SM and PIM-SSM multicast

VRF-lite versus MPLS VPN

VRF-liteMPLS L3VPN
Carrying VRFs between devicesOne interface (or subinterface/VLAN) per VRF per linkLabels over a shared core
Route distinguisher and targetsLocally significantUsed by MP-BGP to keep VRFs apart
ScaleA handful of VRFs over few hopsMany VRFs across a large network

Typical uses

Separate guest, IoT or management traffic from the enterprise routing table, connect partner networks with overlapping addresses, or keep an out-of-band management network apart.

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.

Mechanics

The durable invariants are: underlay reaches all required endpoints; control plane distributes intended state; segment/policy identity matches; encapsulation overhead/MTU is supported; return path is valid. Preserve device, VRF, VLAN, interface, address family, process or instance identity; exact prefixes/peers; direction; timestamps; platform/release; and the policy object that acted on traffic.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

State model and protocol mechanics

Virtual Routing and Forwarding separates routing and forwarding state into named contexts. An interface associated with a VRF performs Layer 3 lookup in that VRF rather than in the global routing table, and connected/local routes belong to the same context. Because lookups are isolated, overlapping IPv4/IPv6 prefixes can coexist across VRFs. Control-plane protocols and operational tools often need an explicit VRF argument so their sockets, neighbors, routes or probes use the intended context. Communication between VRFs is not implicit; it requires a deliberate route-leaking or inter-VRF design. On platforms with MPLS VPN concepts, route distinguishers/targets add additional control-plane semantics, but a local VRF-Lite design can still provide simple routing isolation without them.

Limits and common misconceptions

A route present in the global table does not make it reachable from a VRF, and a route present in one VRF says nothing about another. Interface up/up does not show the expected VRF route exists. Overlapping address space is a supported design property, not automatically a conflict, but it makes context-free troubleshooting output dangerous. VRF isolation is a routing separation mechanism; it is not by itself a complete security policy. Route leaking intentionally breaks isolation for selected reachability and therefore requires both forward and return-path design. Keep VRF identity attached to every route, interface and test result.

ReferenceConfiguration & state2 sections · depth on demand

Lifecycle

Record device/platform, interface/VRF/VLAN/process identity, peer or destination scope and rollback point first.

Design and configuration model

Create the VRF and assign interfaces according to a clear tenant/service ownership model, then configure addressing and routing inside the correct context. Moving an interface into a VRF can affect or remove existing Layer 3 configuration depending on platform behavior, so treat the operation as a routing-boundary change. Ensure static routes, dynamic routing, DHCP relay, management probes and other services are VRF-aware when they must operate inside the isolated table. Route leaking should be explicit and minimal: define exactly which prefixes cross the boundary and how return reachability is provided. Avoid relying on the global table as an accidental shared-services path.

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 docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Virtualization & Overlays → VRF. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.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
vrf litevirtual routing and forwardingshow vrf
Embedded reference data

Quick lookup tables

VRF / VRF-Lite evidence chain

Configuration, operational state, counters and downstream proof remain separate.

BoundaryQuestionEvidenceDoes not prove
DefinitionWhat is configured or intended?running configuration / controller policylive operation
Local stateIs the feature active at the expected scope?show ip route vrf <vrf>remote success
CountersDid controlled traffic or an event reach this stage?scoped counters/timestampscomplete return path
Next boundaryWhat consumes or transports this state?ingress interface → VRF selection → VRF RIB → VRF CEF/adjacency → explicit inter-VRF boundaryapplication success

VRF · operational reference

Compact state and interpretation boundaries for fast lookup.

ObjectContext rule
L3 interfaceBelongs to one routing context at a time
RouteInterpreted inside its VRF/global table
Ping/tracerouteMust use intended VRF/source to prove that context
Shared serviceNeeds VRF-aware reachability or explicit leak
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Output interpretation

Capture device, interface/VRF/VLAN/process/peer identity, address family, platform/release, current state, timers/sequence/age where relevant, counters, policy hits and timestamp.

Confirmation

Confirm action

Continue?