The display ipv6 address-policy command displays information about address selection policy entries.
| Parameter | Description | Value | 
|---|---|---|
| vpn-instance vpn-instance-name | 
 Specifies the name of a VPN instance. After this parameter is specified, the address selection policy entries of the specified VPN instance can be displayed.  | 
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.  | 
| all | 
 Displays all the address selection policy entries.  | 
-  | 
| ipv6-address | 
 Specifies the prefix of an IPv6 address.  | 
The prefix is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.  | 
| prefix-length | 
 Specifies the prefix length of an IPv6 address.  | 
The value is an integer that ranges from 0 to 128.  | 
Usage Scenario
When this command is run:
Precautions
If no address selection policy entry is configured, the default address selection policy entries, that is the entries with prefixes being ::1, ::, 2002::, FC00::, and ::ffff:0.0.0.0 are displayed when this command is run.
 The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display ipv6 address-policy vpn-instance R1_VPN6 all
 Policy Table :
             Total: 5
-------------------------------------------------------------------------------
 Prefix     : ::                                      PrefixLength  : 0
 Precedence : 40                                      Label         : 1
 Default    : Yes
 Prefix     : ::1                                     PrefixLength  : 128
 Precedence : 50                                      Label         : 0
 Default    : Yes
 Prefix     : ::FFFF:0.0.0.0                          PrefixLength  : 96
 Precedence : 10                                      Label         : 4
 Default    : Yes
 Prefix     : 2002::                                  PrefixLength  : 16
 Precedence : 30                                      Label         : 2
 Default    : Yes
 Prefix     : FC00::                                  PrefixLength  : 7
 Precedence : 20                                      Label         : 3
 Default    : Yes
-------------------------------------------------------------------------------
| Item | Description | 
|---|---|
| Policy Table | Information of address selection policy entries.  | 
| Prefix | Prefix of an IPv6 address.  | 
| PrefixLength | Prefix length of an IPv6 address.  | 
| Precedence | Indicates the precedence of a policy entry when a destination address is selected.  | 
| Label | Indicates the label used to match available policy entries when a source address is selected.  | 
| Default | Whether this is a default policy entry. 
  | 
| Total | Number of address selection policy entries.  |