You can attach an Elastic Network Interface (ENI) when creating an ECS instance in the ECS console. For more information about instance creation, see create an instance.

Before you attach an ENI during ECS instance creation, note the following:

  • Basic configurations
    • Region: ENIs are supported in all regions.
    • Instance type: Select an instance type that supports ENI. The selected instance type must be I/O optimized.
    • Image: Only the following image types support ENIs without any manual configuration required. For other images, you must configure the ENI to enable the created instance to support it.
      • Centos 7.3 64-bit
      • Centos 6.8 64-bit
      • Windows Server 2016 Data Center Edition 64-bit
      • Windows Server 2012 R2 Data Center Edition 64-bit
    • Networking
      • Network: Select VPC, and then select a created VPC and a VSwitch.
      • ENI: Click Add ENI to attach the target ENI, and then select a VSwitch for the ENI.
        • You can only attach a maximum of two ENIs when creating an instance in the console. One is the primary ENI, which is attached automatically, and the other is a secondary ENI.
        • After the instance is started, you can attach additional secondary ENIs to the instance based on the instance type in the ECS console or by using the AttachNetworkInterface API.

If you want to keep the secondary ENI that is created in this way, detach it from the instance before you release the instance.