Assign IPv6 Address to AWS EC-2 Instance

By default instance does not have an IPv6 Address. If you want to associate IPv6 address to your EC-2 instance, you need to associate IPv6 CIDR block to VPC and Subnet of the instance first, then add IPv6 address to the instance.

Here is the step by step procedure to associate an IPv6 address to already running instance:

Go to https://console.aws.amazon.com and click on EC2. Click on your EC-2 then get VPC and Subnet from description details.

vpc-2

  1. Associate IPv6 CIDR block to the VPC of instanceOpen the Amazon VPC console, Select your VPC then choose action, Edit CIDR
    vpcChoose Add IPv6 CIDR. When the IPv6 CIDR block is added, choose Close
    vpc-edit
    Now VPC has IPv6 CIDR.
  2. Associate IPv6 CIDR block to the subnet of instance
    Click on Subnets under Your VPC section on VPC console.
    Select your subnet, choose Subnet Actions, Edit IPv6 CIDRs.subnet-1.pngChoose Add IPv6 CIDR. Specify the hexadecimal pair for the subnet (ie, 00) and confirm record by choosing the tick icon.

    subnet-2

    Then click Close.

  3.  Switch to EC2 console, click on your instance then Choose Action. Networking->Manage IP Addressesinstance-1And Assign an IPv6 Address.
    Click on Assign new IP under IPv6 section and leave empty IP field to create a auto-assign IP.

    That’s all…

ismail yenigul
ismailyenigul@gmail.com

,

Assign IPv6 Address to AWS EC-2 Instance

6 thoughts on “Assign IPv6 Address to AWS EC-2 Instance

  1. R. Adel says:

    Hello,
    Thanks for the easy guide
    I did all of this but it is still inaccessible
    I can’t ping any IPv6 and it act like it isn’t connected to it at all

    Like

  2. Mark says:

    Thanks Ismail, your step-by-step instructions were great! Minor change would be that in step 3 you leave the text box empty (shows as auto-assign). Thanks for taking the time to document, the official docs are too technical and not easy to follow.

    Like

Leave a comment