EasyManua.ls Logo

Cisco Nexus 7000 Series - Configuring Virtualization

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.
13-5
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
OL-20002-02
Chapter 13 Configuring Static Routing
Configuring Static Routing
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. config t
2. vrf context vrf-name
3. ip route {ip-prefix | ip-addr ip-mask} {next-hop | nh-prefix | interface} [tag tag-value [pref]
or
4. ipv6 route ip6-prefix {nh-prefix | link-local-nh-prefix} | {nh-prefix [interface] | link-local-nh-prefix
[interface]} [tag tag-value [pref]
5. show {ip | ipv6} static-route vrf vrf-name
6. copy running-config startup-config
DETAILED STEPS
Step 3
show {ip | ipv6} static-route
Example:
switch(config)# show ip static-route
(Optional) Displays information about static routes.
Step 4
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
(Optional) Saves this configuration change.
Command Purpose
Command Purpose
Step 1
config t
Example:
switch# config t
switch(config)#
Enters configuration mode.
Step 1
vrf context
vrf-name
Example:
switch(config)# vrf context StaticVrf
Creates a VRF and enters VRF configuration mode.

Table of Contents

Other manuals for Cisco Nexus 7000 Series

Related product manuals