Networking · Virtualization & Overlays › VRF
VRF-aware Services
Cheat sheet · https://pcornel.dk/topic.php?topic=1329
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 pingshow 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.1ping vrf Mgmt-intf 192.0.2.10ip vrf forwarding Mgmt-intfip tacacs source-interface GigabitEthernet0ip tftp source-interface GigabitEthernet0ip ftp source-interface GigabitEthernet0ip name-server vrf Mgmt-intf 192.0.2.53show vrf detail Mgmt-intfshow ip route vrf Mgmt-intfping vrfshow ntp associationsshow 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