Command Manual – Routing Protocol 
Quidway S3900 Series Ethernet Switches-Release 1510 
Chapter 1  Static Route Configuration 
Commands
 
Huawei Technologies Proprietary 
1-16 
preference-value: Preference level of the route, in the range from 1 to 255. The default 
preference is 60. 
reject: Indicates an unreachable route. If a static route to a destination has the "reject" 
attribute, all the IP packets destined for 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 all the IP packet addresses destined for this 
destination are dropped without the source host being notified. 
description text: Provides a description for the current route. 
detect-group group number: Specifies a detect group. 
Description 
Use the ip route-static command to configure a static route.  
Use the undo ip route-static command to delete a manually configured static route.  
By default, the system can obtain the subnet route directly connected to the router. 
When you configure a static route, if no preference is specified for the route, the 
preference defaults to 60, and if the route is not specified as reject or blackhole, the 
route will be reachable by default. 
When configuring a static route, note the following points: 
z  If the destination IP address and the mask are both 0.0.0.0, what you are 
configuring is a default route. All the packets that fail to find a routing entry will be 
forwarded through this default route.  
z  You cannot configure an interface address of the local switch as the next hop 
address of a static route. 
z  You can configure a different preference to implement flexible route management 
policy. 
Related command: display ip routing-table. 
Example 
# Configure the next hop of the default route as 129.102.0.2. 
<Quidway> system-view 
System View: return to User View with Ctrl+Z.  
[Quidway] ip route-static 0.0.0.0 0.0.0.0 129.102.0.2