Static Route Configuration Command 157
Static Route
Configuration
Command
This section describes the command you can use to configure a static route.
delete static-routes all Syntax
delete static-routes all
View
System View
Parameter
None
Description
Use the delete static-routes all command to delete all the static routes.
The system requests your confirmation before it deletes all the configured static
routes.
Related commands: ip route-static and display ip routing-table.
Example
Delete all the static routes in the router.
<SW5500>system-view
System View: return to User View with Ctrl+Z.
[SW5500]delete static-routes all
Are you sure to delete all the static routes?[Y/N]
ip route-static Syntax
ip route-static
ip_address
{ mask | mask-length } {
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
] [
reject | blackhole ]
View
System view
Parameters
ip-address
Enter the destination IP address in dotted decimal notation.
mask
Enter the IP subnet mask.
Hidden The number of hidden routes, that is routes not available at present but still
required. They can be hidden for future use.
Table 21 Output Description of the display ip routing-table verbose Command