This topic describes how to use IPv6 addresses of Linux Elastic Compute Service (ECS) instances.
The Linux instances are deployed in virtual private clouds (VPCs). Before you assign IPv6 addresses, familiarize yourself with the basics of IPv6 addresses. For more information, see IPv6 addresses.
To use IPv6 addresses, perform the following operations:
- Create an IPv6 VPC. For more information, see Step 1: Create an IPv6 VPC. Before you assign an IPv6 address to an ECS instance, you must create an IPv6 VPC.
- Assign an IPv6 address to an ECS instance. For more information, see Step 2: Assign an IPv6 address. By default, when you create an ECS instance, a private IPv4 address is assigned instead of an IPv6 address. You must manually assign an IPv6 address to the ECS instance.
- Enable IPv6 public bandwidth. For more information, see Step 3: Enable IPv6 public bandwidth. When an IPv6 address is assigned to an ECS instance, only communication within the VPC in which the instance is deployed is allowed. If you want to allow traffic to or from the IPv6 address over the Internet, you must enable IPv6 public bandwidth.
- Configure the IPv6 address. For more information, see Step 4: Configure an IPv6 address. IPv6 addresses can be manually configured, or automatically configured by the system. We recommend that you use an appropriate tool to automatically configure IPv6 addresses.
- Add security group rules. For more information, see Step 5: Add IPv6 security group rules. You can use security group rules to allow or deny access to or from the Internet or internal network for ECS instances within a security group. For information about common scenarios, see Scenarios for security groups.
- Test network connectivity. For more information, see Step 6: Test network connectivity. You can log on to the ECS instance to test the network connectivity to ensure that the configured IPv6 address can access the Internet.
- (Optional) Delete the IPv6 address. For more information, see Step 7: (Optional) Delete an IPv6 address. You can delete IPv6 addresses that are no longer needed. After you delete the IPv6 address of an instance, the instance can still use its IPv4 address.