Currently, IPv6 is supported in the following regions: Beijing, Shanghai, Guangzhou, Shanghai Finance, Shenzhen Finance, Beijing Finance, Chengdu, Chongqing, Nanjing, Hong Kong (China), Singapore, and Virginia.
Global Unicast Addresses (GUA) are used. Each VPC is assigned a /56 IPv6 CIDR block, each subnet is assigned a /64 IPv6 CIDR block, and each ENI is assigned a single IPv6 address.
Both primary ENIs and secondary ENIs support IPv6 address. For more information, see ENI documentation.
2. Select an IPv6-supported region, and in the right-hand action column of the VPC row, choose More > Edit IPv6 CIDR.
3. In the Edit IPv6 CIDR dialog box, click Get, confirm the relevant information, and then click OK.
The system will assign a /56 IPv6 address block to the VPC, and you can view the detailed information of the IPv6 address block in the list.
2. Select Subnet on the left sidebar to enter the subnet list page.
3. In Step 1, under the operation column of the subnet belonging to the VPC, select More > Obtain IPv6 CIDR and confirm the action. The system will allocate a /64 IPv6 CIDR from the VPC's /56 IPv6 CIDR.
Step 3. Purchase a CVM instance and configure IPv6
After assigning an IPv6 CIDR block to the VPC and subnet, you need to create a CVM instance with an IPv6 address in that subnet, or obtain an IPv6 address for a running CVM instance in the subnet.
Notes
Since IPv6 addresses are not currently automatically assigned to ENIs, after obtaining an IPv6 address in the console, you need to log in to the CVM instance and configure the IPv6 address on its ENI.
2. Complete configurations for the CVM instance on the custom configuration page. For more information, see Building Up an IPv4 VPC.
Notes
When selecting a model, please pay attention to the following parameters:
Regions: Beijing, Shanghai, Guangzhou, Shanghai Finance, Shenzhen Finance, Chengdu, Nanjing, Hong Kong (China), Singapore, Virginia.
Network: Select the VPC from Step 1 and the subnet from Step 2.
IPv6 address: Select Allocate IPv6 addresses for free.
3. Confirm your configuration and complete the purchase.
4. After successfully purchasing a Cloud Virtual Machine, you can view the IPv6 address information in the Cloud Virtual Machine Instance List.
Notes
If the Cloud Virtual Machine was not assigned an IPv6 address during purchase, you can allocate an IPv6 address to the primary ENI by selecting More > IP/ENI > Manage IPv6 Address in the corresponding Cloud Virtual Machine instance's operation column.
Step 4. Enable public network access for the IPv6 address of the CVM
By default, the IPv6 address of a CVM instance only has private network access capabilities. If you want to access to or be accessed from the public network through the IPv6 address, you need to enable public network access for the IPv6 address using an elastic public IPv6.
2. On the left sidebar in the console, select IP and ENI > Elastic Public IPv6.
3. Select the region where the CVM instance is located, and click Apply.
4. On the page that appears, select the IPv6 address for the CVM instance, set the target bandwidth limit, and click Submit.
Notes
When a CVM instance is assigned an IPv6 address, public network access is disabled by default. You can manage IPv6 public network access. For details, see Managing IPv6 Public Network Access.
When the ISP type is BGP, the elastic public IPv6 address is the IPv6 address obtained by the CVM instance. You need to ensure that the CVM instance has already obtained an IPv6 address.
You can enable public network access for up to 100 IPv6 addresses simultaneously. Operate in batches if there are more than 100 IPv6 addresses.
Step 5. Configure security group rules for IPv6
Notes
Inbound and outbound security group rules support configuring the source to be a single IPv6 address or IPv6 CIDR block, where ::/0 represents all IPv6 source addresses.
2. On the left sidebar, select Security > Security Group, and click the ID of the security group bound to the CVM instance to enter the details page.
3. Add inbound and outbound rules on the details page:
Select Inbound rules > Add rule, add an IPv6 inbound security group rule, and click OK.
Select Outbound rules > Add rule, add an IPv6 outbound security group rule, and click OK.
Step 6. Test IPv6 connectivity
The following sections describe how to test IPv6 connectivity for Linux CVMs and Windows CVMs.
Notes
To test public network connectivity, ensure that you have configured IPv6 policies in "Security Group" and configured IPv6 public bandwidth in Elastic Public IPv6.
If the subnet where the CVM instance resides is associated with a network ACL, you also need to configure an IPv6 policy in the corresponding network ACL. To enable additional IPv6 public network access capabilities, please submit a ticket.
If IPv6 public network access is not enabled, and you need to test the connectivity of IPv6 CVMs (Ping, SSH, RDP), you can use another CVM with an IPv6 address in the same VPC for connectivity test.
If the Cloud Virtual Machine image has IPv6 enabled, the system will automatically assign a link-local address starting with "FE80" to each ENI. However, this link-local address cannot be used as an IPv6 address for internal and external communication.
We recommend that you select a nearby test point for Ping tests.
Linux CVM
Windows CVM instances
L
inux Cloud Virtual Machi
nes can test IPv6 connectivity through operations such as Ping or SSH.
Method 1: Conduct a test using Ping, as follows:
Execute ping6 IPv6 address in the Cloud Virtual Machine for testing, for instance, ping6 240c::6666, ping6 www.qq.com, ping6 IPv6 address under the same private network. The successful result is shown in the following figure:
Method 2: SSH into the Cloud Virtual Machine via IPv6 address as follows:
Execute the command below to view the IPv6 address, and use software such as PuTTY or Xshell to test whether you can SSH into the Cloud Virtual Machine via the IPv6 address.
ifconfig
The following figure shows the successful result.
W
indows Cloud Virtual Machines can te
st IPv6 connectivity using Ping or Remote Desktop.
Method 1: Test using Ping, as follows:
In the operating system interface, select the bottom-left corner
, click
, open the Windows PowerShell window, and execute ping -6 IPv6 address for testing, for example, ping -6 240c::6666 or ping -6 IPv6 address within the same Virtual Private Cloud. Success is shown in the image below.