ipv6 address
Function
The ipv6 address command configures a global unicast address for an interface.
The ipv6 address dhcpv6-prefix command configures an IPv6 address bound to the DHCPv6 PD prefix for an interface.
The undo ipv6 address command deletes a global unicast address from an interface.
The undo ipv6 address dhcpv6-prefix command deletes the IPv6 address bound to the DHCPv6 PD prefix for an interface.
By default, no global unicast address is configured for an interface.
By default, no IPv6 address bound to the DHCPv6 PD prefix is configured for an interface.
Format
ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }
ipv6 address dhcpv6-prefix { ipv6-address prefix-length | ipv6-address/prefix-length }
undo ipv6 address [ ipv6-address prefix-length | ipv6-address/prefix-length ]
undo ipv6 address dhcpv6-prefix
Parameters
Parameter | Description | Value |
---|---|---|
ipv6-address | Specifies the IPv6 address of an interface. | It is a 32-bit 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 1 to 128. |
dhcpv6-prefix | Specifies the prefix assigned to a DHCPv6 PD client. | The value is a string of 1to 63 characters. |
Usage Guidelines
Usage Scenario
A global unicast address is similar to an IPv4 public network address. Global unicast addresses are used on the links that can be summarized, and are provided for the Internet Service Providers (ISPs). These addresses allow route prefix summarization, limiting global routing entries. A global unicast address consists of a 48-bit route prefix managed by carriers, a 16-bit subnet ID managed by local nodes, and a 64-bit interface ID.
The device is required to function as a DHCPv6 PD client and obtain an IPv6 address prefix from the DHCPv6 PD server. You can run the ipv6 address dhcpv6-prefix command to configure an IPv6 address is bound to the DHCPv6 PD prefix. After you run this command, the device uses the prefix assigned to the DHCPv6 PD client and the IPv6 address to form an RA prefix for the interface only when the device functions as a DHCPv6 PD client and obtains a prefix. The RA prefix must be a 64-digit number. If not, the host cannot use this RA prefix for automatic assignment of IPv6 addresses.
Prerequisites
The IPv6 function has been enabled on the interface using the ipv6 enable command in the interface view.
Precautions
IPv6 addresses on overlapped network segments cannot be configured for interfaces on the same device.
A maximum of 10 global unicast addresses can be configured for an interface.
An IPv6 address with a 128-bit prefix can be configured only on a loopback interface.
An IPv6 address bound to the DHCPv6 PD prefix cannot be configured on a loopback interface.
After the ipv6 address command is run to configure a global unicast address for an interface, the system generates a link-local address for the interface, if no link-local address is configured for the interface.
If no parameter (IPv6 address or prefix length) is specified in the undo ipv6 address command, all IPv6 addresses configured for the interface are deleted after the command is run.