Configuring Virtualization - Cisco Nexus 7000 Series Configuration Manual

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

Advertisement

Chapter 13
Configuring Static Routing
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
Step 3
show {ip | ipv6} static-route
Example:
switch(config)# show ip static-route
Step 4
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
This example shows how to configure a static route:
switch# config t
switch(config)# ip route 192.0.2.0/8 192.0.2.10
switch(config)# copy running-config startup-config
Use the no {ip | ipv6} static-route command to remove the static route.

Configuring Virtualization

You can configure a static route in a VRF.
BEFORE YOU BEGIN
Ensure that you are in the correct VDC (or use the switchto vdc command).
SUMMARY STEPS
1.
2.
3.
4.
5.
6.
DETAILED STEPS
Command
Step 1
config t
Example:
switch# config t
switch(config)#
Step 1
vrf context vrf-name
Example:
switch(config)# vrf context StaticVrf
OL-20002-02
config t
vrf context vrf-name
ip route {ip-prefix | ip-addr ip-mask} {next-hop | nh-prefix | interface} [tag tag-value [pref]
or
ipv6 route ip6-prefix {nh-prefix | link-local-nh-prefix} | {nh-prefix [interface] | link-local-nh-prefix
[interface]} [tag tag-value [pref]
show {ip | ipv6} static-route vrf vrf-name
copy running-config startup-config
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
Purpose
(Optional) Displays information about static routes.
(Optional) Saves this configuration change.
Purpose
Enters configuration mode.
Creates a VRF and enters VRF configuration mode.
Configuring Static Routing
13-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents