Technical data
Static Routes 93
Parameters for default route are the same as for static route.
Deleting All Static Routes
You can use the undo ip route-static command to delete one static route. The
Switch 7700 also provides the delete static-route 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 all
views, to display the static route configuration, and to verify the effect of the
configuration.
Example: Typical Static
Route Configuration
As shown in the Figure 3, the masks of all the IP addresses in the figure are
255.255.255.0. All the hosts or switches must be interconnected in pairs, by
configuring static routes.
Delete a default route undo ip route-static 0.0.0.0 { 0.0.0.0 | 0 } {
interface-name | gateway-address } ]
Table 4 Deleting All Static Routes
Operation Command
Delete all static routes delete static-routes all
Table 5 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
View the route filtered through specified basic
access control list (ACL)
display ip routing-table acl { acl-number |
acl-name } [ verbose ]
View the route information that through
specified ip prefix list
display ip routing-table ip-prefix
ip-prefix-number [ 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 integrated routing information display ip routing-table statistics
Table 3 Configuring a Default Route
Operation Command