Actions > Edit CIDRs > in block "VPC IPv6 CIDRs" Associate auto IPv6 CIDR Block > Update
2. Go to VPC console > Subnets > Select subnets one by one and do following for all or yours selected one:
Actions > Edit IPV6 CIDRs > Associate auto IPv6 CIDR Block > Update
Actions > Modify Auto Assign IP Settings > Check both ipv4 and ipv6
3. Go to VPC Console > Route Tables :
Select > "Routes" Tab > Edit > Set Destination as `::/0` and select existing internet gateway.
4. Go to EC2 Console > Select Instance:
Actions > Networking > Manage IP Addreses > Associate IPV6 auto > update
5. Go to EC2 Console > Select Security Group:
Edit > Inbound/outbound > For port whom you want IPV6, set `::/0` > Save
6. IN Your domain DNS Management Add entry for AAAA against your IPV6 address. You can see IPV6 by selecting ec2 instance and in details section.
7. Logged into your EC2 instance and check inet6 address by typing following :
ifconfig | grep inet6
If you can see your ipv6 address here then no need to follow below steps :
Reason AWS not automatically set IPv6 address to your instance is you have probably created instance using different AMI, it may not be configured for DHCPv6.
For Ubuntu , Follow below steps in sequence
Note down network interface name. lets say its eth0:
sudo vim /etc/network/interfaces.d/60-default-with-ipv6.cfgput below content
Execute below lines :
eth0; sudo ifup
sudo dhclient -6
Now again check inet6 with ipconfig .
If you are using nginx then set following in conf file :
listen [::]:80 default_server;
If using apache set following in conf file :
And restart :
service nginx/apache2 restart
How its working for you guys. leave comment if its not.