Help Center/ Huawei Cloud EulerOS/ FAQs/ Why Can't HCE Obtain an IPv6 Address After IPv6 Is Enabled for an ECS?
Updated on 2025-09-04 GMT+08:00

Why Can't HCE Obtain an IPv6 Address After IPv6 Is Enabled for an ECS?

Background

After IPv6 is enabled for ECS NICs on the ECS console, HCE cannot obtain an IPv6 address because DHCP is not correctly configured for the OS.

Symptoms

IPv6 has been enabled on the ECS console, and an IPv6 address is displayed on the ECS details page.

Figure 1 ECS IPv6 address

However, the OS cannot obtain an IPv6 address.

Figure 2 OS settings

Solution

  1. Configure DHCP to automatically obtain IPv6 addresses. Add the following content to the NIC configuration file /etc/sysconfig/network-scripts/ifcfg-ethx:
    IPV6INIT="yes"
    DHCPV6C="yes"
    Figure 3 Adding parameters
  2. Run the following command to restart NetworkManager to obtain an IPv6 address:
    systemctl restart NetworkManager
    Figure 4 Obtaining an IPv6 address