The ipv6 address-policy command configures the policies for selecting source and destination addresses.
The undo ipv6 address-policy command deletes the policies for selecting source and destination addresses.
By default, only default address selection policy entries are configured. These entries are prefixed with ::1, ::, 2002::, FC00::, and ::ffff:0.0.0.0.
Parameter | Description | Value |
---|---|---|
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
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. |
ipv6-address |
Specifies 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. |
precedence |
Specifies the priority of an IPv6 address when the address is the destination address. |
The value is an integer that ranges from 0 to 4294967295. |
label |
Specifies the priority of an IPv6 address when the address is the source address. |
The value is an integer that ranges from 0 to 4294967295. |
Usage Scenario
Source/destination addresses used for sending out can be manipulated by applying policy entries into the policy table. The ipv6 address-policy command allows the user to configure source/destination address selection policy for an address/prefix. The policy table allows the user to give preference to an address/prefix in comparison to other available addresses/prefixes during the source/destination address selection.
Configuration Impact
Precautions
The default policy entries are those whose prefixes are ::1, ::, 2002::, FC00::, and :ffff:0.0.0.0.
Default policy entries cannot be configured by using a command.