display ipv6 routing-table

Function

The display ipv6 routing-table command displays information about an IPv6 routing table.

Format

display ipv6 routing-table { ipv6-address [ prefix-length ] | host-name host-name } [ longer-match ] [ verbose ]

Parameters

Parameter Description Value
ipv6-address

Specifies the destination IPv6 address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

prefix-length

Specifies the length of an IPv6 prefix.

The value is an integer ranging from 0 to 128.

host-name host-name

Specifies the hostname.

The value is a string of 1 to 255 case-sensitive characters, spaces not supported.

longer-match

Displays only the routes that match the specified network or prefix.

-

verbose

Displays detailed information about active and inactive routes in the routing table.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
route-base read

Usage Guidelines

Usage Scenario

The command output includes the destination address, prefix length, protocol type, priority, cost, next hop, outbound interface, tunnel ID, label value carried by the route, time when the route was generated, and route status.

This command without verbose specified displays preferred routes only.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display the summary of the specified route. There is one route that matches the prefix range.
<HUAWEI> display ipv6 routing-table 111::1 64
Routing Table :_Public_
Summary Count : 1

 Destination  : 111::                           PrefixLength : 64
 NextHop      : 111::2                          Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/1/0            Flags        : D
Table 1 Description of the display ipv6 routing-table command output
Item Description
Routing Table

Routing Table.

Summary Count

Total number of routes.

Destination

Address of the destination network or host.

PrefixLength

Length of the prefix.

NextHop

IPv6 address of the next hop.

Preference

Priority of the route.

Cost

Route cost.

Protocol

Name of the routing protocol.

RelayNextHop

Recursive next hop.

TunnelID

Tunnel ID.

The value 0x0 indicates that no tunnel is used or no tunnel has been set up.

Interface

Outbound interface through which the next hop is reachable.

Flags

Route flags.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >