Switch 7700 Command reference Guide, v2.0

Table Of Contents
Static Route Configuration Command 115
ip route-static Syntax
ip route-static ip_address ip_mask { 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 ]
View
System view
Parameter
ip-address: Enter the destination IP address.
ip_mask: Enter either the IP subnet mask (x.x.x.x), or the subnet mask length (in
the range 0 to 32).
interface_name . Specify the transmission interface name of the route.
gateway_address . Specify the next hop IP address of the route.
preference_value . Enter the preference level of the route in the range 1 to 255.
The default is 60.
reject: Enter to indicate an unreachable route.
blackhole: Enter to indicate a blackhole route.
Description
Using the ip route-static command, you can configure a static route.
Using the undo ip route-static command, you can delete the configured static
route.
By default, the system can access the subnet route directly connected to the
router. If you do not use the parameters
preference, reject or blackhole, the
route will be reachable by default with a preference level of 60.
Use the following precautions when configuring a static route:
When the destination IP address and subnet mask are both set to 0.0.0.0, this
is the configured default route. A packet is forwarded along the default route if
a routing table is not detected.
As an alternative way to configure preference level, a flexible routing protocol
can be adopted.
Related command: display ip routing-table.
Example
To configure the next hop of the default route as 129.102.0.2, enter the
following:
[SW7700]ip route-static 0.0.0.0 0.0.0.0 129.102.0.2