938
C
71: IP R
HAPTER
OUTING
display ip routing-table ip-prefix
Syntax
View
Parameters
Description
Examples
T
C
ABLE
OMMANDS
1.1.1.0/24
1.1.1.1/32
2.2.2.0/24
3.3.3.0/24
3.3.3.1/32
4.4.4.0/24
4.4.4.1/32
display ip routing-table ip-prefix ip-prefix-name [ verbose ]
Any view
ip-prefix-name: IP Prefix list name, a string of 1 to 19 characters.
verbose: Displays detailed routing table information, including that for inactive
routes. With this argument absent, the command displays only brief information
about active routes.
Use the
display ip routing-table ip-prefix
about routes permitted by a specified prefix list.
This command is intended for the follow-up display of routing policies. If the
specified prefix list is not configured, detailed information about all routes (with
the verbose keyword) or brief information about all active routes (without the
verbose keyword) is displayed.
# Configure a prefix list named test, permitting routes with a prefix of 2.2.2.0 and
a mask length between 24 and 32.
<Sysname> system-view
[Sysname] ip ip-prefix test permit 2.2.2.0 24 less-equal 32
# Display brief information about active routes permitted by the prefix list test.
[Sysname] display ip routing-table ip-prefix test
Routes Matched by Prefix list : test
Summary Count : 2
Destination/Mask
2.2.2.0/24
2.2.2.1/32
For detailed description of the above output, see Table 204.
# Display detailed information about both active and inactive routes permitted by
IP prefix list test.
[Sysname] display ip routing-table ip-prefix test verbose
Routes Matched by Prefix list
Summary Count : 2
Destination: 2.2.2.0/24
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Proto
Pre
Cost
Direct
0
0
Direct
0
0
test :
1.1.1.1
127.0.0.1
2.2.2.1
3.3.3.1
127.0.0.1
4.4.4.1
127.0.0.1
command to display information
NextHop
2.2.2.1
127.0.0.1
Vlan1
InLoop0
Vlan2
Eth1/0
InLoop0
Eth1/1
InLoop0
Interface
Vlan2
InLoop0