Use it to separate tenants, management or overlapping address spaces on a shared platform.
VRF
VRF-Lite creates multiple isolated Layer-3 routing and forwarding contexts on one device without requiring MPLS.
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.
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
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.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
vrf definition <name>Primary Commands
Configuration and operational commands for this Topic.
vrf definition <name>ReferenceCreate a VRF (multi-address-family syntax).
Use when: Use this command at the VRF / VRF-Lite boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Global-table success does not prove the same destination resolves inside the intended VRF.
Cisco IOS / IOS XE · mixedrd <rd>ReferenceSet the route distinguisher of a VRF (needed for MP-BGP VPNs).
Use when: Use this command at the VRF / VRF-Lite boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Global-table success does not prove the same destination resolves inside the intended VRF.
Cisco IOS / IOS XE · mixedaddress-family ipv4ReferenceEnter the IPv4 address family under a VRF definition.
Use when: Use this command at the VRF / VRF-Lite boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Global-table success does not prove the same destination resolves inside the intended VRF.
Cisco IOS / IOS XE · mixedaddress-family ipv6ReferenceEnter the IPv6 address family under a VRF definition.
Use when: Use this command at the VRF / VRF-Lite boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Global-table success does not prove the same destination resolves inside the intended VRF.
Cisco IOS / IOS XE · mixedinterface <interface>ReferenceEnter interface configuration mode.
Use when: Use at the IOS / IOS XE Fundamentals boundary after prerequisite state is verified.
Quick note: Operational guidance. A command accepted by the parser does not prove feature support, correct scope, persistence or desired forwarding behavior.
Cisco IOS / IOS XE · mixedvrf forwarding <name>ReferenceAssign an interface to a VRF; this removes its IP address, so add it again.
Use when: Use this command at the VRF / VRF-Lite boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Global-table success does not prove the same destination resolves inside the intended VRF.
Cisco IOS / IOS XE · mixedip address <address> <mask>ReferenceAssign an IPv4 address and mask to an interface.
Use when: Use this command at the GRE Tunnels boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. An up tunnel interface does not prove overlay routing, MTU safety or application reachability.
Cisco IOS / IOS XE · mixedip route vrf <name> <network> <mask> <next-hop>ReferenceConfigure a static route inside a VRF.
Use when: Use this command at the VRF / VRF-Lite boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Global-table success does not prove the same destination resolves inside the intended VRF.
Cisco IOS / IOS XE · mixedping vrf <name> <destination>ReferencePing a destination using the routing table of a VRF.
Use when: Use this command at the VRF / VRF-Lite boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Global-table success does not prove the same destination resolves inside the intended VRF.
Cisco IOS / IOS XE · mixedShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show ip route vrf <vrf>ReferenceIPv4 RIB for a specific VRF.
Use when: Use this command at the VRF / VRF-Lite boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Global-table success does not prove the same destination resolves inside the intended VRF.
Cisco IOS XE · mixedshow vrfShowVRF definitions and attached interfaces.
Use when: Use this command at the VRF / VRF-Lite boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Global-table success does not prove the same destination resolves inside the intended VRF.
Cisco IOS XE · mixedshow ip route vrf <name>ReferenceDisplay the routing table of a VRF.
Use when: Use this command at the VRF / VRF-Lite boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Global-table success does not prove the same destination resolves inside the intended VRF.
Cisco IOS / IOS XE · mixedshow ip vrfShowLists the VRFs with their route distinguisher and the interfaces assigned to each.
Use when: You need to check which interfaces belong to which VRF.
Quick note: "show ip vrf interfaces" also shows the IP address and protocol state per interface. Newer configurations defined with "vrf definition" are listed by show vrf.
Cisco IOS / IOS XE · configuration · verifiesHow 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.
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 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.
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 · 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.
Subtopics
Go one level deeper into this subject.
Each VRF has its own routing table and forwarding table (show ip route vrf <name>), so the same prefix can exist in several VRFs with different next hops.
Subtopic Route IsolationRoute isolation means routes in one VRF are not visible to other VRFs, so networks with overlapping addresses or different security levels share one router without leaking into each other.
Subtopic VRF-aware ServicesVRF-aware services such as ping vrf, NAT, DHCP relay, SNMP and syslog must be told which VRF to use, or they operate in the global table.
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.
| Concept | Meaning |
|---|---|
| VRF | Separate RIB/FIB |
| VRF-Lite | Per-hop VRFs, often over 802.1Q subinterfaces |
| RD | Makes VPN prefixes unique in MP-BGP |
| RT | Controls 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)
| Topic | Detail |
|---|---|
| Lookup | A destination not in the VRF's table is dropped; no fallback to the global table |
| Interfaces | Physical routed ports or SVIs; one VRF per interface |
| Address families | One VRF can carry both IPv4 and IPv6 |
| Hardware | The Layer 3 TCAM is shared by all VRFs; if a VRF runs out, its forwarding falls back to software |
| Protocols | BGP, 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-lite | MPLS L3VPN | |
|---|---|---|
| Carrying VRFs between devices | One interface (or subinterface/VLAN) per VRF per link | Labels over a shared core |
| Route distinguisher and targets | Locally significant | Used by MP-BGP to keep VRFs apart |
| Scale | A handful of VRFs over few hops | Many 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.
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.
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
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 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%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.
Quick lookup tables
VRF / VRF-Lite evidence chain
Configuration, operational state, counters and downstream proof remain separate.
| Boundary | Question | Evidence | Does not prove |
|---|---|---|---|
| Definition | What is configured or intended? | running configuration / controller policy | live operation |
| Local state | Is the feature active at the expected scope? | show ip route vrf <vrf> | remote success |
| Counters | Did controlled traffic or an event reach this stage? | scoped counters/timestamps | complete return path |
| Next boundary | What consumes or transports this state? | ingress interface → VRF selection → VRF RIB → VRF CEF/adjacency → explicit inter-VRF boundary | application success |
VRF · operational reference
Compact state and interpretation boundaries for fast lookup.
| Object | Context rule |
|---|---|
| L3 interface | Belongs to one routing context at a time |
| Route | Interpreted inside its VRF/global table |
| Ping/traceroute | Must use intended VRF/source to prove that context |
| Shared service | Needs VRF-aware reachability or explicit leak |
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.