Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510
Chapter 1 Static Route Configuration
Commands
Huawei Technologies Proprietary
1-6
Parameter
ip-address
:
Destination IP address, in dotted decimal notation.
mask:
IP address mask, length in dotted decimal notation or expressed as an integer. It
ranges from 0 to 32 when expressed as an integer.
longer-match
: Specifies all the routes that lead to the destination address and match
the specified mask. If you do not specify the
mask
argument, those that match the
natural mask are specified.
verbose
:
With the
verbose
argument specified, this command displays the verbose
information of both the active and inactive routes. Without the argument specified, this
command only displays the summary of active routes.
Description
Use the
display ip routing-table ip-address
command to display the routing
information of the specified destination address.
With different arguments provided, the command output is different. The following is the
command output with different arguments provided:
z
display ip routing-table
ip-address
If the destination address
ip-address
corresponds to a route in the natural mask range,
this command displays the route that is the longest match of the destination address
ip-address
and is active.
z
display ip routing-table
ip-address
mask
This command only displays the routes exactly matching the specified destination
address and mask.
z
display ip routing-table
ip-address
longer-match
This command displays all destination address routes matching the specified
destination address in the natural mask range.
z
display ip routing-table ip-address mask
longer-match
This command displays all destination address routes matching the specified
destination address in the specified mask range.
Example
# There is a corresponding route in the natural mask range. Display the summary.
<Quidway> display ip routing-table 169.0.0.0
Destination/Mask
Protocol
Pre Cost
Nexthop
Interface
169.0.0.0/16
Static
60
0
2.1.1.1
LoopBack1
For detailed description of the output information, see Table 1-1.
# There is no corresponding route (only the longest matching route is displayed) in the
natural mask range. Display the summary.