Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

VRF & Routing Tables

Direct answer

Routing-table separation, route lookup context, import/export behavior and forwarding-table verification.

When to use this

Use this Topic as the entry point for the related state, configuration, commands and troubleshooting evidence.

First 30 seconds

1. VRFs separate routing tables on one router.

2. Interfaces belong to one VRF.

3. Overlapping addresses are allowed across VRFs.

4. Commands must specify vrf.

5. Route leaking is explicit.

Operational verification

interface in VRF → VRF RIB → VRF FIB → forwarding

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 commandshow ip route vrf <vrf>
Scope / prerequisiteUse this Topic as the entry point for the related state, configuration, commands and troubleshooting evidence.
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence0
On this pageJump to a specific section
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.

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

Fast verification

  • Confirm the interface and process are in the intended VRF before reading routes.

- Perform the route lookup in the same VRF context and verify next-hop resolution/FIB state.

- Treat route import/export as explicit policy; a route in the global table does not show VRF reachability.

Step 2 Common mistakes Narrow the fault
  • Testing with plain ping instead of ping vrf NAME.
  • Assigning an IP before vrf forwarding (the command removes the address).
  • Expecting routes to leak between VRFs without explicit import/export.
Command lookup Jump straight to Cisco syntax
Key points

Start with current state and the expected behavior. Follow the child Topics for a more specific protocol, component or failure boundary.

Key checks
  • show vrf — VRFs and interfaces
  • show ip route vrf <vrf> — per-VRF RIB
  • ping vrf <vrf> <ip> — test inside VRF
ReferenceWhat it is1 section · depth on demand

What it is

A VRF (Virtual Routing and Forwarding) instance is a separate routing table and FIB on one router. Interfaces are assigned to a VRF, lookups happen only in that VRF's table, and the same prefixes can exist in several VRFs. Routes move between VRFs only through explicit leaking or route-target import/export (MPLS L3VPN).

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

VRFs: separate routing tables on one router

A VRF gives a router several independent routing and forwarding tables. Each interface belongs to exactly one of them. RFC 4364 introduced VRFs for BGP/MPLS VPNs. A provider edge (PE) router keeps a separate table per customer, and traffic from each attachment circuit is looked up in that circuit's VRF. Route distinguishers (8 bytes) make overlapping customer prefixes unique as VPN-IPv4 routes in BGP. Route targets (extended communities) decide which VRFs import each route.

VRF uses

UseExample
VRF-LiteGuest, IoT and corporate tables on one enterprise router, without MPLS
Management VRFOut-of-band management separated from production routing
MPLS L3VPN (RFC 4364)Customer VPNs across a provider backbone
SD-Access and SD-WANVirtual networks carried as VRFs

RD compared with RT (RFC 4364)

Route distinguisherRoute target
PurposeMake prefixes uniqueControl which VRFs import routes
Format8 bytes (type + value), for example 65010:110Extended community, for example 65010:110
Per VRFOneSeveral import and export values
AffectsRoute identity in BGPTopology: full mesh, hub and spoke

Roles in an MPLS VPN (RFC 4364)

RoleHolds VRFs?Knows customer routes?
CENoIts own site's
PEYesYes, per VRF
P (core)NoNo; forwards on labels only
R1(config)# vrf definition GUEST
R1(config-vrf)# rd 65010:150
R1(config-vrf)# address-family ipv4
R1(config-vrf-af)# route-target both 65010:150
R1(config)# interface Vlan150
R1(config-if)# vrf forwarding GUEST
R1(config-if)# ip address 10.150.0.1 255.255.0.0
R1# show vrf brief
R1# show ip route vrf GUEST
R1# ping vrf GUEST 10.150.0.27
R1# show ip cef vrf GUEST 0.0.0.0

Common mistakes

MistakeEffect
vrf forwarding applied after the IP addressIOS removes the address; reconfigure it
Tests without vrfPing and traceroute use the global table
Missing route leaking for shared servicesThe VRF can't reach DNS or DHCP; leak deliberately or use a firewall

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.

Quick reference

VRFs create separate routing tables on one device so overlapping address spaces or isolated segments coexist.

vrf definition GUEST
 rd 65000:20
 address-family ipv4
interface Vlan120
 vrf forwarding GUEST
 ip address 10.120.0.1 255.255.255.0
show ip route vrf GUEST
ping vrf GUEST 8.8.8.8
show vrf brief

VRF-Lite (no MPLS) is common for campus segmentation and management VRFs; route leaking between VRFs needs explicit configuration (BGP import/export or static routes with global).

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

Authoritative/upstream documentation reviewed for bounded claims in VRF & Routing Tables. 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%
Confirmation

Confirm action

Continue?