Specifications
Send document comments to nexus3k-docfeedback@cisco.com.
10-4
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, Release 5.0(3)U2(2)
OL-25782-02
Chapter 10 Configuring Static Routing
Configuring Static Routing
Configuring Static Routing
This section includes the following topics:
• Configuring a Static Route, page 10-4
• Configuring Virtualization, page 10-5
Note If you are familiar with the Cisco IOS CLI, be aware that the Cisco NX-OS commands for this feature
might differ from the Cisco IOS commands that you would use.
Configuring a Static Route
You can configure a static route on the router.
SUMMARY STEPS
1. configure terminal
2. ip route {ip-prefix | ip-addr ip-mask} {[next-hop | nh-prefix] | [interface next-hop | nh-prefix]} [tag
tag-value [pref]]
3. (Optional) show ip static-route
4. (Optional) copy running-config startup-config
DETAILED STEPS
Table 10-1 Default Static Routing Parameters
Parameters Default
administrative distance 1
RIP feature disabled
Command Purpose
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Enters configuration mode.
Step 2
ip route {ip-prefix | ip-addr ip-mask}
{[next-hop | nh-prefix] | [interface
next-hop | nh-prefix]}
[tag tag-value
[pref]
Example:
switch(config)# 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.