Modify network interface attributes
You can change the following network interface attributes:
To change the description of a network interface using the console
Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/
. -
In the navigation pane, choose Network Interfaces.
-
Select the checkbox for the network interface.
-
Choose Actions, Change description.
-
For Description, enter a description for the network interface.
-
Choose Save.
To change the security groups of a network interface using the console
Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/
. -
In the navigation pane, choose Network Interfaces.
-
Select the checkbox for the network interface.
-
Choose Actions, Change security groups.
-
For Associated security groups, select the security groups to use, and then choose Save.
The security group and network interface must be created for the same VPC. To change the security group for interfaces owned by other services, such as Elastic Load Balancing, do so through that service.
To change the termination behavior of a network interface using the console
Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/
. -
In the navigation pane, choose Network Interfaces.
-
Select the checkbox for the network interface.
-
Choose Actions, Change termination behavior.
-
Select or clear Delete on termination, Enable as needed, and then choose Save.
To change source/destination checking for a network interface using the console
Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/
. -
In the navigation pane, choose Network Interfaces.
-
Select the checkbox for the network interface.
-
Choose Actions, Change source/dest check.
-
Select or clear Source/destination check, Enable as needed, and then choose Save.
To change idle connection tracking timeouts:
Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/
. -
In the navigation pane, choose Network Interfaces.
-
Select the checkbox for the network interface.
-
Choose Actions, Modify connection timeout.
-
Modify the idle connection tracking timeouts. For more information about these options, see Idle connection tracking timeout.
TCP established timeout: Timeout (in seconds) for idle TCP connections in an established state. Min: 60 seconds. Max: 432000 seconds (5 days). Default: 432000 seconds. Recommended: Less than 432000 seconds.
UDP timeout: Timeout (in seconds) for idle UDP flows that have seen traffic only in a single direction or a single request-response transaction. Min: 30 seconds. Max: 60 seconds. Default: 30 seconds.
UDP stream timeout: Timeout (in seconds) for idle UDP flows classified as streams which have seen more than one request-response transaction. Min: 60 seconds. Max: 180 seconds (3 minutes). Default: 180 seconds.
Choose Save.
To modify network interface attributes using the command line
You can use one of the following commands. For more information about these command line interfaces, see Access Amazon EC2.
-
modify-network-interface-attribute (Amazon CLI)
-
Edit-EC2NetworkInterfaceAttribute (Amazon Tools for Windows PowerShell)