Use it when checking which table a route is in, or why a route in one VRF is not seen in another.
Separate Routing Tables
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.
Context & applicabilityCommon mistakes · platform/version boundaries
- Forgetting the VRF in ping/traceroute and concluding the network is down.
- Applying
vrf forwardingand losing the interface IP (must be re-entered). - Management services (NTP, syslog, AAA, SNMP) using the global table when the management network is in a VRF — add
vrfoptions to each. - Route leaking without import/export filters, exposing more than intended.
Operational reference
Fast context before you go deeper.
ip address 10.0.0.1 255.255.255.0Evidence · 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.
show ip route vrf <vrf>— per-VRF tableshow ip vrf interfaces— interfaces per VRF
ReferenceWhy it matters1 section · depth on demand
When to use it
Use it to separate tenants, management or overlapping address spaces on a shared platform.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Separate routing tables: what a VRF changes
The Catalyst 9300 VRF-lite guide states that a separate forwarding table is built per VRF from the Layer 3 interfaces associated with it, and that a packet whose destination isn't in its VRF's table is dropped. Every lookup, route and neighbour is therefore per VRF.
C9300# show ip route vrf GUEST
Routing Table: GUEST
Gateway of last resort is 172.30.90.2 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 172.30.90.2
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.90.0.0/24 is directly connected, Vlan90
L 10.90.0.1/32 is directly connected, Vlan90
C9300# show ip route 10.90.0.0
% Network not in table
C9300# ping vrf GUEST 172.30.90.2
!!!!!
C9300# show ip arp vrf GUEST
10.90.0.0/24 exists only in the GUEST table, so the global show ip route doesn't know it.
Commands that take a VRF (from the guide)
| Task | Command |
|---|---|
| Routing table | show ip route vrf <name>, show ipv6 route vrf <name> |
| Routing protocols | show ip protocols vrf <name> |
| Static routes | ip route vrf <name> …, ipv6 route vrf <name> … |
| OSPF | router ospf <id> vrf <name> |
| BGP | address-family ipv4 vrf <name> under router bgp |
| Tests | ping vrf, traceroute vrf, ssh … -vrf, telnet … /vrf |
| Services | ntp server vrf …, arp vrf … |
Consequences
| Effect | Detail |
|---|---|
| Overlapping addresses | 10.0.0.0/8 can exist in several VRFs at once |
| Isolation | No traffic between VRFs unless routes are leaked or a firewall routes between them |
| Management | Management services (SSH, SNMP, syslog, NTP, AAA) must be told which VRF to use |
| Troubleshooting | Forgetting vrf <name> on show or ping commands is the most common mistake |
Moving an interface into a VRF
vrf forwarding <name> changes which table the interface belongs to. On IOS XE it removes the interface's IP addresses, so add them again afterwards. Do it on interfaces you can reach some other way.
Route leaking
Shared services (DNS, DHCP, the Internet) can be reached from several VRFs through a firewall, or by importing routes between VRFs with BGP route targets or static routes pointing at another VRF's next hop.
Documented example, not captured output.
Quick reference
A VRF (Virtual Routing and Forwarding instance) gives a router several completely separate routing tables. Interfaces are assigned to a VRF, and routes in one VRF are invisible to the others unless deliberately leaked. This lets one device serve several customers or security zones — even with overlapping IP addresses — and is the building block for MPLS VPNs, management networks and guest isolation.
Each VRF has its own RIB and FIB, so overlapping address spaces can coexist on one router.
vrf definition GUEST
rd 65000:120
address-family ipv4
interface Gi0/0/1.120
encapsulation dot1Q 120
vrf forwarding GUEST
ip address 10.120.0.1 255.255.255.0
ip route vrf GUEST 0.0.0.0 0.0.0.0 198.51.100.1
show ip route vrf GUEST
ping vrf GUEST 10.120.0.10
Assigning vrf forwarding removes the interface's IP address — re-apply it afterwards. Management tools (TACACS, NTP, syslog) need VRF-aware configuration when they live in a management VRF.
ReferenceConfiguration & state1 section · depth on demand
Commands
vrf definition CUST-A
rd 65000:10
address-family ipv4
interface GigabitEthernet0/0/2
vrf forwarding CUST-A
ip address 10.0.0.1 255.255.255.0
show ip route vrf CUST-A
ping vrf CUST-A 10.0.0.10
Documented example, not captured output. Applying vrf forwarding removes the interface IP address; re-enter it. Every show, ping, traceroute and routing protocol must reference the VRF.
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 → Separate 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%