Installation manual
Command Manual - Getting Started
Quidway S3000-EI Series Ethernet Switches Chapter 2 System IP Configuration Commands
Huawei Technologies Proprietary
2-20
gateway-address: Specifies the next hop IP address (in dotted decimal notation) of the
route.
preference-value: Specifies the preference of the route, ranging from 1 to 255.
Description
Using ip route-static command, you can configure a static route. Using undo ip
route-static command, you can cancel 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 if it is not specified.
Precautions:When the destination IP address and the mask are both 0.0.0.0, it is the
configured default route. If it fails to detect the routing table, a packet will be forwarded
along the default route.
For the related command, see display ip routing-table.
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
2.1.18 ip route-static default-preference
Syntax
ip route-static default-preference default-preference-value
undo ip route-static default-preference
View
System view
Parameter
default-preference-value: The default preference value of static routes, ranging 1 to
255. Its default value is 60.
Description
Using ip route-static default-preference command, you can configure the default
preference value of static routes. Using undo ip route-static default-preference
command, you can remove the default preference value of static routes configure.
A static route’s preference will be the default-preference-value set by this command if
its preference is not specified when configured by ip route-static command.
For the related commands, see display ip routing-table, ip route-static.