The ipv6 address eui-64 command configures a site-local address or global unicast address in EUI-64 format for an interface.
The undo ipv6 address eui-64 command deletes a site-local address or global unicast address in EUI-64 format from an interface.
By default, no site-local address or global unicast address in EUI-64 format is configured for an interface.
ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length } eui-64
undo ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length } eui-64
Parameter | Description | Value |
---|---|---|
ipv6-address | Specifies the IPv6 address of an interface. | The value consists of 128 octets, which are classified into 8 groups. Each group contains 4 hexadecimal numbers in the format 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. |
Usage Scenario
In IPv6, any IPv6 unicast address needs an interface identifier. The interface identifier is globally unique, similar to a 48-bit MAC address.
The interface identifier of an IPv6 host address uses the IEEE EUI-64 format. A 64-bit interface identifier is generated based on an existing MAC address; therefore, such an interface identifier is globally unique. These 64-bit interface identifiers are globally valid for addressing and uniquely identify each network interface.
Prerequisites
The IPv6 function has been enabled on the interface using the ipv6 enable command in the interface view.
Precautions
A maximum of 10 global unicast addresses can be configured for an interface.
The following IPv6 addresses in EUI-64 format cannot be configured for an interface:
Loopback address (::1/128)
Unspecified address (::/128)
Multicast address
IPv4-mapped IPv6 address (0:0:0:0:0:FFFF:IPv4-address)
The ipv6 address command is used to specify a 128–bit IPv6 address. Using the ipv6 address eui-64 command, you can specify the high-order 64 bits of an IPv6 address. The low-order 64 bits of an IPv6 address are automatically generated in the EUI-64 format. Even when the low-order 64 bits are manually specified, the automatically generated ones will override them.
# Configure an IPv6 address in EUI-64 format for VLANIF 2.
<HUAWEI> system-view [HUAWEI] ipv6 [HUAWEI] interface vlanif 2 [HUAWEI-Vlanif2] ipv6 enable [HUAWEI-Vlanif2] ipv6 address fc00::1/64 eui-64
# Configure an IPv6 address in EUI-64 format for GE0/0/1.
<HUAWEI> system-view [HUAWEI] ipv6 [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ipv6 enable [HUAWEI-GigabitEthernet0/0/1] ipv6 address fc00::1/64 eui-64