EasyManua.ls Logo

Cisco Nexus 7000 Series - Setting the VRF Scope

Cisco Nexus 7000 Series
536 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Send document comments to nexus7k-docfeedback@cisco.com.
14-12
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
OL-20002-02
Chapter 14 Configuring Layer 3 Virtualization
Configuring VRFs
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:
To return to the default VRF scope, use the following command in EXEC mode:
Step 3
vrf context
vrf-name
Example:
switch(config)# vrf context Blue
switch(config-vrf)#
Creates a new 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)#
Configures the domain list in the VRF and optionally
configures the VRF that Cisco NX-OS uses to reach
the domain name listed.
Step 5
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
(Optional) Saves this configuration change.
Command Purpose
Command Purpose
routing-context vrf
vrf-name
Example:
switch# routing-context vrf red
switch%red#
Sets the routing context for all EXEC commands.
Default routing context is the default VRF.

Table of Contents

Other manuals for Cisco Nexus 7000 Series

Related product manuals