2-76 Command Line Interface Commands Reference
ip route
{
ip-addr
/
mask-bits
|
ip-addr mask
}
gw-ip-addr
[{
high
|
low
}]
[
advertise
[{
no
|
distance
}] [{
enable
|
disable
}]
no ip route
{
ip-addr
/
mask-bits
|
ip-addr mask
}
gw-ip-addr
show ip route
[{
static
|
ip-addr
|
ip-addr
/
mask-bits
|
ip-addr mask
}]
The
ip route
and
no ip route
commands allow you to add, change, or delete static routes. The
show ip route
static
form of the
show ip route
command displays the configured static routes (including invalid or disabled
ones), while the other forms of the
show ip route
command display the router's IP routing table (including any
installed (i.e., valid and enabled) static routes).
The destination network may be specified as an IP address and mask in either prefix or dotted-quad notation.
gw-ip-addr
is the IP address of the next-hop router, and should be on one of the router's directly connected IP
subnets.
The keywords
high
and
low
control the priority of the static route relative to an identical route learned via RIP. A
static route with
high
priority (the default) takes precendence over an identical route learned via RIP, while an
identical route learned via RIP takes precedence over a static route with
low
priority.
The keyword
advertise
controls whether or not the router will adver tise (redistribute) the static route via RIP.
The keyword
advertise
may be followed by a RIP metric (
distance
) between 1 (the default) and 15 inclusive.
If the
show ip route
command includes an optional IP address or IP address and mask, the route, if any, in the
IP routing table that per tains to the specified destination network, subnetwork, or host address is displayed.
Examples:
ip route 192.168.2.0/24 192.168.1.123 low advertise
no ip route 192.168.2.0 255.255.255.0 192.168.1.123
show ip route
show ip route static
Note:
Beginning with Firmware Version 8.2, the
ip route
commands will no longer show or set static routes
that are default gateways. They will only operate on direct routes (IP address and mask are non-zero). The
default gateway routes are now meant to be handled with two commands: 1)
ip gateway
, which configures the
Primar y Default Gateway, and 2)
backup gateway
, which configures the Backup Default gateway.
GMT +1:00 Central Europe Time
GMT +11:00 Russia Zone 10
GMT +2:00 Eastern Europe Time
GMT +12:00 Russia Zone 11
GMT +3:00 Moscow time (MSK)
Содержание CLI 874
Страница 1: ...Command Line Interface Commands Reference Firmware Version 8 7 4 Motorola Netopia ENT Series Routers...
Страница 6: ...6 Command Line Interface Commands Reference...
Страница 12: ...1 6 Command Line Interface Commands Reference...
Страница 143: ...Motorola Netopia Router CLI Commands 2 131 Current Restrictions None...
Страница 144: ...2 132 Command Line Interface Commands Reference...