display ipv6 interface prefix

Use display ipv6 interface prefix to display IPv6 prefix information for an interface.

Syntax

display ipv6 interface interface-type interface-number prefix

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface-type interface-number: Specifies an interface by its type and number.

Examples

# Display IPv6 prefix information for VLAN-interface 10.

<Sysname> display ipv6 interface vlan-interface10 prefix
Prefix: 1001::/65                                          Origin: ADDRESS
Age:    -                                                     Flag:   AL
Lifetime(Valid/Preferred): 2592000/604800

Prefix: 2001::/64                                          Origin: STATIC
Age:    -                                                     Flag:   L
Lifetime(Valid/Preferred): 3000/2000

Prefix: 3001::/64                                          Origin: RA
Age:    600                                                   Flag:   A
Lifetime(Valid/Preferred): -

Table 46: Command output

Filed

Description

Prefix

IPv6 address prefix.

Origin

How the prefix is generated:

  • STATIC—Manually configured by using the ipv6 nd ra prefix command.

  • RA—Advertised in RA messages after stateless autoconfiguration is enabled.

  • ADDRESS—Generated by a manually configured address.

Age

Aging time in seconds. If the prefix does not age out, this field displays a hyphen (-).

Flag

Flags carried in RA messages. If no flags are available, this field displays a hyphen (-).

  • L—The address with the prefix is directly reachable on the link.

  • A—The prefix is used for stateless autoconfiguration.

  • N—The prefix is not advertised in RA messages.

Lifetime

Lifetime in seconds advertised in RA messages. If the prefix does not need to be advertised, this field displays a hyphen (-).

  • Valid—Valid lifetime of the prefix.

  • Preferred—Preferred lifetime of the prefix.

Related commands

ipv6 nd ra prefix