This topic describes how to create a virtual private cloud (VPC) with an IPv6 CIDR block and then create an Elastic Compute Service (ECS) instance with an IPv6 address in the VPC. This way, the ECS instance can access other ECS instances with IPv6 addresses over private connections.
Regions that support IPv6 gateways
The following regions support IPv6 gateways: China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Ulanqab), China (Hangzhou), China (Shanghai), China (Shenzhen), China (Heyuan), China (Guangzhou), China (Chengdu), China (Hong Kong), Philippines (Manila), Singapore (Singapore), US (Virginia), and Germany (Frankfurt).
Scenarios
Due to business development, a company wants to create a VPC with an IPv6 CIDR block in Hangzhou Zone H and assign IPv6 addresses to ECS instances in the VPC. This way, the ECS instances can communicate with each other over IPv6. The following scenario is used as an example. In this example, a VPC and a vSwitch with IPv6 CIDR blocks are created. Two ECS instances named ECS01 and ECS02 are created. The ECS instances are assigned IPv6 IP addresses. This way, the ECS instances can communicate with each other over IPv6.

Prerequisites
Before you deploy cloud resources in a VPC, you must plan your networks. For more information, see Plan networks.
Procedure

Step 1: Create a VPC and a vSwitch
Step 2: Create ECS instances
After you create a VPC and a vSwitch with IPv6 CIDR blocks, create ECS instances with IPv6 IP addresses. In this example, the ECS instances are named ECS01 and ECS02. After you create the ECS instances, configure the IPv6 IP addresses of the ECS instances.
Step 3: Configure the security group rules
Services that are assigned IPv4 addresses and services that are assigned IPv6 addresses cannot communicate with each other. If the current security group rules do not support your IPv6 services, you must configure IPv6 security group rules for ECS01 and ECS02.
Step 4: Test network connectivity
- Log on to ECS01 and ECS02. For more information, see Connect to an ECS instance.
- Run the
ping
command on ECS01 toping
the IPv6 address of ECS02. If ECS01 can receive echo reply packets, it indicates the connection is established. The test result shows that ECS01 can access ECS02 over IPv6. - Run the
ping
command on ECS02 toping
the IPv6 address of ECS01. If ECS02 can receive echo reply packets, it indicates the connection is established. The test result shows that ECS02 can access ECS01 over IPv6.
What to do next: Delete an IPv6 gateway
If you no longer need to use an IPv6 VPC, you can delete the IPv6 gateway of the VPC.
- Log on to the IPv6 Gateway console.
- In the top navigation bar, select the region where the IPv6 gateway is deployed.
- On the IPv6 Gateway page, find the IPv6 gateway that you want to delete and click Delete in the Actions column.
- In the message that appears, click OK.