Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Separate Routing Tables

Direct answer

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.

When to use this

Use it when checking which table a route is in, or why a route in one VRF is not seen in another.

First 30 seconds

1. Each VRF has its own RIB and FIB.

2. Interfaces belong to one VRF.

3. Overlapping IPs allowed.

4. Routing protocols run per VRF.

5. Leaking is explicit.

Operational verification

interface in VRF → VRF RIB → VRF FIB

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common VRF mistakes
  • Forgetting the VRF in ping/traceroute and concluding the network is down.
  • Applying vrf forwarding and 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 vrf options to each.
  • Route leaking without import/export filters, exposing more than intended.
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 commandip address 10.0.0.1 255.255.255.0
Scope / prerequisiteUse it when checking which table a route is in, or why a route in one VRF is not seen in another.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
Evidence references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • Interface membership selects the VRF before route lookup
  • Each VRF has an independent RIB/FIB and neighbor context
  • Moving an interface into a VRF can remove its IP configuration on some platforms
  • Inter-VRF communication requires an explicit leak, firewall or routed boundary.
Key checks
  • show ip route vrf <vrf> — per-VRF table
  • show 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)

TaskCommand
Routing tableshow ip route vrf <name>, show ipv6 route vrf <name>
Routing protocolsshow ip protocols vrf <name>
Static routesip route vrf <name> …, ipv6 route vrf <name> …
OSPFrouter ospf <id> vrf <name>
BGPaddress-family ipv4 vrf <name> under router bgp
Testsping vrf, traceroute vrf, ssh … -vrf, telnet … /vrf
Servicesntp server vrf …, arp vrf …

Consequences

EffectDetail
Overlapping addresses10.0.0.0/8 can exist in several VRFs at once
IsolationNo traffic between VRFs unless routes are leaked or a firewall routes between them
ManagementManagement services (SSH, SNMP, syslog, NTP, AAA) must be told which VRF to use
TroubleshootingForgetting 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
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 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%
Confirmation

Confirm action

Continue?