Configuring a Default
Route
Deleting All the Static
Routes
Displaying and
Debugging Static
Route
Other parameters
■
The attributes reject and blackhole respectively indicate the unreachable route
and the blackhole route.
Perform the following configurations in system view.
Table 250 Configure a default route
Operation
Configure a default route
Delete a default route
The meanings of parameters in the command are the same as those of the static
route.
You can use the undo ip route-static command to delete one static route. The
Switch 8800 Family series also provide the following command for you to delete
all static routes at one time, including the default routes.
Perform the following configuration in system view.
Table 251 Delete all static routes
Operation
Delete all static routes
Delete all static routes of the VPN
After the above configuration, execute the display command in any view to
display the running of the static route configuration, and to verify the effect of the
configuration.
Table 252 Display and debug the routing table
Operation
Display routing table summary
Display routing table details
Display the detailed information of a specific
route
Display the route information in the specified
address range
Display the route filtered through the
specified basic access control list (ACL)
Display the route information that is filtered
through the specified ip prefix list
Display the routing information discovered by
the specified protocol
Display the tree routing table
Displaying and Debugging Static Route
Command
ip route-static 0.0.0.0 { 0.0.0.0 | 0 } { interface-type
interface-number | gateway-address } [ preference value ] [
reject | blackhole ]
undo ip route-static 0.0.0.0 { 0.0.0.0 | 0 } [ interface-type
interface-number | gateway-address ] [ preference value ]
Command
delete static-routes all
delete vpn-instance vpn-instance-name
static-routes all
Command
display ip routing-table
display ip routing-table verbose
display ip routing-table ip-address [ mask ] [
longer-match ] [ verbose ]
display ip routing-table ip-address1 mask1
ip-address2 mask2 [ verbose ]
display ip routing-table acl { acl-number |
acl-name } [ verbose ]
display ip routing-table ip-prefix
ip-prefix-number [ verbose ]
display ip routing-table protocol protocol [
inactive | verbose ]
display ip routing-table radix
287