Configuring A Static Route - Cisco Nexus 7000 Series Configuration Manual

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

Advertisement

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 .
If you are familiar with the Cisco IOS CLI, be aware that the Cisco NX-OS commands for this feature
Note
might differ from the Cisco IOS commands that you would use.

Configuring a Static Route

You can configure a static route on the router.
BEFORE YOU BEGIN
Ensure that you are in the correct VDC (or use the switchto vdc command).
SUMMARY STEPS
1.
2.
3.
4.
5.
DETAILED STEPS
Command
Step 1
config t
Example:
switch# config t
switch(config)#
Step 2
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)# ip route 192.0.2.0/8
ethernet 1/2 192.0.2.4
ipv6 route ip6-prefix
{ nh-prefix | link-local-nh-prefix } |
( nexthop [ interface ] |
link-local-nexthop [ interface ]} [tag
t ag-value [ pref ]
Example:
switch(config)# ipv6 route
2001:0DB8::/48 6::6 ethernet 2/1
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
13-4
config t
ip route {ip-prefix | ip-addr ip-mask} {[next-hop | nh-prefix] | [interface next-hop | nh-prefix]} [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
copy running-config startup-config
Chapter 13
Purpose
Enters configuration mode.
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.
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.
Configuring Static Routing
OL-20002-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents