All Products
Search
Document Center

IPv6 Gateway:Enable IPv6 for a VPC

Last Updated:Dec 29, 2025

After you enable IPv6 for a virtual private cloud (VPC) and its vSwitches, it supports only private communication by default. To enable Internet access, you can Enable IPv6 Internet bandwidth.

Enable or disable IPv6

IPv6 is available only in regions that support the IPv4/IPv6 dual stack.

Console

Enable IPv6

  • To enable IPv6 when creating a VPC and a vSwitch, use one of the following methods:

    • Select Allocated by system and choose BGP (Multi-ISP). The system automatically creates an IPv6 Gateway and assigns an IPv6 CIDR block.

    • To centrally manage your IP addresses, select Allocated by IPAM. Choose an address pool with a preconfigured IPv6 CIDR block, specify a mask length or CIDR block, and assign an IPv6 CIDR block.

  • For an existing VPC, in the IPv6 CIDR column, click Enable IPv6.

    • Select Allocated by system or Allocated by IPAM.

    • If you choose allocation by system, select the Automatically Enable IPv6 for All vSwitches checkbox. If you do not check this box, or if you choose IPAM allocation, you must enable IPv6 for each vSwitch manually by clicking Enable IPv6 in its IPv6 CIDR column.

Disable IPv6

In the IPv6 CIDR column of the target VPC or vSwitch, click Disable IPv6. To disable IPv6 for a VPC, you must first disable IPv6 for all its vSwitches and delete the associated IPv6 Gateway.

API

Different from the console, enabling IPv6 for a VPC and its vSwitches by calling the API does not automatically create an IPv6 Gateway. You must call the CreateIpv6Gateway operation to create one.
  • When you create a VPC or vSwitch, set the EnableIPv6 parameter in the CreateVpc and CreateVSwitch operations. You can also specify the Ipv6IpamPoolId and Ipv6CidrMask parameters to assign an IPv6 CIDR block to the VPC from a specified IPv6 address pool.

  • For an existing VPC or vSwitch, set the EnableIPv6 parameter in the ModifyVpcAttribute and ModifyVSwitchAttribute operations. To assign an IPv6 CIDR block to a VPC from a specified IPv6 address pool, call the AssociateVpcCidrBlock operation.