D-Link CLI Reference Guide
Page 166
Section 11. IP Routing Commands
ip route
The
ip route
global
configuration command establishes static IP routes. To
remove static IP routes, use the
no
form of this command.
Syntax
ip route prefix
{
mask
|
prefix-length
}
gateway
[
metric
distance
] [
reject
]
no ip route prefix mask
[
gateway
]
Parameters
•
prefix
— The destination IP route prefix.
•
mask
— The IP address network mask.
•
prefix-length
— Specifies the number of bits that comprise the IP address prefix. The prefix length must be
preceded by a forward slash (/) (Range: 0-32).
•
gateway
— IP address or IP alias of the next hop that can be used to reach that network.
•
metric
distance
— An administrative distance (Range: 1 - 255).
•
reject
— Stop routing to the destination network via all gateways.
Default Configuration
The metric default distance is 1.
Command Mode
Global Configuration mode
User Guidelines
There are no user guidelines for this command.
Examples
The following example establishes a static route from 172.16.0.0.
Note
The command is only valid when the device is in Router mode.
Console (config)#
ip route
172.16.0.0 255.255.0.0 131.16.1.1
Summary of Contents for DXS-3250 - xStack Switch - Stackable
Page 12: ...Page 11 ...
Page 46: ...ACL Commands Page 45 ...
Page 68: ...Address Table Commands Page 67 ...
Page 124: ...Ethernet Configuration Commands Page 123 ...
Page 134: ...GVRP Commands Page 133 ...
Page 144: ...IGMP Snooping Commands Page 143 ...
Page 158: ...IP Addressing Commands Page 157 Console config ip helper address 172 16 9 9 49 53 ...
Page 166: ...IP Addressing Commands Page 165 ...
Page 186: ...Line Commands Page 185 ...
Page 194: ...Management ACL Commands Page 193 ...
Page 200: ...PHY Diagnostics Commands Page 199 ...
Page 208: ...Port Monitor Commands Page 207 ...
Page 216: ...Power over Ethernet Commands Page 215 ...
Page 272: ...RMON Commands Page 271 ...
Page 334: ...Spanning Tree Commands Page 333 ...
Page 428: ...VLAN Commands Page 427 ...
Page 466: ...802 1x Commands Page 465 ...