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.
- Associate IPv6 CIDR block to the VPC of instanceOpen the Amazon VPC console, Select your VPC then choose action, Edit CIDR
Choose Add IPv6 CIDR. When the IPv6 CIDR block is added, choose Close
Now VPC has IPv6 CIDR.
- 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.Choose Add IPv6 CIDR. Specify the hexadecimal pair for the subnet (ie,
00) and confirm record by choosing the tick icon.
Then click Close.
- Switch to EC2 console, click on your instance then Choose Action. Networking->Manage IP AddressesAnd Assign an IPv6 Address.
Click on Assign new IP under IPv6 section and leave empty IP field to create a auto-assign IP.