1-6
display ip routing-table ip-address1 ip-address2
Syntax
display ip routing-table ip-address1 mask1 ip-address2 mask2 [ verbose ]
View
Any view
Parameter
ip-address1, ip-address2: Destination IP addresses in dotted decimal notation. ip-address1 and mask1,
together with ip-address2 and mask2, determine an IP address range. The starting address of the IP
address range is determined by the ip-address1 and mask1 arguments; and the end address of the IP
address range is determined by the ip-address2 and mask2 arguments.
mask1, mask2: IP address masks. These two arguments can be in dotted decimal notation or two
integers ranging from 0 to 32.
verbose: Displays the detailed information about the active and inactive routes. If you do not specify
this keyword, only the summary information about the active routes is displayed.
Description
Use the display ip routing-table ip-address1 ip-address2 command to display the information about
the routes with their destinations within the specified destination IP address range.
Example
# Display the information about the routes with their destinations within the range of 1.1.1.0 to 2.2.2.0.
<Sysname> display ip routing-table 1.1.1.0 24 2.2.2.0 24
Routing tables:
Summary count: 1
Destination/Mask Protocol Pre Cost Nexthop Interface
1.1.1.0/24 DIRECT 0 0 1.1.1.1 Vlan-interface1
Refer to Table 1-1 for the description on the output fields.
display ip routing-table protocol
Syntax
display ip routing-table protocol protocol [ inactive | verbose ]
View
Any view
Parameter
protocol: This argument can be one of the following:
z direct: Displays the information about the direct routes.
z static: Displays the information about the static routes.
inactive: Displays the information about the inactive routes. If you do not specify this keyword, the
information about both active and inactive routes is displayed.