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
Содержание DXS-3227 - xStack Switch - Stackable
Страница 12: ...Page 11 ...
Страница 46: ...ACL Commands Page 45 ...
Страница 68: ...Address Table Commands Page 67 ...
Страница 124: ...Ethernet Configuration Commands Page 123 ...
Страница 134: ...GVRP Commands Page 133 ...
Страница 144: ...IGMP Snooping Commands Page 143 ...
Страница 158: ...IP Addressing Commands Page 157 Console config ip helper address 172 16 9 9 49 53 ...
Страница 166: ...IP Addressing Commands Page 165 ...
Страница 170: ...IP Routing Commands Page 169 Ethernet 1 Specifies the interface through which the specified network can be reached ...
Страница 186: ...Line Commands Page 185 ...
Страница 194: ...Management ACL Commands Page 193 ...
Страница 200: ...PHY Diagnostics Commands Page 199 ...
Страница 208: ...Port Monitor Commands Page 207 ...
Страница 216: ...Power over Ethernet Commands Page 215 ...
Страница 272: ...RMON Commands Page 271 ...
Страница 334: ...Spanning Tree Commands Page 333 ...
Страница 428: ...VLAN Commands Page 427 ...
Страница 465: ...D Link CLI Reference Guide Page 464 Trap frequency 100 Status Single host locked Violations since last trap 9 ...
Страница 466: ...802 1x Commands Page 465 ...