IP address types for your Network Load Balancer – Elastic Load Balancing

IP address types for your Network Load Balancer

You can configure your Network Load Balancer so that clients can communicate with the load balancer
using IPv4 addresses only, or using both IPv4 and IPv6 addresses (dualstack). The load
balancer communicates with targets based on the IP address type of the target group. For
more information, see IP address type.

Dualstack requirements
  • You can set the IP address type when you create the load balancer and update
    it at any time.

  • The virtual private cloud (VPC) and subnets that you specify for the load
    balancer must have associated IPv6 CIDR blocks. For more information, see IPv6
    addresses in the Amazon EC2 User Guide.

  • The load balancer must have only TCP and TLS listeners.

  • The route tables for the load balancer subnets must route IPv6 traffic.

  • The network ACLs for the load balancer subnets must allow IPv6 traffic.

To set the IP address type at creation

Configure settings as described in Create a load
balancer.

To update the IP address type using the console
  1. Open the Amazon EC2 console at
    https://console.aws.amazon.com/ec2/.

  2. In the navigation pane, choose Load Balancers.

  3. Select the check box for the load balancer.

  4. Choose Actions, Edit IP address
    type
    .

  5. For IP address type, choose IPv4 to
    support IPv4 addresses only or Dualstack to support both
    IPv4 and IPv6 addresses.

  6. Choose Save changes.

To update the IP address type using the AWS CLI

Use the set-ip-address-type command.