User Manual
UMN:CLI
V8102
105
5.6.4
Static Route and Default Gateway
The static route is a predefined route to a specific network and/or device such as a host.
Unlike a dynamic routing protocol,
static routes
are not automatically updated and must
be manually reconfigured if the network topology changes. Static route includes destina-
tion address, neighbor address, and etc. To configure a static route, use the following
command.
Command
Mode
Description
ip route A.B.C.D SUBNET-MASK
{
GATEWAY
|
null
|
INTERFACE
}
[<1-255>]
Global
Configures a static route.
A.B.C.D: destination IP prefix
A.B.C.D/M: destination IP prefix with mask
SUBNET-MASK
:
IP destination prefix mask (A.B.C.D)
GATEWAY: gateway address
INTERFACE: IP gateway interface name
1-255: distance value for this route
src: binding source IP address
ip route A.B.C.D/M
{
GATEWAY
|
null
|
INTERFACE
} [<1-255> |
src
A.B.C.D
]
To delete a configured static route, use the following command.
Command
Mode
Description
no ip route A.B.C.D SUBNET-
MASK
{
GATEWAY
|
null
} [<1-
255>]
Global
Deletes a configured static route.
no ip route A.B.C.D/M
{
GATE-
WAY
|
null
|
INTERFACE
} [<1-
255>]
To configure a default gateway, use the following command.
Command
Mode
Description
ip route default
{
GATEWAY
|
null
} [<1-255>]
Global
Configures a default gateway.
To delete a configure default gateway, use the following command.
Command
Mode
Description
no ip route default
{
GATEWAY
|
null
} [<1-255>]
Global
Deletes a default gateway.
To display a configured static route, use the following command.
Command
Mode
Description
show ip route
[
database
]
Enable
Shows all IP routing table