インスタンスタイプ変更時に、Elastic Network Adapter (ENA) は変更されますか

インスタンスタイプ変更時に、Elastic Network Adapter (ENA) は変更されますか

2025.12.05

困っていること

EC2 インスタンスタイプの変更を考えています。
インスタンスタイプを変更すると、Elastic Network Adapter(ENA)は別のデバイスとして扱われてしまうのか教えてください。

どう対応すればいいの?

はい、インスタンスタイプ変更に伴い、OS 上では ENA が 「別のネットワークアダプタ」 として認識される場合があります。

https://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/resize-limitations.html

ドライバーのネットワークアダプターを別のネットワークアダプターに切り替えると、オペレーティングシステムが新しいアダプターを作成したときに、ネットワークアダプターの設定がリセットされます。

確認してみた

02
03
05

今回、Windows Server 2019 を用いて実際に動作を確認したところ、以下の検証結果でした。
※ m5.large → m6i.xlarge のケース

  • 変更前(m5.large)
    Description: Amazon Elastic Network Adapter
PS C:\Windows\system32> ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : EC2AMAZ-RE7PTRU
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : us-east-1.ec2-utilities.amazonaws.com
                                       ec2.internal
                                       ap-northeast-1.ec2-utilities.amazonaws.com
                                       ap-northeast-1.compute.internal

Ethernet adapter Ethernet 3:

   Connection-specific DNS Suffix  . : ap-northeast-1.compute.internal
   Description . . . . . . . . . . . : Amazon Elastic Network Adapter
   Physical Address. . . . . . . . . : 0A-30-B7-51-41-87
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::9f5d:9866:83dd:63eb%8(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.0.28.130(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.240.0
   Lease Obtained. . . . . . . . . . : Saturday, November 29, 2025 7:31:16 AM
   Lease Expires . . . . . . . . . . : Saturday, November 29, 2025 8:31:16 AM
   Default Gateway . . . . . . . . . : 10.0.16.1
   DHCP Server . . . . . . . . . . . : 10.0.16.1
   DHCPv6 IAID . . . . . . . . . . . : 134938617
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-30-BC-57-04-12-92-4C-E0-8C-E1
   DNS Servers . . . . . . . . . . . : 10.0.0.2
   NetBIOS over Tcpip. . . . . . . . : Enabled
  • 変更後(m6i.xlarge)
    Description: Amazon Elastic Network Adapter #2
PS C:\Windows\system32> ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : EC2AMAZ-RE7PTRU
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : us-east-1.ec2-utilities.amazonaws.com
ec2.internal
ap-northeast-1.ec2-utilities.amazonaws.com
ap-northeast-1.compute.internal

Ethernet adapter Ethernet 4:

Connection-specific DNS Suffix . : ap-northeast-1.compute.internal←
Description . . . . . . . . . . . : Amazon Elastic Network Adapter #2 ← ※変更されている
Physical Address. . . . . . . . . : 0A-30-B7-51-41-87
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::ac60:911d:8b82:ae8f%9(Preferred)
IPv4 Address. . . . . . . . . . . : 10.0.28.130(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.240.0
Lease Obtained. . . . . . . . . . : Saturday, November 29, 2025 7:37:51 AM
Lease Expires . . . . . . . . . . : Saturday, November 29, 2025 8:37:50 AM
Default Gateway . . . . . . . . . : 10.0.16.1
DHCP Server . . . . . . . . . . . : 10.0.16.1
DHCPv6 IAID . . . . . . . . . . . : 151662775
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-30-BC-57-04-12-92-4C-E0-8C-E1
DNS Servers . . . . . . . . . . . : 10.0.0.2
NetBIOS over Tcpip. . . . . . . . : Enabled

本検証では、#2 として新規に Amazon Elastic Network Adapte が作られる挙動を確認しました。
そのため、事前にテスト環境などでの検証や、ロールバックできるような準備をお勧めします。

参考資料

インスタンスタイプ変更の互換性 - Amazon Elastic Compute Cloud

この記事をシェアする

FacebookHatena blogX

関連記事