Pcornel
Networking · Virtualization & Overlays › VRF

Separate Routing Tables

Cheat sheet · https://pcornel.dk/topic.php?topic=1327

Back to the Topic

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.

Remember

  • 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.

First checks

  • show ip route vrf <vrf> — per-VRF table
  • show ip vrf interfaces — interfaces per VRF

Commands

show ip route
show ip route vrf <name>
show ipv6 route vrf <name>
show ip protocols vrf <name>
ip route vrf <name> …
ping vrf
traceroute vrf

Verify in this order

interface in VRF → VRF RIB → VRF FIB

Where it usually breaks

underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1327

Confirmation

Confirm action

Continue?