Virtualized management applications, such as ping and traceroute, operate using the specified VRF context. To operate ping or traceroute you must specify the desired VRF context. If not specified, ping defaults to the Global Router VRF. For example, if you want to ping a device through the out-of-band management port you must select the Management Router VRF. For example, if you want to ping a device through the out-of-band management port you must select the Management Router VRF.
Note
Ipv6 is not supported on MgmtRouter.
Switch:1(config)#ping 192.0.2.1 vrf MgmtRouter 192.0.2.1 is alivePing test for IPv6:
Switch:1(config)#ping 2001:db8::1 vrf vrfRED 2001:db8::1 is aliveTraceroute test for IPv4:
Switch:1#traceroute 192.0.2.1 vrf MgmtRouterTraceroute test for IPv6:
Switch:1#traceroute 2001:db8::1 vrf vrfRED