Which EC2 types support IPv6?

1

Hey, I got this error when attempting to migrate to IPv6 to not be charged for a public IPv4 I don't really need.

"Failed to attach network interface eni-<snipped> to instance i-<snipped>. IPv6 addresses are not supported on t2.micro"

which contradicts the documentation: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html that says t2.micro does support it.

Steps I took:

I modified my VPC by adding a new IPv6 CIDR block.

I created a new IPv6 only Subnet for the same Availability Zone as my EC2 instance.

I created a new Network Interface using the new Subnet.

I attempted to Attach the new NI to my existing EC2 t2.micro instance.

I got the error.

Since it isn't working, I wanted to ask which instance types DO support it before doing all the work to resetup my server on a new instance type. I can upgrade to a new t2.small instance or to a t3.micro instance, but I don't know how to tell which types will support it since the documentation is wrong.

Enduinn
gefragt vor 6 Monaten1242 Aufrufe
3 Antworten
1

Hello

Instance types: IPv6 is supported on all instance types, except C1, M1, M2, M3, and T1.

you can also see Elastic network interfaces, T2 family ec2 support IPv6

Enter image description here

profile pictureAWS
beantwortet vor 6 Monaten
0

Hello.

You can also add IPv6 using t2.micro by following the steps below.
https://docs.aws.amazon.com/vpc/latest/userguide/vpc-migrate-ipv6.html
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html#working-with-ipv6-addresses
a

Therefore, I think there is a problem with the following procedure, which involves moving to a different subnet.

I created a new Network Interface using the new Subnet.

I attempted to Attach the new NI to my existing EC2 t2.micro instance.

profile picture
EXPERTE
beantwortet vor 6 Monaten
  • Ah, so that means I need both IPv4 and IPv6 network interfaces instead IPv6 only NI? Maybe that's what the OP wants? To reduce the cost of using public IPv4 address on his/her instances?

0

Hello, If you want to use an IPv6-only EC2 instance, you need to use instance types based on nitro. For specific details, please refer to this documentation.

[+] Introducing IPv6-only subnets and EC2 instances https://aws.amazon.com/cn/blogs/networking-and-content-delivery/introducing-ipv6-only-subnets-and-ec2-instances/

[+] Instances built on the AWS Nitro System - https://docs.aws.amazon.com/zh_cn/ec2/latest/instancetypes/ec2-nitro-instances.html

AWS
Harry H
beantwortet vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen