Specifications
Send document comments to nexus3k-docfeedback@cisco.com.
11-11
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, Release 5.0(3)U2(2)
OL-25782-02
Chapter 11 Configuring Layer 3 Virtualization
Configuring VRFs
This example shows how to create a VRF and add an interface to the VRF:
switch# configure terminal
switch(config)# vrf context RemoteOfficeVRF
switch(config-vrf)# exit
switch(config)# router ospf 201
switch(config-router)# vrf RemoteOfficeVRF
switch(config-router-vrf)# maximum-paths 4
switch(config-router-vrf)# interface ethernet 1/2
switch(config-if)# vrf member RemoteOfficeVRF
switch(config-if)# ip address 192.0.2.1/16
switch(config-if)# ip router ospf 201 area 0
switch(config-if)# exit
switch(config)# copy running-config startup-config
Configuring a VRF-Aware Service
You can configure a VRF-aware service for reachability and filtering. See the “VRF-Aware Services”
section on page 11-3 for links to the appropriate chapter or configuration guide for information on how
to configure the service for VRFs. This section uses SNMP and IP domain lists as example services for
the detailed configuration steps.
SUMMARY STEPS
1. configure terminal
2. snmp-server host ip-address [filter_vrf vrf-name] [use-vrf vrf-name]
3. vrf context [vrf-name]
4. ip domain-list domain-name [all-vrfs][use-vrf vrf-name]
5. (Optional) copy running-config startup-config
DETAILED STEPS
Command Purpose
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Enters configuration mode.
Step 2
snmp-server host ip-address [filter-vrf
vrf-name] [use-vrf vrf-name]
Example:
switch(config)# snmp-server host
192.0.2.1 use-vrf Red
switch(config-vrf)#
Configures a global SNMP server and configures the
VRF that Cisco NX-OS uses to reach the service Use
the filter-vrf keyword to filter information from the
selected VRF to this server.
Step 3
vrf context vrf-name
Example:
switch(config)# vrf context Blue
switch(config-vrf)#
Creates a new VRF.