Command Manual – IP Routing Overview
H3C S7500E Series Ethernet Switches
Chapter 1 Routing Overview Commands
1-20
Description
Use the
display ipv6 routing-table ipv6-address
command to display routing
information about the specified destination IPv6 address.
Executing the command with different parameters yields different output:
z
display ipv6 routing-table
ipv6-address
prefix-length
The system ANDs the input destination IPv6 address with the input prefix length, and
ANDs the destination IPv6 address in each route entry with the input prefix length.
If the two operations yield the same result for an entry and the entry is active with a
prefix length less than or equal to the input prefix length, the entry is displayed.
Only route entries that exactly match the input destination address and prefix length are
displayed.
z
display ipv6 routing-table ipv6-address prefix-length
longer-match
The system ANDs the input destination IPv6 address with the input prefix length; and
ANDs the destination IPv6 address in each route entry with the input prefix length.
If the two operations yield the same result for multiple entries with a prefix length less
than or equal to the input prefix length, the one that is active with the longest prefix
length is displayed.
Examples
# Display brief information about the route matching the specified destination IPv6
address.
<Sysname> display ipv6 routing-table 10::1 127
Routing Table:
Summary Count: 3
Destination: 10::/64 Protocol : Static
NextHop : :: Preference: 60
Interface : NULL0 Cost : 0
Destination: 10::/68 Protocol : Static
NextHop : :: Preference: 60
Interface : NULL0 Cost : 0
Destination: 10::/120 Protocol : Static
NextHop : :: Preference: 60
Interface : NULL0 Cost : 0
# Display brief information about the matched route with the longest prefix length.
<Sysname> display ipv6 routing-table 10:: 127 longer-match
Routing Tables: