This topic describes how to associate an Elastic IP Address (EIP) with a NAT Gateway. A NAT Gateway is essentially an Internet gateway which requires public IP addresses to function. After creating a NAT Gateway, you can associate one or more Elastic IP Addresses (EIPs) with the NAT Gateway.


Before you associate an EIP with a NAT Gateway, make sure that the following conditions are met:

Background information

A NAT Gateway can be associated with up to 20 EIPs, among which no more than ten are billed based on traffic. The peak bandwidth of each EIP that is billed based on traffic cannot exceed 200 Mbps. You can request a quota increase on the Quota Management page in the console. For more information, see Manage quotas.


  1. Log on to the VPC console.
  2. In the left-side navigation pane, click NAT Gateways.
  3. In the top navigation bar, select the region of the NAT Gateway.
  4. On the NAT Gateways page, find the target NAT Gateway and choose More > Bind Elastic IP Address in the Actions column.
  5. On the Bind Elastic IP Address page, complete the following configurations, and then click OK.
    Category Configuration Description
    Select from EIP list Usable EIP list Select an EIP that is used to access the Internet.
    VSwitch Select the VSwitch to which you want to add SNAT entries.

    The system automatically adds SNAT entries so that Alibaba Cloud services connected to this VSwitch can access the Internet. Alternatively, you can skip this step and add SNAT entries after you associate an EIP with the NAT Gateway. For more information, see Create a SNAT entry.

    Note This option is only available for the NAT Gateways that are not associated with an EIP.
    Allocate one EIP and bind it to NAT Gateway Buy EIP Displays the number of EIPs to be purchased. The default value is 1 and cannot be modified.

    The system automatically creates an EIP billed by traffic and associates it with the NAT Gateway.