Setting The Vrf Scope - Cisco Nexus 7000 Series Configuration Manual

Nx-os unicast routing configuration
Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

Configuring VRFs
S e n d d o c u m e n t c o m m e n t s t o n e x u s 7 k - d o c f e e d b a c k @ c i s c o . c o m .
Command
Step 3
vrf context vrf-name
Example:
switch(config)# vrf context Blue
switch(config-vrf)#
Step 4
ip domain-list domain-name
[all-vrfs][use-vrf vrf-name ]
Example:
switch(config-vrf)# ip domain-list List
all-vrfs use-vrf Blue
switch(config-vrf)#
Step 5
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
The following example shows how to send SNMP information for all VRFs to SNMP host 192.0.2.1,
reachable on VRF Red:
switch# config t
switch(config)# snmp-server host 192.0.2.1 for-all-vrfs use-vrf Red
switch(config)# copy running-config startup-config
The following example shows how to Filter SNMP information for VRF Blue to SNMP host 192.0.2.12,
reachable on VRF Red:
switch# config t
switch(config)# vrf definition Blue
switch(config-vrf)# snmp-server host 192.0.2.12 use-vrf Red
switch(config)# copy running-config startup-config

Setting the VRF Scope

You can set the VRF scope for all EXEC commands (for example, show commands). This automatically
restricts the scope of the output of EXEC commands to the configured VRF. You can override this scope
by using the VRF keywords available for some EXEC commands.
To set the VRF scope, use the following command in EXEC mode:
Command
routing-context vrf vrf-name
Example:
switch# routing-context vrf red
switch%red#
To return to the default VRF scope, use the following command in EXEC mode:
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
14-12
Chapter 14
Purpose
Creates a new VRF.
Configures the domain list in the VRF and optionally
configures the VRF that Cisco NX-OS uses to reach
the domain name listed.
(Optional) Saves this configuration change.
Purpose
Sets the routing context for all EXEC commands.
Default routing context is the default VRF.
Configuring Layer 3 Virtualization
OL-20002-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents