Cisco Nexus 7000 Series Configuration Manual page 377

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

Advertisement

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 .
2.
3.
4.
5.
DETAILED STEPS
Command
Step 1
config t
Example:
switch# config t
switch(config)#
Step 2
vrf context name
Example:
switch(config)# vrf definition
Enterprise
switch(config-vrf)#
Step 3
ip route { ip-prefix | ip-addr ip-mask }
{[ next-hop | nh-prefix ] | [ interface
next-hop | nh-prefix ]} [tag t ag-value
[ pref ]
Example:
switch(config-vrf)# ip route 192.0.2.0/8
ethernet 1/2 192.0.2.4
Step 4
show vrf [ vrf-name ]
Example:
switch(config-vrf)# show vrf Enterprise
Step 5
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
Use the no vrf context command to delete the VRF and the associated configuration:
Command
no vrf context name
Example:
switch(config)# no vrf context Enterprise
Any commands available in global configuration mode are also available in VRF configuration mode.
The following example shows how to create a VRF and add a static route to the VRF:
switch# config t
switch(config)# vrf context Enterprise
switch(config-vrf)# ip route 192.0.2.0/8 192.0.2.10
switch(config-vrf)# exit
switch(config)# copy running-config startup-config
OL-20002-02
vrf context vrf-name
configure optional parameters
show vrf [vrf-name]
copy running-config startup-config
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
Purpose
Enters configuration mode.
Creates a new VRF and enters VRF configuration
mode. The name can be any case-sensitive
alphanumeric string up to 32 characters.
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.
(Optional) Displays VRF information.
(Optional) Saves this configuration change.
Purpose
Deletes the VRF and all associated configuration.
Configuring VRFs
14-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents