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-15
Parameters
None
Description
Use the delete static-routes all command to delete all static routes.
The system will request your confirmation before it deletes all the configured static
routes.
Related commands: ip route-static, display ip routing-table.
Examples
# Delete all the static routes in the router.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] delete static-routes all
Are you sure to delete all the unicast static routes?[Y/N]y
1.2.2 ip route-static
Syntax
ip route-static ip-address { mask | mask-length } { interface-type interface-number |
next-hop } [ preference preference-value ] [ reject | blackhole ]
undo ip route-static ip-address { mask | mask-length } [ interface-type
interface-number | next-hop ] [ preference preference-value ] [ reject | blackhole ]
View
System view
Parameters
ip-address: Destination IP address, in dotted decimal notation.
mask: Mask.
mask-length: Mask length. Because 1s in a 32-bit mask must be consecutive, a mask in
dotted decimal notation can be replaced by mask-length, which is the number of the
consecutive 1s in the mask.
interface-type interface-number: Next-hop outgoing interface. At present, the next-hop
outgoing interface can be NULL 0 only. The packets sent to a null interface, which is a
virtual interface, will be discarded immediately. This can reduce system load.
next-hop: Next hop IP address of the route, in dotted decimal notation.
preference-value: Preference level of the route, in the range 1 to 255. The default
preference is 60.