VRF-aware Services
1. VRF-aware services must specify the VRF (ip domain lookup vrf, ntp server vrf, ip helper vrf).
2. Management VRFs isolate admin traffic.
3. Forgetting vrf sends traffic via the global table.
4. Test each service in its VRF.
5. Document management VRF use.
service configured with vrf → uses VRF table → reaches server
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
ping vrf <name> <destination>Primary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
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.
ReferenceWhat it is1 section · depth on demand
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 & boundaries1 section · depth on demand
In depth
Management VRFs on IOS XE
| Platform family | Management port | Built-in VRF |
|---|---|---|
| IOS XE routers (ISR, Catalyst 8000) | GigabitEthernet0 | Mgmt-intf |
| Catalyst 9000 switches | GigabitEthernet0/0 | Mgmt-vrf |
The management port is placed in its own VRF automatically, so it needs its own default route: ip route vrf Mgmt-intf 0.0.0.0 0.0.0.0 192.0.2.1.
Service-by-service configuration
| Service | VRF-aware configuration |
|---|---|
| Ping/traceroute | ping vrf Mgmt-intf 192.0.2.10 |
| NTP | ntp server vrf Mgmt-intf 192.0.2.10 |
| Syslog | logging host 192.0.2.50 vrf Mgmt-intf + logging source-interface GigabitEthernet0 vrf Mgmt-intf |
| SNMP notifications | snmp-server host 192.0.2.60 vrf Mgmt-intf version 3 priv NMS |
| TACACS+/RADIUS | Under the server group: ip vrf forwarding Mgmt-intf and ip tacacs source-interface GigabitEthernet0 |
| SSH client | ssh -vrf Mgmt-intf -l admin 192.0.2.20 |
| File transfers | ip tftp source-interface GigabitEthernet0, ip ftp source-interface GigabitEthernet0 |
| DNS lookups | ip name-server vrf Mgmt-intf 192.0.2.53 |
The VTY ACL trap
An access-class on the VTY lines by default only matches sessions arriving in the global table. Sessions to the management VRF need the vrf-also keyword:
line vty 0 15
access-class MGMT-HOSTS in vrf-also
transport input ssh
Without it, either management SSH is blocked or — worse — the ACL is assumed to protect a path it does not cover.
Verify
show vrf detail Mgmt-intf lists interfaces and address families; show ip route vrf Mgmt-intf must contain the default route; for each service, a test from the device (ping vrf, show ntp associations, a test log message with send log) proves it really uses the VRF. A service that works only after adding a global route to the management subnet is leaking management traffic into the data plane.
ReferenceConfiguration & state1 section · depth on demand
Examples
ip ssh source-interface Gi0/0 ! interface in VRF MGMT
ntp server vrf MGMT 10.0.0.10
logging host 10.0.0.20 vrf MGMT
ip tacacs source-interface Gi0/0
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Virtualization & Overlays → VRF → VRF-aware Services. 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%