Specifications

Send document comments to nexus3k-docfeedback@cisco.com.
11-7
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
SUMMARY STEPS
1. configure terminal
2. vrf context name
3. ip route {ip-prefix | ip-addr ip-mask} {[next-hop | nh-prefix] | [interface next-hop | nh-prefix]} [tag
tag-value [pref]
4. (Optional) show vrf [vrf-name]
5. (Optional) copy running-config startup-config
DETAILED STEPS
Use the no vrf context command to delete the VRF and the associated configuration:
Any commands available in global configuration mode are also available in VRF configuration mode.
Command Purpose
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Enters configuration mode.
Step 2
vrf context name
Example:
switch(config)# vrf definition
Enterprise
switch(config-vrf)#
Creates a new VRF and enters VRF configuration
mode. The name can be any case-sensitive,
alphanumeric string up to 32 characters.
Step 3
ip route {ip-prefix | ip-addr ip-mask}
{[next-hop | nh-prefix] | [interface
next-hop | nh-prefix]}
[tag tag-value
[pref]
Example:
switch(config-vrf)# ip route 192.0.2.0/8
ethernet 1/2 192.0.2.4
Configures a static route and the interface for this
static route. You can optionally configure the next-hop
address. The preference value sets the administrative
distance. The range is from 1 to 255. The default is 1.
Step 4
show vrf [vrf-name]
Example:
switch(config-vrf)# show vrf Enterprise
(Optional) Displays VRF information.
Step 5
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
(Optional) Saves this configuration change.
Command Purpose
no vrf context name
Example:
switch(config)# no vrf context Enterprise
Deletes the VRF and all associated configuration.