How do I set up my Application Load Balancer to work with IPv6 addresses?

2 minute read
0

I want to configure my Application Load Balancer so that my clients can use IPv6 addresses to connect to the load balancer.

Resolution

To use IPv6 addresses, the Amazon Virtual Private Cloud (Amazon VPC) where you launch your load balancer must have subnets with associated IPv6 CIDR blocks. For more information, see IPv6 addresses. To associate IPv6 addresses with your Amazon VPC and subnets, see the following documentation: Add or remove a CIDR block from your Amazon VPC and Add or remove an IPv6 CIDR block from your subnet.

Note: If you receive errors when you run AWS Command Line Interface (AWS CLI) commands, then see Troubleshoot AWS CLI errors. Also, make sure that you're using the most recent AWS CLI version.

Use the AWS Management Console to update the IP address type

Complete the following steps:

  1. Open the Amazon Elastic Compute Cloud (Amazon EC2) console.
  2. On the navigation pane, under Load Balancing, choose Load Balancers.
  3. Select your load balancer.
  4. Choose Actions, and then choose Edit IP address type.
  5. For IP address type, choose dualstack to support both IPv4 and IPv6 addresses.
  6. Choose Save.

Use the AWS CLI to update the IP address type to "dualstack"

Run the set-ip-address-type AWS CLI command:

aws elbv2 set-ip-address-type --load-balancer-arn value --ip-address-type value

Note: Replace the placeholders in this command with your values. For --ip-address-type use dualstack.

Update the DNS record that points to your Application Load Balancer

Update the CNAME or Alias (A and AAAA) record of your domain to point to the Application Load Balancer's DNS name (with a dualstack prefix). The following example uses a load balancer DNS name with the dualstack prefix:

dualstack.name-123456789.region.elb.amazonaws.com

Clients that use IPv4 addresses to communicate with the load balancer resolve the A record. Clients that use IPv6 addresses to communicate with the load balancer resolve the AAAA record.

Related information

Getting the DNS name for an Elastic Load Balancing (ELB) load balancer

Routing traffic to an ELB load balancer

Update the IP address types for your Application Load Balancer

AWS OFFICIAL
AWS OFFICIALUpdated 8 months ago