Enable IPv6 for a VPC

更新时间:
复制 MD 格式

By default, when you enable IPv6 for a Virtual Private Cloud (VPC) and its vSwitches, they only support private communication. For 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

  • When you create a VPC and a vSwitch, you can enable IPv6 by using 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 address resources, select Allocated by IPAM. Choose an address pool with a preconfigured IPv6 CIDR block and specify a mask length or a CIDR block to assign an IPv6 CIDR block from the address pool.

  • For an existing VPC, in the IPv6 CIDR column, click Enable IPv6. Then, perform the following steps:

    • Select Allocated by system or Allocated by IPAM.

    • If you select Automatically Enable IPv6 for All vSwitches, you can also select the Automatically Enable IPv6 for All vSwitches check box. If you do not select this check box, or if you select IPv6 CIDR, 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 column for the target VPC or vSwitch, click Disable IPv6. Before you can disable IPv6 for a VPC, you must first disable IPv6 for all of its vSwitches and delete the associated IPv6 Gateway.

API

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

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