NetOps Toolkit

Cisco IOS

VRF / VRF-Lite Guide

Understand VRFs with a simple config generator for single-VRF spoke designs over DMVPN

What is a VRF?

Virtual Routing and Forwarding (VRF) lets a single router hold multiple completely separate routing tables at the same time. Think of it as running several independent routers inside one physical box.

  • Each VRF has its own interfaces, routing table, and default gateway.
  • The same IP network (e.g. 10.0.0.0/24) can be reused in different VRFs without conflict.
  • Traffic in one VRF stays completely isolated from other VRFs unless you explicitly leak routes between them.
  • Used without MPLS this is called VRF-Lite — very common on Cisco branch and campus routers.

VRF vs VLAN

FeatureVLANVRF
OSI LayerLayer 2 — switch / broadcast domainLayer 3 — IP routing table instance
What it separatesMAC broadcasts and switch portsIP routing, subnets, and default routes
Typical exampleVLAN 10 Users, VLAN 20 VoiceVRF PROD, VRF MGMT, VRF GUEST
Used together?Yes — the SVI for VLAN 10 can live inside VRF PROD so users in VLAN 10 use the PROD routing table and default gateway.
For VLAN config use the VLAN Config Generator. For WAN/VPN background see WAN & VPN Services and Network Types in this toolkit.

Common VRF Use Cases

VRF-Lite on Campus
Split management, users, and guest into separate VRFs on the same distribution router or firewall.
WAN / DMVPN Segmentation
Run a DMVPN tunnel per VRF so production and management traffic stay separate over the same physical WAN.
Per-Customer VPN
Each customer gets its own VRF — overlapping RFC1918 addresses are no problem because each VRF is isolated.

Show & Verify Commands

CommandPurpose
show vrfList all VRFs, interfaces assigned, and state
show vrf detailFull VRF details including RD, RT, and interfaces
show ip route vrf NAMERouting table for a specific VRF
show ip interface briefVerify interface VRF assignment and IP
ping vrf NAME x.x.x.xPing sourced from inside a specific VRF
traceroute vrf NAME x.x.x.xTraceroute inside a specific VRF
show ip eigrp vrf NAME neighborsEIGRP neighbors inside a VRF
show ip bgp vpnv4 vrf NAMEBGP prefixes for a specific VRF (MPLS/VPNv4)