display ipv6 prefix
Use display ipv6 prefix to display information about dynamic and static IPv6 prefixes.
Syntax
display ipv6 prefix [ prefix-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
prefix-number: Specifies the ID of an IPv6 prefix, in the range of 1 to 1024. If this argument is not specified, the command displays information about all IPv6 prefixes.
Usage guidelines
A static IPv6 prefix is configured by using the ipv6 prefix command.
A dynamic IPv6 prefix is obtained from the DHCPv6 server, and its prefix ID is configured by using the ipv6 dhcp client pd command.
Examples
# Display information about all IPv6 prefixes.
<Sysname> display ipv6 prefix Number Prefix Type 1 1::/16 Static 2 11:77::/32 Dynamic
# Display information about the IPv6 prefix with prefix ID 1.
<Sysname> display ipv6 prefix 1 Number: 1 Type : Dynamic Prefix: ABCD:77D8::/32 Preferred lifetime 90 sec, valid lifetime 120 sec
Table 47: Command output
Field | Description |
---|---|
Number | Prefix ID. |
Type | Prefix type:
|
Prefix | Prefix and its length. If no prefix is obtained, this field displays Not-available. |
Preferred lifetime 90 sec | Preferred lifetime in seconds. For a static IPv6 prefix, this field is not displayed. |
valid lifetime 120 sec | Valid lifetime in seconds. For a static IPv6 prefix, this field is not displayed. |
Related commands
ipv6 dhcp client pd (Layer 3—IP Services Command Reference)
ipv6 prefix