Change Instance type impact on ENI

0

Hi,

Is there any change on the ENI (private ip address or mac address) when I change an EC2 EBS instance type, familly, size ?

Regards

FabienG
질문됨 일 년 전361회 조회
2개 답변
1

No, changing an EC2 instance's instance type, family, or size has no effect on the Elastic Network Interface (ENI) associated with it. The ENI's private IP address and MAC address will remain unchanged after the instance type is changed.

When the instance type of an existing instance is changed, the instance is stopped, the new instance type is applied, and the instance is restarted. The ENI retains its configuration, including private IP addresses, MAC addresses, and any associated security groups, during this process.

It should be noted, however, that the number of ENIs and private IP addresses that can be assigned to an instance varies depending on the instance type. To avoid potential issues, ensure that the new instance type you select supports the same or more ENIs and private IP addresses than the current instance type.

You can find the instance type limits in the Amazon EC2 documentation https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI

profile picture
전문가
답변함 일 년 전
0

Hi,

when you change the instance family or size the ENI will not be changed. The IP private IP adress will stay the same on the ENI. The MAC address also stays the same in my scenarios, but the behavior is not officially documented so it could change under certain circumstances (e.g. when moving from Nitro to Xen based instances).

There is potential impact when you have multiple ENIs attached to an instance and you try to size it smaller to a degree where the number of ENIs are not supported anymore. In this case you have to remove ENIs first before proceeding.

전문가
답변함 일 년 전

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

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

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

관련 콘텐츠