Configure ENA Express settings for your EC2 instance
You can configure ENA Express for supported EC2 instance types without needing to install any additional software.
This section covers how to configure ENA Express from the AWS Management Console or from the AWS CLI. For more information, choose the tab that matches the method you'll use.
- Console
-
This tab covers how to manage ENA Express settings for network interfaces that are attached to an instance.
Manage ENA Express from the Network interface list
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
. -
In the left navigation pane, choose Network interfaces.
-
Select a network interface that is attached to an instance. You can choose the Network interface ID link to open the detail page, or you can select the checkbox on the left side of the list.
-
Choose Manage ENA Express from the Action menu at the top right side of the page. This opens the Manage ENA Express dialog, with the selected network interface ID and current settings displayed.
Note
If the network interface you selected is not attached to an instance, this action does not appear in the menu.
-
To use ENA Express, select the Enable check box.
-
When ENA Express is enabled, you can configure UDP settings. To use ENA Express UDP, select the Enable check box.
-
To save your settings, choose Save.
Manage ENA Express from the Instance list
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
. -
In the left navigation pane, choose Instances.
-
Select the instance that you want to manage. You can choose the Instance ID to open the detail page, or you can select the checkbox on the left side of the list.
-
Select the Network interface to configure for your instance.
-
Choose Manage ENA Express from the Action menu at the top right side of the page.
-
To configure ENA Express for a network interface that's attached to your instance, select it from the Network interface list.
-
To use ENA Express for the selected network interface attachment, select the Enable check box.
-
When ENA Express is enabled, you can configure UDP settings. To use ENA Express UDP, select the Enable check box.
-
To save your settings, choose Save.
Configure ENA Express when you attach a network interface to an EC2 instance
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
. -
In the left navigation pane, choose Network interfaces.
-
Select a network interface that is not attached to an instance (Status is Available). You can choose the Network interface ID link to open the detail page, or you can select the checkbox on the left side of the list.
-
Select the Instance that you'll attach to.
-
To use ENA Express after you attach the network interface to the instance, select the Enable check box.
-
When ENA Express is enabled, you can configure UDP settings. To use ENA Express UDP, select the Enable check box.
-
To attach the network interface to the instance and save your ENA Express settings, choose Attach.
- AWS CLI
-
This tab covers how to configure ENA Express settings in the AWS CLI.
Configure ENA Express when you attach a network interface
To configure ENA Express when you attach a network interface to an instance, run the attach-network-interface
command in the AWS CLI, as shown in the following examples: Example 1: Use ENA Express for TCP traffic, but not for UDP traffic
In this example, we configure
EnaSrdEnabled
as true, and we allowEnaSrdUdpEnabled
to default to false.[ec2-user ~]$
aws ec2 attach-network-interface --network-interface-id
eni-0123f4567890a1b23
--instance-idi-0f1a234b5cd67e890
--device-index 1 --ena-srd-specification 'EnaSrdEnabled=true'{ "AttachmentId": "eni-attach-012c3d45e678f9012" }
Example 2: Use ENA Express for both TCP traffic and UDP traffic
In this example, we configure both
EnaSrdEnabled
andEnaSrdUdpEnabled
as true.[ec2-user ~]$
aws ec2 attach-network-interface --network-interface-id
eni-0123f4567890a1b23
--instance-idi-0f1a234b5cd67e890
--device-index 1 --ena-srd-specification 'EnaSrdEnabled=true,EnaSrdUdpSpecification={EnaSrdUdpEnabled=true}'{ "AttachmentId": "eni-attach-012c3d45e678f9012" }
Update ENA Express settings for your network interface attachment
To update ENA Express settings for a network interface that's attached to an instance, run the modify-network-interface-attribute
command in the AWS CLI, as shown in the following examples: Example 1: Use ENA Express for TCP traffic, but not for UDP traffic
In this example, we configure
EnaSrdEnabled
as true, and we allowEnaSrdUdpEnabled
to default to false if it has never been set previously.[ec2-user ~]$
aws ec2 modify-network-interface-attribute --network-interface-id
eni-0123f4567890a1b23
--ena-srd-specification 'EnaSrdEnabled=true'Example 2: Use ENA Express for both TCP traffic and UDP traffic
In this example, we configure both
EnaSrdEnabled
andEnaSrdUdpEnabled
as true.[ec2-user ~]$
aws ec2 modify-network-interface-attribute --network-interface-id
eni-0123f4567890a1b23
--ena-srd-specification 'EnaSrdEnabled=true,EnaSrdUdpSpecification={EnaSrdUdpEnabled=true}'Example 3: Stop using ENA Express for UDP traffic
In this example, we configure
EnaSrdUdpEnabled
as false.[ec2-user ~]$
aws ec2 modify-network-interface-attribute --network-interface-id
eni-0123f4567890a1b23
--ena-srd-specification 'EnaSrdUdpSpecification={EnaSrdUdpEnabled=false}' - PowerShell
-
This tab covers how to configure ENA Express settings using PowerShell.
Configure ENA Express when you attach a network interface
To configure ENA Express settings for a networking interface, run the Add-EC2NetworkInterface Cmdlet with the Tools for PowerShell as shown in the following examples:
Example 1: Use ENA Express for TCP traffic, but not for UDP traffic
In this example, we configure
EnaSrdEnabled
as true, and we allowEnaSrdUdpEnabled
to default to false.PS C:\>
Add-EC2NetworkInterface ` -NetworkInterfaceId eni-
0123f4567890a1b23
` -InstanceId i-0f1a234b5cd67e890
` -DeviceIndex1
` -EnaSrdSpecification_EnaSrdEnabled $trueeni-attach-012c3d45e678f9012
Example 2: Use ENA Express for both TCP traffic and UDP traffic
In this example, we configure both
EnaSrdEnabled
andEnaSrdUdpEnabled
as true.PS C:\>
Add-EC2NetworkInterface ` -NetworkInterfaceId eni-
0123f4567890a1b23
` -InstanceId i-0f1a234b5cd67e890
` -DeviceIndex1
` -EnaSrdSpecification_EnaSrdEnabled $true ` -EnaSrdUdpSpecification_EnaSrdUdpEnabled $trueeni-attach-012c3d45e678f9012
Update ENA Express settings for your network interface attachment
To update ENA Express settings for a network interface that's attached to an instance, run the Add-EC2NetworkInterface Cmdlet command in the Tools for PowerShell, as shown in the following examples:
Example 1: Use ENA Express for TCP traffic, but not for UDP traffic
In this example, we configure
EnaSrdEnabled
as true, and we allowEnaSrdUdpEnabled
to default to false if it has never been set previously.PS C:\>
Edit-EC2NetworkInterfaceAttribute ` -NetworkInterfaceId eni-
0123f4567890a1b23
` -EnaSrdSpecification_EnaSrdEnabled $true ; Get-EC2NetworkInterface -NetworkInterfaceId eni-0123f4567890a1b23
| ` Select-Object ` NetworkInterfaceId, @{Name = 'EnaSrdEnabled'; Expression = { $_.Attachment.EnaSrdSpecification.EnaSrdEnabled }}, @{Name = 'EnaSrdUdpEnabled'; Expression = { $_.Attachment.EnaSrdSpecification.EnaSrdUdpSpecification.EnaSrdUdpEnabled }} | ` Format-ListNetworkInterfaceId : eni-0123f4567890a1b23 EnaSrdEnabled : True EnaSrdUdpEnabled : False
Example 2: Use ENA Express for both TCP traffic and UDP traffic
In this example, we configure both
EnaSrdEnabled
andEnaSrdUdpEnabled
as true.PS C:\>
Edit-EC2NetworkInterfaceAttribute ` -NetworkInterfaceId eni-
0123f4567890a1b23
` -EnaSrdSpecification_EnaSrdEnabled $true ` -EnaSrdSpecification_EnaSrdUdpSpecification_EnaSrdUdpEnabled $true ; Get-EC2NetworkInterface -NetworkInterfaceId eni-0123f4567890a1b23
| ` Select-Object ` NetworkInterfaceId, @{Name = 'EnaSrdEnabled'; Expression = { $_.Attachment.EnaSrdSpecification.EnaSrdEnabled }}, @{Name = 'EnaSrdUdpEnabled'; Expression = { $_.Attachment.EnaSrdSpecification.EnaSrdUdpSpecification.EnaSrdUdpEnabled }} | ` Format-ListNetworkInterfaceId : eni-0123f4567890a1b23 EnaSrdEnabled : True EnaSrdUdpEnabled : True
Example 3: Stop using ENA Express for UDP traffic
In this example, we configure
EnaSrdUdpEnabled
as false.PS C:\>
Edit-EC2NetworkInterfaceAttribute ` -NetworkInterfaceId eni-
0123f4567890a1b23
` -EnaSrdSpecification_EnaSrdUdpSpecification_EnaSrdUdpEnabled $false ; Get-EC2NetworkInterface -NetworkInterfaceId eni-0123f4567890a1b23
| ` Select-Object ` NetworkInterfaceId, @{Name = 'EnaSrdEnabled'; Expression = { $_.Attachment.EnaSrdSpecification.EnaSrdEnabled }}, @{Name = 'EnaSrdUdpEnabled'; Expression = { $_.Attachment.EnaSrdSpecification.EnaSrdUdpSpecification.EnaSrdUdpEnabled }} | ` Format-ListNetworkInterfaceId : eni-0123f4567890a1b23 EnaSrdEnabled : True EnaSrdUdpEnabled : False
Configure ENA Express at launch
You can use one of the following methods to configure ENA Express directly when you launch an instance. The specified links refer you to the AWS Management Console instructions for these methods.
-
Launch instance wizard: You can configure ENA Express at launch with the launch instance wizard. For more information, see Advanced network configuration in the Network settings for the launch instance wizard.
-
Launch template: You can configure ENA Express at launch when you use a launch template. For more information, see the Create an Amazon EC2 launch template page, then expand the Network settings section and review the Advanced network configuration.