Configure an IPv6 Address
Background Information
After assigning the primary IPv6 address, regardless of private or public IPv6, to your elastic compute instance, for some instances with certain images, you need to access the instance and configure the IPv6 to make it effective.
IPv4 & IPv6 Dual Stack
You need manually configure the IPv6 address after assigning the primary IPv6 address for the following images:
Windows
FreeBSD 14
Gentoo openrc
IPv6 Single Stack
IPv6 addresses are not supported for the following images:
Windows
FreeBSD 14
Gentoo openrc
If you allocate additional IPv6 addresses to your instances, you also need to configure them on instances. The rules are concluded as follows:
Ubuntu 20.04
Ubuntu 22.04
Ubuntu 24.04
Debian 12
Debian 11
Debian 10
Debian 9
openSUSE lead 15.6
Rocky base 9.3
CentOS 9
Fedora base 39 1.5
Alpine 3.19.1
ArchLinux
AlmaLinux 9.3
Primary IPv6 Effective by default. No manual configuration is required.
Additional IPv6 Manual configuration is required.
Primary IPv6 Effective by default. No manual configuration is required.
Additional IPv6 Manual configuration is required.
Windows
FreeBSD 14
Gentoo openrc
Primary IPv6 Manual configuration is required.
Additional IPv6 Manual configuration is required.
IPv6 addresses are not supported.
Prerequisites
Before configuring the IPv6 address, ensure the IPv6 service is enabled. Currently, you need to enable IPv6 service on the instance with FreeBSD 14 image.
See Enable IPv6 Service for detailed steps.
Procedures
Enable IPv6 Service
You can enable IPv6 service on the instance with FreeBSD 14 image as follows:
Configure your network interface to use IPv6. Run the following command to modify the
/etc/rc.conf
configuration file.sudo vi /etc/rc.conf
Press
i
to enter edit mode. Add or update the following lines to enable IPv6 on your network interface.ipv6_activate_all_interfaces="YES"
Press
Esc
to exit edit mode. Type:wq
and pressEnter
to save and exit.Run the following command to restart your network and apply the configuration.
/etc/netstart restart
Configure IPv6 Addresses
Configure the IPv6 addresses on your instances with the following images.
Last updated