Associate an EIP with an ENI in NAT mode
Overview
This topic describes how to associate an elastic IP address (EIP) with a secondary elastic network interface (ENI) in NAT mode. After you associate an EIP with a secondary ENI in NAT mode, the private IP address and public IP address of the secondary ENIs are available for use. The EIP is not displayed on the secondary ENI.
Prerequisites
- A secondary ENI is created within a virtual private cloud (VPC). The secondary ENI and the EIP that you want to associate with the secondary ENI are created in the same region. For details, see the CRE User Guide - Creating an ENI for step-by-step instructions.
- The secondary ENI is not associated with an Elastic Compute Service (ECS) instance. If the secondary ENI is associated with an ECS instance, disassociate the secondary ENI from the ECS instance, associate the EIP with the secondary ENI in NAT mode, and then associate the secondary ENI with the ECS instance. For details, see the CRE User Guide - Unbinding an ENI for step-by-step instructions.
Procedure
- On the EIP page, click the Binding Resource button in the operation column.
- On the Bind elastic public network IP to resources section, configure the parameters.
Parameter | Description |
---|---|
Instance Type | Select Auxiliary ENI. |
Mode | Select NAT Mode. In NAT mode: ● The number of EIPs that can be associated with a secondary ENI depends on the number of private IP addresses that are assigned to the secondary ENI. ● The private IP address and public IP address of the secondary ENI are available for use. ● The EIP is not displayed in the operating system. To query the EIP, call the DescribeEipAddresses operation. ● The EIP does not support protocols that are managed by NAT application layer gateways ( ALGs ), such as H.323, Session Initiation Protocol (SIP), Domain Network System (DNS), and Real Time Streaming Protocol (RTSP). |
Select an instance to associate. | Select the secondary ENI with which you want to associate the EIP. Make sure that the secondary ENI meets the following requirements: ● The secondary ENI is deployed in a VPC. ● The secondary ENI and the EIP belong to the same region. |
- On the Bind elastic public network IP to resources section, click the OK button.
- Once the IP address is successfully bound, its status has been updated to Bind.