Command Manual - Routing Protocol
Quidway S6500 Series Ethernet Switches
0
错误!表格结果无效。
Huawei Technologies Proprietary
1-16
For related commands, see
ip route-static
and
display ip routing-table
.
Example
# Delete all the static routes in the router.
[Quidway] delete static-routes all
Are you sure to delete all the unicast static routes?[Y/N]
1.2.2 ip route-static
Syntax
ip route-static
ip-address
{
mask
|
mask-length
} {
interface-name
|
gateway-address
}
[
preference
preference-value
] [
reject
|
blackhole
]
undo ip route-static ip-address
{
mask
|
mask-length
} [
interface-name |
gateway-address
] [
preference
preference-value
] [
reject
blackhole
]
View
system view
Parameter
ip-address
: Destination IP address in dotted decimal notation.
mask
:
Mask.
mask-length:
Mask length. Since "1" s in the 32-bit mask are required to be consecutive,
the mask in dotted decimal format can be replaced by
mask-length
, which is the
number of the consecutive "1" s in the mask.
interface-name
: Specify the interface of the route
.
The packets that are sent to a NULL
interface, a kind of virtual interface, will be discarded immediately. Thus can decrease
the system load.
gateway-address
: Specify the next hop IP address of the route.
preference-value
:
Preference level of the route in the range from 1 to 255.
reject
: Indicate an unreachable route.
blackhole
: Indicate a blackhole route.
Description
Using
ip route-static
command, you can configure a static route. Using
undo ip
route-static
command, you can delete the configured static route.
By default, the system can obtain the sub-net route directly connected with the router.
When configuring a static route, the default preference is 60. You can change the
default preference value of the static routes to be configured by using the command
ip