![Cisco MDS 9000 Series Command Reference Manual Download Page 662](http://html.mh-extra.com/html/cisco/mds-9000-series/mds-9000-series_command-reference-manual_21253662.webp)
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
11-56
Cisco MDS 9000 Family Command Reference
OL-18089-01, Cisco MDS NX-OS Release 4.x
Chapter 11 I Commands
ip route
ip route
To
configure a static route,
use the
ip route
command in configuration mode.
ip route
ip-address subnet-mask
[
nexthop_ip-address
] [
interface
{
gigabitethernet
slot
/
port
|
mgmt 0
|
port-channel
channel-id
|
vsan
vsan-id
}
|
distance
distance-number
]
no ip route
ip-address subnet-mask
[
nexthop_ip-address
] [
interface
{
gigabitethernet
slot
/
port
|
mgmt 0
|
port-channel
channel-id
|
vsan
vsan-id
}
|
distance
distance-number
]
Syntax Description
Defaults
None.
Command Modes
Configuration mode.
Command History
Usage Guidelines
None.
Examples
The following examples shows how to configure a static route:
switch#
config terminal
switch(config)#
IP route 10.0.0.0 255.0.0.0 20.20.20.10 distance 10 interface vsan 1
Related Commands
ip-address
Specifies the IP address for the route.
subnet-mask
Specifies the subnet mask for the route.
nexthop_ip-address
Specifies the IP address of the next hop switch.
interface
Configures the interface associated with the route.
gigabitethernet
slot /port
Specifies a Gigabit Ethernet interface at a port and slot.
mgmt 0
Specifies the managment interface (mgmt 0).
port-channel
channel-id
Specifies a PortChannel interface. The range is 1 to 128.
vsan
vsan-id
Specifies a VSAN ID. The range is 1 to 4093.
distance
distance-number
Specifies the distance metric for this route. It can be from 0 to 32766.
Release
Modification
1.0(2)
This command was introduced.
Command
Description
show ip route
Displays the IP address routes configured in the system.