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
질문됨 한 달 전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
전문가
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전
profile picture
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠