H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 1 Static Route Configuration Commands
1-16
reject: Indicates an unreachable route. If a static route to a destination has the "reject"
attribute, all the IP packets sent to this destination will be discarded.
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 sent to this
destination are dropped.
Description
Use the ip route-static command to configure a static route.
Use the undo ip route-static command to delete a configured static route.
By default, the system can obtain the subnet route directly connected to the router. If
you do not specify the preference for a static route to be configured, the preference
defaults to 60. If you do not specify reject or blackhole for the route, the route will be a
reachable route by default.
Note:
z If the destination IP address and the mask of a route are both 0.0.0.0, the route is
the default route. Any packet for which the router fails to find a matching entry in the
routing table will be forwarded through the default route.
z Do not configure the next hop address of a static route as the IP address of an
interface on the local switch.
z You can configure different preference values to implement flexible route
management policy.
Related commands: display ip routing-table, ip route-static default-preference, ip
route-static default-preference.
Example
# Configure the next hop of the default route as 129.102.0.2.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] 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
undo ip route-static default-preference