Command Manual - Routing Protocol
Quidway S6500 Series Ethernet Switches
0
错误!表格结果无效。
Huawei Technologies Proprietary
1-17
route-static default-preference
. If it is not specified as
reject
or
blackhole
, the route
will be reachable by default.
A static route is a special route. You can set up an interconnecting network with the
static route configuration. The problem for such configuration is when a fault occurs to
the network, the static route cannot change automatically to steer away from the node
causing the fault, if without the help of an administrator.
In a relatively simple network, you only need to configure the static routes to make the
router work normally. The proper configuration and usage of the static route can
improve the network performance and ensure the bandwidth of the important
applications.
All the following routes are static routes:
z
Reachable route: A normal route is of this type. That is, the IP packet is sent to the
next hop via the route marked by the destination. It is a common type of static
routes.
z
Unreachable route: When a static route to a destination has the "
reject
" attribute,
all the IP packets to this destination will be discarded.
z
Blackhole route: If a static route to a destination has the "
blackhole
" attribute, the
outgoing interface of this route is the Null 0 interface regardless of the next hop
address, and all the IP packets addressed to this destination are dropped.
The attributes "
reject
" and "
blackhole
" are usually used to control the range of
reachable destinations of this router, and help troubleshooting the network.
Precautions when configuring static route:
z
You cannot specify an interface address of the local switch as the next hop
address of an static route.
z
In addition, when the destination IP address and the mask are both 0.0.0.0, it is the
configured default route.
If it is failed to detect the routing table, a packet will be
forwarded along the default route.
z
For different configuration of preference level, flexible routing management policy
can be adopted.
For the related commands, see
display ip routing-table
,
delete static-routes all
and
ip route-static default-preference
.
Example
# Configure the next hop of the default route as 129.102.0.2.
[Quidway] ip route-static 0.0.0.0 0.0.0.0 129.102.0.2
1.2.3 ip route-static default-preference
Syntax
ip route-static default-preference default-preference-value