Static Routes 117
Configuring a Default Route
Perform the following configurations in System View.
The parameters for the default route are the same as those for the static route.
Deleting All The Static Routes
You can use the undo ip route-static command to delete a static route. The
Switch 5500G-EI also provides the
delete static-routes all command for you
to delete all static routes at one time, including the default routes.
Perform the following configuration in System View.
Displaying and Debugging Static Routes
After you configure static and default routes, execute the display command in
any view to display the static route configuration, and to verify the effect of the
configuration.
Tab le 109 Configuring a default route
Operation Command
Configure a
default route
ip route-static 0.0.0.0 { 0.0.0.0 | 0 } {
interface_type interface_number
|
gateway_address
} [
preference
value
] [ reject | blackhole ]
Delete a default
route
undo ip route-static 0.0.0.0 { 0.0.0.0 | 0 } [
interface_type interface_number
|
gateway_address
] [
preference
value
] [ reject | blackhole ]
Tab le 110 Deleting all static routes
Operation Command
Delete all static routes delete static-routes all
Tab le 111 Displaying and debugging the routing table
Operation Command
View routing table summary display ip routing-table
View routing table details display ip routing-table verbose
View the detailed information of a
specific route
display ip routing-table
ip_address
[
mask
] [ longer-match ] [ verbose ]
View the route information in the
specified address range
display ip routing-table
ip_address1
mask1
ip_address2
mask2
[ verbose ]
View the route filtered through
specified basic access control list
(ACL)
display ip routing-table acl
acl_number
[ verbose ]
View the route information that
through specified ip prefix list
display ip routing-table ip-prefix
ip_prefix_name
[ verbose ]
View the routing information found
by the specified protocol
display ip routing-table protocol
protocol
[ inactive | verbose ]
View the tree routing table display ip routing-table radix
View the statistics of the routing table display ip routing-table statistics