Pcornel
Networking · Network & Protocols › Routing, VRF & Redundancy

VRF Operational Reference

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

Back to the Topic

Answer

A VRF is a separate routing table inside a router. Each interface belongs to one VRF, and traffic arriving on it is routed using only that VRF's table — one router behaves like several.

Remember

Every command acts on the global table unless the VRF is named: show ip route vrf, ping vrf, ip route vrf. Putting an interface into a VRF removes its IP address. Management services — NTP, syslog, TACACS+ — must be told to use the management VRF.

First checks

  • show vrf — VRFs, address families and interfaces.
  • show ip vrf interfaces — which VRF each interface is in.
  • show ip route vrf <name> — that VRF's table.
  • show ip cef vrf <name> <prefix> — its forwarding entry.
  • ping vrf <name> <address> source <interface> — reachability inside it.

Commands

show ip route
show ip route vrf GUEST
show ip cef <ip>
show ip cef vrf GUEST <ip>
ping 10.150.0.27
ping vrf GUEST 10.150.0.27
traceroute <ip>
traceroute vrf GUEST <ip>
show ip arp
show ip arp vrf GUEST
ip tftp source-interface
show vrf
ping vrf GUEST 8.8.8.8

Verify in this order

interface assigned to the VRF and readdressed → routes (static or protocol) configured in that VRF → route present in the VRF's table → tests run with the VRF named → reachable inside the VRF

Where it usually breaks

physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result

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

Confirmation

Confirm action

Continue?