This topic describes how to set the NAT mode. When you associate an Elastic IP Address (EIP) with a secondary Elastic Network Interface (ENI), you can select the NAT Mode. In the NAT mode, the private and public IP addresses of the ENI are available at the same time, and the EIP is invisible to the ENI.
- The EIP is associated with the ENI in the NAT mode. The private and public IP addresses of the ENI are available at the same time.
- The EIP is invisible to the operating system. If you need to know the public IP address associated with the ENI, you must call the DescribeEipAddresses API. For more information, see DescribeEipAddresses.
- Protocols that require NAT ALG are not supported, such as H.323, SIP, DNS, RTSP, and TFTP.
- Log on to the VPC console.
- In the left-side navigation pane, choose Elastic IP Addresses.
- Select the region of the target EIP.
- On the Elastic IP Addresses page, find the target EIP and click Bind in the Actions column.
- On the Bind Elastic IP Address page, complete the following configurations, and then click OK.
Configuration Required? Description Instance Type Yes Select Secondary ENI. Resource Group No Select the resource group to which the EIP belongs. Mode No Select NAT Mode. Secondary ENI Yes Select the secondary ENI to be associated with the EIP.