How can I add IPv6 connectivity to a running EC2 instance ?

0

I set up an EC2 instance some years ago, running CentOS 7. I've lost my notes, or rather, they're on a computer that's now behind NAT that I can't get to from here. I'm a lot more familiar with CentOS on real hardware than I am with AWS. I don't remember it being this complicated - I think I just configured a package fairly quickly, started it, logged in with SSH and never touched the consoles again.

I want to enable IPv6 connectivity. As I understand it, my instance has a virtual ethernet card instead of a real one, so I need to use the console to provision IPv6 upstream of that, then in CentOS configure the system to use it for IPv6.

I have been through many console pages and documents with only limited success.

  • As an aside, I made a Lightsail instance with a recent image (Amazon Linux 2023 or Amazon Linux 2), and IPv6 just worked. Which solved the problem I was actually aiming for - being able to connect to a computer on Starlink, which seems to use CGNAT for IPv4, but a native IPv6connection. Lightsail has virtually no dashboard and is considerably simpler than EC2 to launch, if less capable.

adaviel
已提问 1 个月前187 查看次数
1 回答
2

Hello.

As you know, to set up IPv6 with the AWS management console, you need to associate IPv6 with the VPC where EC2 is running and attach it to EC2.
You can configure IPv6 for VPC and EC2 by following the steps in the document below.
https://docs.aws.amazon.com/vpc/latest/userguide/vpc-migrate-ipv6.html

After configuration, you may need to enable IPv6 on the network interface on the EC2 OS.
https://www.gyrocode.com/articles/how-to-configure-ipv6-on-amazon-ec2-instance-running-centos-7/

profile picture
专家
已回答 1 个月前
profile picture
专家
已审核 1 个月前
profile picture
专家
已审核 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则