Chapter 14
Configuring Layer 3 Virtualization
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
routing-context vrf default
Example:
switch%red# routing-context vrf default
switch#
Verifying VRF Configuration
To display VRF configuration information, use one of the following commands:
Command
show vrf [vrf-name]
show vrf [vrf-name] detail
show vrf [vrf-name] [interface interface-type
slot/port]
VRF Example Configuration
This example shows how to configure VRF Red, add an SNMP server to that VRF, and add an instance
of OSPF to VRF Red:
configure terminal
vrf context Red
snmp-server host 192.0.2.12 use-vrf Red
router ospf 201
vrf Red
interface ethernet 1/2
vrf member Red
ip address 192.0.2.1/16
ip router ospf 201 area 0
This example shows how to configure VRF Red and Blue, add an instance of OSPF to each VRF, and
create an SNMP context for each OSPF instance in each VRF:
configure terminal
!Create the VRFs
vrf context Red
vrf context Blue
vrf context Green
!Create the OSPF instances and associate them with a single VRF or multiple VRFs
(recommended)
feature ospf
router ospf Lab
vrf Red
!
router ospf Production
vrf Blue
router-id 1.1.1.1
vrf Green
router-id 2.2.2.2
!Configure one interface to use ospf Lab on VRF Red
OL-20002-02
Purpose
Sets the default routing context.
Purpose
Displays the information for all or one VRF.
Displays detailed information for all or one VRF.
Displays the VRF status for an interface.
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
Verifying VRF Configuration
14-13