Pcornel
Networking · Virtualization & Overlays › VRF

VRF-aware Services

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

Back to the Topic

Answer

VRF-aware services such as ping vrf, NAT, DHCP relay, SNMP and syslog must be told which VRF to use, or they operate in the global table.

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

  • ping vrf <vrf> <ip> — VRF-aware ping
  • show running-config | include vrf — VRF-aware services (NTP, SNMP, DHCP, TACACS)

Commands

ping vrf <name> <destination>
Ping a destination using the routing table of a VRF.
ip route vrf Mgmt-intf 0.0.0.0 0.0.0.0 192.0.2.1
ping vrf Mgmt-intf 192.0.2.10
ip vrf forwarding Mgmt-intf
ip tacacs source-interface GigabitEthernet0
ip tftp source-interface GigabitEthernet0
ip ftp source-interface GigabitEthernet0
ip name-server vrf Mgmt-intf 192.0.2.53
show vrf detail Mgmt-intf
show ip route vrf Mgmt-intf
ping vrf
show ntp associations
show vrf

Verify in this order

service configured with vrf → uses VRF table → reaches server

Where it usually breaks

underlay IP/transport → control/session registration → route/endpoint distribution → policy/segment → encapsulation/tunnel state → decapsulation/egress → return path

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

Confirmation

Confirm action

Continue?