All Products
Search
Document Center

IPv6 Gateway:Enable IPv6 for a VPC

Last Updated:Nov 14, 2025

When you enable IPv6 for a virtual private cloud (VPC) and a vSwitch, only private communication is supported by default. To enable Internet communication, you can enable IPv6 Internet bandwidth.

Enable or disable IPv6

For more information, see Regions that support IPv4/IPv6 dual-stack.

Console

Enable IPv6

  • When you create a VPC and a vSwitch, you can enable IPv6 in one of the following ways:

    • Select System-assigned IPv6 CIDR Block and then select Assign BGP (Multi-ISP). The system automatically creates an IPv6 gateway and assigns an IPv6 CIDR block.

    • To centrally manage address resources, select IPAM-assigned IPv6 CIDR Block. Select an IPAM pool that contains a pre-configured IPv6 CIDR block, and then specify an address mask or a CIDR block to assign an IPv6 CIDR block from the pool.

  • For an existing VPC, click Enable IPv6 in the IPv6 CIDR Block column for the VPC:

    • Select System-assigned IPv6 CIDR Block or IPAM-assigned IPv6 CIDR Block.

    • If you use a system-assigned CIDR block, you can select Automatically Enable IPv6 For All VSwitches In The VPC. If this option is not selected, or if you use an IPAM-assigned CIDR block, you must enable IPv6 for each vSwitch individually. To do this, click Enable IPv6 in the IPv6 CIDR Block column for the target vSwitch.

Disable IPv6

In the IPv6 CIDR Block column for the target VPC or vSwitch, click Disable IPv6. Before you can disable IPv6 for a VPC, you must disable IPv6 for all of its vSwitches and delete the IPv6 gateway in the VPC.

API

Unlike using the console, when you call an API to enable IPv6 for a VPC and a vSwitch, an IPv6 gateway is not automatically created. You must manually create one by calling CreateIpv6Gateway.
  • When you create a VPC and a vSwitch, set the EnableIPv6 parameter in the CreateVpc and CreateVSwitch operations to enable or disable IPv6. When you create a VPC, specify the Ipv6IpamPoolId and Ipv6CidrMask parameters to assign an IPv6 CIDR block to the VPC from a specified IPv6 address pool.

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