EasyManua.ls Logo

Cisco Nexus 7000 Series - Page 377

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-7
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
OL-20002-02
Chapter 14 Configuring Layer 3 Virtualization
Configuring VRFs
2. vrf context vrf-name
3. configure optional parameters
4. show vrf [vrf-name]
5. 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.
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
Command Purpose
Step 1
config t
Example:
switch# config t
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 t
ag-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.

Table of Contents

Other manuals for Cisco Nexus 7000 Series

Related product manuals