How to change subnet in a network interface

0

Hello, I have an EC2 instance with two netowrk interface, for two different subnet, now I need to change the subnet in default interface, but cannot find the way to change it. Could anyone help for this?

Simon
asked 7 months ago372 views
1 Answer
1

Hello.

The default ENI cannot be detached from EC2, so you should not be able to change the subnet.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html

If you really want to change it, you will need to create an EC2 AMI and select a subnet when creating a new instance from the AMI. https://repost.aws/knowledge-center/move-ec2-instance

profile picture
EXPERT
answered 7 months ago
profile picture
EXPERT
reviewed 7 months ago
  • Thanks for your reply, can I change the default ENI to another interface?

  • You cannot change the default ENI of an already running EC2 to another one.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions