

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 在 EC2 Windows 執行個體上安裝 ENA 驅動程式
<a name="ena-adapter-driver-install-upgrade-win"></a>

如果您的執行個體不是以 Amazon 提供的最新 Windows Amazon Machine Image (AMI) 為基礎，則請使用下列程序在執行個體上安裝目前的 ENA 驅動程式。您應該在方便重新啟動執行個體時，執行這項更新。如果安裝指令碼未自動重新啟動執行個體，則建議您重新啟動執行個體作為最後一步。

如果在執行個體執行時使用執行個體儲存體磁碟區來儲存資料，則當停止執行個體時會清除該資料。停止執行個體之前，請確認您已將所需的任何資料從執行個體儲存體磁碟區複製到永久性儲存，例如 Amazon EBS 或 Amazon S3。

## 先決條件
<a name="ena-driver-install-prereq-win"></a>

若要安裝或升級 ENA 驅動程式，Windows 執行個體必須符合以下先決條件：
+ 已安裝 PowerShell 3.0 版或更新版本
+ 本節所示命令必須在 64 位元版本的 PowerShell 中執行。請勿使用 `x86` 版本的 PowerShell。此為 32 位元版本的 Shell，不支援這些命令。

## 步驟 1：備份資料
<a name="ena-driver-install-step1-backup-win"></a>

建議您建立備份 AMI，以防您無法透過 **Device Manager** 復原變更。若要使用 建立備份 AMI AWS 管理主控台，請遵循下列步驟：

1. 前往 [https://console.aws.amazon.com/ec2/](https://console.aws.amazon.com/ec2/) 開啟 Amazon EC2 主控台。

1. 在導覽窗格中，選擇**執行個體**。

1. 選取需要升級驅動程式的執行個體，並從**執行個體狀態**選單中選擇**停止執行個體**。

1. 在停止執行個體後，再次選取執行個體。若要建立備份，請從**動作**選單中選擇**映像和範本**，然後選擇**建立映像**。

1. 若要重新啟動執行個體，請從**執行個體狀態**選單中選擇**啟動執行個體**。

## 步驟 2：安裝或升級 ENA 驅動程式
<a name="ena-driver-install-step2-install-win"></a>

您可以使用 AWS Systems Manager Distributor 或 PowerShell cmdlets 安裝或升級 ENA 驅動程式。如需進一步指示，請選取與您要使用之方法相符的索引標籤。

------
#### [ Systems Manager Distributor ]

您可以使用 Systems Manager Distributor 功能，將套件部署至 Systems Manager 管理的節點。您可以使用 Systems Manager Distributor 一次安裝 ENA 驅動程式套件，或使用排程的更新進行安裝。如需有關如何使用 Systems Manager Distributor 安裝 ENA 驅動程式套件 (`AwsEnaNetworkDriver`) 的詳細資訊，請參閱「AWS Systems Manager 使用者指南」**中的[安裝或更新套件](https://docs.aws.amazon.com/systems-manager/latest/userguide/distributor-working-with-packages-deploy.html)。

------
#### [ PowerShell ]

本節說明如何使用 PowerShell cmdlet 在執行個體上下載及安裝 ENA 驅動程式套件。

**選項 1：下載並解壓縮最新版本**

1. 連線到您的執行個體，並以本機管理員登入。

1. 使用 **invoke-webrequest** cmdlet 下載最新的驅動程式套件：

   ```
   PS C:\> invoke-webrequest https://ec2-windows-drivers-downloads.s3.amazonaws.com/ENA/Latest/AwsEnaNetworkDriver.zip -outfile $env:USERPROFILE\AwsEnaNetworkDriver.zip
   ```
**注意**  
如果您在下載檔案時收到錯誤，且您使用 Windows Server 2016 或更早版本，則 PowerShell 終端機可能需要啟用 TLS 1.2。您可以使用下列命令為目前的 PowerShell 工作階段啟用 TLS 1.2，然後再試一次：  

   ```
   [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
   ```
或者，可以從執行個體的瀏覽器視窗下載最新的驅動程式套件。

1. 使用 **expand-archive** cmdlet 來解壓縮下載至執行個體的 zip 封存檔：

   ```
   PS C:\> expand-archive $env:userprofile\AwsEnaNetworkDriver.zip -DestinationPath $env:userprofile\AwsEnaNetworkDriver
   ```

**選項 2：下載並解壓縮特定版本**

1. 連線到您的執行個體，並以本機管理員登入。

1. 從 [ENA Windows 驅動程式版本歷史記錄](ena-driver-releases-windows.md#ena-win-driver-release-history) 表格中的版本連結下載您想要的特定版本的 ENA 驅動程式套件。

1. 將 zip 封存檔解壓縮至執行個體。

**使用 PowerShell 安裝 ENA 驅動程式**  
無論您是下載最新的驅動程式還是特定版本，安裝步驟都相同。若要安裝 ENA 驅動程式，請遵循下列步驟。

1. 若要安裝驅動程式，請從執行個體上的 `AwsEnaNetworkDriver` 目錄中執行 `install.ps1` PowerShell 指令碼。如果發生錯誤，則請確認您使用的是 PowerShell 3.0 或更新版本。

1. 如果安裝程式未自動重新啟動執行個體，則請執行 **Restart-Computer** PowerShell cmdlet。

   ```
   PS C:\> Restart-Computer
   ```

------

## 步驟 3 (選用)：安裝後驗證 ENA 驅動程式版本
<a name="ena-driver-install-step3-verify-win"></a>

若要確保 ENA 驅動程式套件已成功安裝在執行個體上，可以依照下列步驟驗證新版本：

1. 連線到您的執行個體，並以本機管理員登入。

1. 若要開啟 Windows Device Manager (Windows 裝置管理員)，請在 **Run** (執行) 對話方塊中輸入 `devmgmt.msc`。

1. 選擇**確定**。這將開啟 Device Manager (裝置管理員) 視窗。

1. 選取 **Network adapters** (網路轉接器) 左側的箭頭以展開清單。

1. 選取名稱，或開啟 **Amazon Elastic Network Adapter** (Amazon 彈性網路介面卡) 的內容功能表，然後選擇 **Properties** (屬性)。這會開啟 **Amazon 彈性網路介面卡屬性**對話方塊。
**注意**  
ENA 介面卡都使用相同的驅動程式。如果您有多個 ENA 介面卡，則可以選取其中一個來更新所有 ENA 介面卡的驅動程式。

1. 若要驗證目前安裝的版本，請開啟**驅動程式**索引標籤並檢查**驅動程式版本**。如果目前版本與目標版本不相符，則請參閱 [為彈性網路轉接器 Windows 驅動程式進行疑難排解](troubleshoot-ena-driver.md)。

## 復原 ENA 驅動程式安裝
<a name="ena-driver-install-roll-back-win"></a>

如果安裝出現任何問題，則您可能需要復原驅動程序。請依照下列步驟復原至執行個體上安裝的 ENA 驅動程式的先前版本。

1. 連線到您的執行個體，並以本機管理員登入。

1. 若要開啟 Windows Device Manager (Windows 裝置管理員)，請在 **Run** (執行) 對話方塊中輸入 `devmgmt.msc`。

1. 選擇**確定**。這將開啟 Device Manager (裝置管理員) 視窗。

1. 選取 **Network adapters** (網路轉接器) 左側的箭頭以展開清單。

1. 選取名稱，或開啟 **Amazon Elastic Network Adapter** (Amazon 彈性網路介面卡) 的內容功能表，然後選擇 **Properties** (屬性)。這會開啟 **Amazon 彈性網路介面卡屬性**對話方塊。
**注意**  
ENA 介面卡都使用相同的驅動程式。如果您有多個 ENA 介面卡，則可以選取其中一個來更新所有 ENA 介面卡的驅動程式。

1. 若要復原驅動程式，請開啟**驅動程式**索引標籤並選擇**復原驅動程式**。這會開啟**驅動程式套件復原**視窗。
**注意**  
如果**驅動程式**索引標籤未顯示**復原驅動程式**動作，或者動作無法使用，則表示執行個體上的[驅動程式存放區](https://learn.microsoft.com/en-us/windows-hardware/drivers/install/driver-store)不包含先前安裝的驅動程式套件。若要疑難排解此問題，請參閱 [故障診斷方案](troubleshoot-ena-driver.md#ts-ena-drv-scenarios) 並展開**非預期的 ENA 驅動程式版本已安裝**部分。如需有關裝置驅動程式套件選取程序的詳細資訊，請參閱 *Microsoft 文件網站*上的 [Windows 如何為裝置選取驅動程式套件](https://learn.microsoft.com/en-us/windows-hardware/drivers/install/how-windows-selects-a-driver-for-a-device)。

# 追蹤 ENA Windows 驅動程式版本版本
<a name="ena-driver-releases-windows"></a>

Windows AMI 包含 ENA Windows 驅動程式，用於啟用增強型網路。

對於 Windows Server 2016 版及更新版本，我們建議您使用最新的驅動程式版本。如需舊版 Windows Server，請參閱下表以決定要使用的 ENA 驅動程式版本。


| Windows Server 版本 | ENA 驅動程式版本 | 
| --- | --- | 
| Windows Server 2012 R2 | 2.6.0 和更舊版本 | 
| Windows Server 2012 | 2.6.0 和更舊版本 | 
| Windows Server 2008 R2 | 2.2.3 和舊版 | 

## ENA Windows 驅動程式版本歷史記錄
<a name="ena-win-driver-release-history"></a>

下表摘要說明各版本的變更。


| 驅動程式版本 | 詳細資訊 | 發行日期 | 
| --- | --- | --- | 
|  [2.11.0](https://s3.amazonaws.com/ec2-windows-drivers-downloads/ENA/x64/2.11.0/AwsEnaNetworkDriver.zip)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html) [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html)  | 2025 年 8 月 1 日 | 
|  [2.10.0](https://s3.amazonaws.com/ec2-windows-drivers-downloads/ENA/x64/2.10.0/AwsEnaNetworkDriver.zip)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html)  | 2025 年 6 月 24 日 | 
|  [2.9.0](https://s3.amazonaws.com/ec2-windows-drivers-downloads/ENA/x64/2.9.0/AwsEnaNetworkDriver.zip)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html) [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html)  | 2024 年 12 月 12 日 | 
|  [2.8.0](https://s3.amazonaws.com/ec2-windows-drivers-downloads/ENA/x64/2.8.0/AwsEnaNetworkDriver.zip)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html)  | 2024 年 9 月 30 日 | 
|  [2.7.0](https://s3.amazonaws.com/ec2-windows-drivers-downloads/ENA/x64/2.7.0/AwsEnaNetworkDriver.zip)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html) [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html)  | 2024 年 5 月 1 日 | 
|  [2.6.0](https://s3.amazonaws.com/ec2-windows-drivers-downloads/ENA/x64/2.6.0/AwsEnaNetworkDriver.zip)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html) [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html)  | 2023 年 6 月 20 日 | 
|  2.5.0  |   公告 由於無法在 Windows 域控制器上初始化，ENA Windows 驅動程式 2.5.0 版已復原。Windows Client 和 Windows Server 不受影響。   | 2023 年 2 月 17 日 | 
|  [2.4.0](https://s3.amazonaws.com/ec2-windows-drivers-downloads/ENA/x64/2.4.0/AwsEnaNetworkDriver.zip)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html) [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html)  | 2022 年 4 月 28 日 | 
| 2.2.4 |   公告 因第六代 EC2 執行個體的潛在效能下降，ENA Windows 驅動程式 2.2.4 版已回復。我們建議您使用下列其中一個方法，降級您的驅動程式：  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html)  | 2021 年 10 月 26 日 | 
|  [2.2.3](https://s3.amazonaws.com/ec2-windows-drivers-downloads/ENA/x64/2.2.3/AwsEnaNetworkDriver.zip)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html) [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html)  公告 Windows ENA 驅動程式 2.2.3 版是支援 Windows Server 2008 R2 的最後一個版本。Windows Server 2008 R2 會繼續支援使用 ENA 的目前可用執行個體類型，且驅動程式可供下載。未來執行個體類型不會支援 Windows Server 2008 R2，而且您無法將 Windows Server 2008 R2 啟動、匯入或遷移到未來執行個體類型。   | 2021 年 3 月 25 日 | 
|  [2.2.2](https://s3.amazonaws.com/ec2-windows-drivers-downloads/ENA/2.2.2/AwsEnaNetworkDriver.zip)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html) [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html) | 2020 年 12 月 21 日 | 
|  [2.2.1](https://s3.amazonaws.com/ec2-windows-drivers-downloads/ENA/2.2.1/AwsEnaNetworkDriver.zip)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html) | 2020 年 10 月 1 日 | 
|  [2.2.0](https://s3.amazonaws.com/ec2-windows-drivers-downloads/ENA/2.2.0/AwsEnaNetworkDriver.zip)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html) [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html) [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html)  | 2020 年 8 月 12 日 | 
|  [2.1.5](https://s3.amazonaws.com/ec2-windows-drivers-downloads/ENA/2.1.5/AwsEnaNetworkDriver.zip)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html) | 2020 年 6 月 23 日 | 
|  [2.1.4](https://s3.amazonaws.com/ec2-windows-drivers-downloads/ENA/2.1.4/AwsEnaNetworkDriver.zip)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html)  | 2019 年 11 月 25 日 | 
|  [2.1.2](https://s3.amazonaws.com/ec2-windows-drivers-downloads/ENA/2.1.2/AwsEnaNetworkDriver.zip)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html) [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html)  | 2019 年 11 月 4 日 | 
|  [2.1.1](https://s3.amazonaws.com/ec2-windows-drivers-downloads/ENA/2.1.1/AwsEnaNetworkDriver.zip)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html)  | 2019 年 9 月 16 日 | 
|  [2.1.0](https://s3.amazonaws.com/ec2-windows-drivers-downloads/ENA/2.1.0/AwsEnaNetworkDriver.zip)  | ENA Windows 驅動程式 2.1 版推出新的 ENA 裝置功能、提供效能加速、加入新功能，並包含多個穩定性改善。 [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html) [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html) [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html)  | 2019 年 7 月 1 日 | 
|  [1.5.0](https://s3.amazonaws.com/ec2-windows-drivers-downloads/ENA/1.5.0/AwsEnaNetworkDriver.zip)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/ena-driver-releases-windows.html)  | 2018 年 10 月 4 日 | 
|  [1.2.3](https://s3.amazonaws.com/ec2-windows-drivers-downloads/ENA/1.2.3/AwsEnaNetworkDriver.zip)  |  包含從 Windows Server 2008 R2 到 Windows Server 2016 的可靠性修正並統一支援。  | 2018 年 2 月 13 日 | 
|  [1.0.8](https://s3.amazonaws.com/ec2-windows-drivers-downloads/ENA/1.0.8/AwsEnaNetworkDriver.zip)  |  初始版本。包含適用於 Windows Server 2008 R2、Windows Server 2012 RTM、Windows Server 2012 R2 和 Windows Server 2016 的 AMI。  | 2016 年 7 月 | 

## 從 Amazon SNS 訂閱 ENA Windows 驅動程式版本通知
<a name="ena-win-driver-release-notification"></a>

Amazon SNS 會在 EC2 Windows 驅動程式發佈新版本時通知您。使用下列程序訂閱這些通知。

**訂閱 EC2 通知**

1. 在 [https://console.aws.amazon.com/sns/v3/home](https://console.aws.amazon.com/sns/v3/home) 開啟 Amazon SNS 主控台。

1. 如有必要，請在導覽列中將「區域」變更為**美國東部 (維吉尼亞北部)**。您必須選取此區域，因為您要訂閱的 SNS 通知位於本區域中。

1. 在導覽窗格中，選擇 **Subscriptions** (訂閱)。

1. 選擇 **Create subscription** (建立訂閱)。

1. 在 **Create subscription** (建立訂閱) 對話方塊中，執行下列動作：

   1. 針對 **TopicARN**，複製下列 Amazon Resource Name (ARN)：

      **arn:aws:sns:us-east-1:801119661308:ec2-windows-drivers**

   1. 針對 **rotocol (通訊協定)**，選擇 `Email`。

   1. 針對**端點**，輸入您要傳送通知的電子郵件地址。

   1. 選擇 **Create subscription** (建立訂閱)。

1. 您將會收到確認電子郵件。開啟電子郵件並遵循指示完成訂閱。

只要有新的 EC2 Windows 驅動程式發行，我們就會向訂閱者傳送通知。如果您不想再接收這些通知，請使用下列程序來取消訂閱。

**取消訂閱 Amazon EC2 Windows 驅動程式通知**

1. 在 [https://console.aws.amazon.com/sns/v3/home](https://console.aws.amazon.com/sns/v3/home) 開啟 Amazon SNS 主控台。

1. 在導覽窗格中，選擇 **Subscriptions** (訂閱)。

1. 選取訂閱的核取方塊，然後選擇 **Actions (動作)**、**Delete subscriptions (刪除訂閱)**。出現確認提示時，請選擇 **Delete (刪除)**。