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

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

Background

After IPv6 is enabled for the ECS NIC 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.

However, the OS cannot obtain an IPv6 address.

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"

  2. Run the following command to restart NetworkManager to obtain an IPv6 address:

    systemctl restart NetworkManager