Configure the Default Ping and Traceroute Context

About this task

Ping commands and traceroute commands execute in Global Router (GRT) context by default. You can configure ping commands and traceroute commands to execute in management (mgmt) context or in Virtual Router Forwarding (vrf) context.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Configure the default ping command and traceroute command context:

    sys default-ping-context {grt | mgmt | vrf}

Variable Definitions

The following table defines parameters for the sys default-ping-context command.

Variable Value
grt Specifies Global Routing Table (grt) context as the default context for ping commands and traceroute commands. The default configuration is grt as the default context.
mgmt Specifies management (mgmt) context as the default context for ping commands and traceroute commands. The default configuration is grt as the default context.
vrf Specifies Virtual Router Forwarding (VRF) context as the default context for ping commands and traceroute commands. The default configuration is grt as the default context.