display ipv6 prefix
Use display ipv6 prefix to display information about IPv6 prefixes, including dynamic and static prefixes.
Syntax
display ipv6 prefix [ prefix-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
prefix-number: Specifies the ID of an IPv6 prefix, in the range of 1 to 1024. If you do not specify an IPv6 prefix ID, this 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. For detailed information, see Layer 3—IP Services Configuration Guide.
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 51: 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
ipv6 prefix