You can create an ENI in two ways.
You can create an elastic network card individually. You can create an ENI in the ECS console, and then attach it to an instance.
This document describes how to create an ENI in the ECS console.
To create an ENI, you have the following limits:
- Each ENI must be in a VSwitch of a VPC.
- Each ENI must be in one security group.
Before you create an ENI, finish the following operations:
- Create a VPC and then create a VSwitch in the VPC.
- Create a security group in the same VPC.
To create an ENI, follow these steps:
- Log on to the ECS console.
- In the left-side navigation pane, select .
- Select a region.
- Click Create.
- In the Create dialog box, finish the following configurations:
- Network Interface Name: Specify a name for the ENI.
- VPC: Select a VPC. When you attach an ENI to an instance, they must be in the same VPC.
Note In addition, after an ENI is created, you cannot change the VPC.
- VSwitch: Select a VSwitch. When you attach an ENI to an instance, they must be in the same zone, but they do not have to be in the same VSwitch.
Note In addition, after an ENI is created, you cannot change the VSwitch.
- IP: Specify an IPv4 address as the private IP address of the ENI. The IPv4 address must be available in the CIDR block of the specified VSwitch. If you do not specify one, an private IP address is automatically assigned to your ENI after the ENI is created.
- SecurityGroup: Select a security group in the selected VPC.
- Description: Give a brief description for the ENI for easing further management.
- Click OK.
In the Network Interfaces page, refresh the table. When the new ENI is in the Available status, it is created successfully.
After you create an ENI, perform the following operations: