Verifying Static Routing Configuration; Static Routing Example Configuration - Cisco Nexus 7000 Series Configuration Manual

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

Advertisement

Verifying Static Routing Configuration

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 2
ip route { ip-prefix | ip-addr ip-mask }
{ next-hop | nh-prefix | interface } [tag
t ag-value [ pref ]
Example:
switch(config-vrf)# ip route 192.0.2.0/8
ethernet 1/2
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
Step 3
show {ip | ipv6} static-route vrf
vrf-name
Example:
switch(config-vrf)# show ip static-route
Step 4
copy running-config startup-config
Example:
switch(config-vrf)# copy running-config
startup-config
This example shows how to configure a static route:
switch# config t
switch(config)# vrf context StaticVrf
switch(config-vrf)# ip route 192.0.2.0/8 192.0.2.10
switch(config-vrf)# copy running-config startup-config
Verifying Static Routing Configuration
To view configuration information, use the following commands:
Command
show ip static-route
show ipv6 static-route vrf vrf-name
show ipv6 static-route

Static Routing Example Configuration

This example shows how to configure static routing:
config t
ip route 192.0.2.0/8 192.0.2.10
copy running-config startup-config
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
13-6
Chapter 13
Purpose
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.
(Optional) Displays information on static routes.
(Optional) Saves this configuration change.
Purpose
Displays the configured static routes.
Displays static route information per-VRF.
Displays the configured static routes.
Configuring Static Routing
OL-20002-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents