Command Manual – Routing Protocol
Quidway S8500 Series Routing Switches
Chapter 1 Static Route Configuration Commands
Huawei Technologies Proprietary
1-18
Parameter
vpn-instance
: Specifies VPN instance parameter.
vpn-instance-name-list
: VPN instance name list.
vpn-instance-name-list=
vpn-instance-name & <1-6>
. &<1-6> in the command represents that the preceding
parameter can be input repeatedly up to 6 times.
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.
vpn-instance-name:
Name of a VPN instance.
interface-type
interface-number:
Specifies the outgoing interface for the next hop. The
null interface is a kind of virtual interface, where data packets are discarded directly to
decrease the system load.
gateway-address
: Specifies the next hop IP address of the
route, in dotted decimal format.
preference-value
:
Preference level of the route in the range from 1 to 255.
reject
: Indicates an unreachable route. When a static route to a destination has the
"
reject
" attribute, all the IP packets to this destination will be discarded, and the source
host will be informed that the destination is unreachable.
blackhole
: Indicates a 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 any IP packets addressed to this destination
are dropped without notifying the source host.
Description
Use the
ip route-static
command to configure a static route.
Use the
undo ip route-static
command to delete the configured static route.
By default, the system can obtain the sub-net route directly connected with the router. If
it is not specified as
reject
or
blackhole
, the route will be reachable by default.
Precautions for static route configuration:
z
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.
Related commands:
display ip routing-table
,
delete static-routes all
.