Use this Topic as the entry point for the related state, configuration, commands and troubleshooting evidence.
VRF & Routing Tables
Routing-table separation, route lookup context, import/export behavior and forwarding-table verification.
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.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ip route vrf <vrf>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.
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
Step 2 Common mistakes Narrow the fault
- Testing with plain
pinginstead ofping vrf NAME. - Assigning an IP before
vrf forwarding(the command removes the address). - Expecting routes to leak between VRFs without explicit import/export.
Start with current state and the expected behavior. Follow the child Topics for a more specific protocol, component or failure boundary.
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
| Use | Example |
|---|---|
| VRF-Lite | Guest, IoT and corporate tables on one enterprise router, without MPLS |
| Management VRF | Out-of-band management separated from production routing |
| MPLS L3VPN (RFC 4364) | Customer VPNs across a provider backbone |
| SD-Access and SD-WAN | Virtual networks carried as VRFs |
RD compared with RT (RFC 4364)
| Route distinguisher | Route target | |
|---|---|---|
| Purpose | Make prefixes unique | Control which VRFs import routes |
| Format | 8 bytes (type + value), for example 65010:110 | Extended community, for example 65010:110 |
| Per VRF | One | Several import and export values |
| Affects | Route identity in BGP | Topology: full mesh, hub and spoke |
Roles in an MPLS VPN (RFC 4364)
| Role | Holds VRFs? | Knows customer routes? |
|---|---|---|
| CE | No | Its own site's |
| PE | Yes | Yes, per VRF |
| P (core) | No | No; 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
| Mistake | Effect |
|---|---|
vrf forwarding applied after the IP address | IOS removes the address; reconfigure it |
Tests without vrf | Ping and traceroute use the global table |
| Missing route leaking for shared services | The VRF can't reach DNS or DHCP; leak deliberately or use a firewall |
Documented example, not captured output.
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).
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 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%