![Cisco ASR 14000 Series Скачать руководство пользователя страница 168](http://html.mh-extra.com/html/cisco/asr-14000-series/asr-14000-series_management-command-reference_66667168.webp)
Configuration Management Commands on Cisco IOS XR Software
set default-vrf
SMR-166
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
set default-vrf
To set the default VPN routing and forwarding (VRF) instance for the current session, use the
set
default-vrf
command in EXEC mode.
set
default-vrf
{
name |
none
}
Syntax Description
Defaults
The default VRF setting is set to empty.
Command Modes
EXEC
Command History
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper
task IDs.
Use the
set default-vrf
command to set the default VRF setting for the current session. This command
acts as a keystroke shortcut for
show
commands. For example, if the default VRF is configured, you can
issue the
show route
command without specifying the VRF name.
When the default VRF for the session is set to
none
, then IPv4 routes for the system default VRF are
displayed.
Note
To override the default VRF setting, specify the VRF name in the
show
command.
Use the
command to display the default VRF setting.
Task ID
Examples
In the following example, the default VRF is set to “dft_vrf”:
RP/0/RP0/CPU0:router#
set default-vrf dft_vrf
%% Default Virtual Routing/Forwarding is set to 'dft_vrf'
In the following command, the
show route
command is entered without specifying a VRF name.
Because the default VRF was set to “dft_vrf”, the results for that VRF are displayed.
name
Default VPN routing and forwarding name.
none
Sets the default VPN routing and forwarding name to empty.
Release
Modification
Release 3.7.1
This command was introduced on the Cisco ASR 14000 Series Router.
Task ID
Operations
basic-services
read, write