A Lingjun elastic network interface (LENI) is a virtual network interface that connects a GPU-accelerated Lingjun node to a virtual private cloud (VPC), enabling communication with other cloud resources in the VPC. You can assign one or more secondary private IP addresses to an LENI to improve the utilization of the associated Lingjun node.
Overview
Attributes
An LENI has the following attributes.
|
Attribute |
Description |
|
VPC |
The VPC to which the LENI is connected. |
|
vSwitch |
The vSwitch in which the LENI is deployed. The associated Lingjun node must reside in the same zone as this vSwitch. |
|
Zone |
The zone of the associated Lingjun node. |
|
Type |
|
|
Primary private IP address |
The private IPv4 address assigned to the LENI at creation time. It falls within the CIDR block of the vSwitch in which the LENI is deployed. |
|
Media access control (MAC) address |
The MAC address assigned to the LENI. |
|
Secondary private IPv4 address |
A secondary private IPv4 address assigned to the LENI. You can assign one or more secondary private IP addresses to an LENI. These addresses can be removed and reassigned to other LENIs. |
Usage notes
When you use an LENI, take note of the following items:
-
Multiple secondary private IP addresses can be assigned to a single LENI and individually removed.
-
When an LENI is released, its secondary private IP addresses are automatically reclaimed.
-
If the associated Lingjun node is scaled in or reinstalled, user-type LENIs are automatically reclaimed.
Prerequisites
-
A Lingjun node is purchased. For more information, see the "Purchase a node" section of the Manage Lingjun clusters and nodes topic.
-
A VPC and a vSwitch are created. The vSwitch and the Lingjun node reside in the same zone. For more information, see Create and manage a VPC.
Limits
|
Item |
Description |
|
|
Number of resources for each attribute of an LENI
|
Primary private IP address |
Default value: 1. |
|
Secondary private IPv4 address |
By default, up to 10 secondary private IPv4 addresses can be assigned to an LENI. To increase this quota, submit an application in Quota Center. For more information, see Manage quotas. |
|
|
MAC address |
Default value: 1. |
|
|
Number of LENIs that can be associated with a Lingjun node |
The number of LENIs that can be associated with a Lingjun node varies based on the node specifications. Minimum: 1. |
|
Create an LENI
You can create only LENIs of the user type.
-
Log on to the Intelligent Computing Lingjun console.
-
In the left-side navigation pane, choose .
-
On the Elastic Network Interface page, click Create ENI.
-
On the Create Lingjun Elastic Network Interface page, configure the parameters, and then click OK.
Parameter
Description
Zone
The zone of the associated Lingjun node.
Node ID
The ID of the associated Lingjun node.
VPC
The VPC to which the LENI is connected.
vSwitch
The vSwitch in which the LENI is deployed. The vSwitch and the associated Lingjun node must reside in the same zone.
Description
A description for identifying the LENI.
Manage LENIs
View LENIs
-
Log on to the Intelligent Computing Lingjun console.
-
In the left-side navigation pane, choose .
-
On the Elastic Network Interface page, select Instance ID, Node ID, IP, Status, or Type from the drop-down list and enter a keyword to filter the LENIs that meet the filter conditions.
-
Click the ID of an LENI to view the details of the LENI.
Add a secondary private IP address to an LENI
-
Log on to the Intelligent Computing Lingjun console.
-
In the left-side navigation pane, choose .
-
On the Elastic Network Interface page, find the LENI that you want to manage. Click the ID of the LENI to go to the details page of the LENI.
-
On the Manage Secondary Private IP Addresses tab, click Add to add a secondary private IP address to the LENI.
-
To assign a specific IP address, enter the address in the text box and then click OK.
-
To have the system assign an available IP address, click OK. The status of the secondary private IP address changes to In Progress and then to Available once the assignment is complete.
-
Remove a secondary private IP address from an LENI
-
Go to the details page of the LENI that you want to manage. For more information, see the Add secondary private IP addresses to an LENI section of this topic.
-
On the Manage Secondary Private IP Addresses tab, find the target secondary private IP address and click Delete in the Actions column.
NoteYou can remove a secondary private IP address only if the IP address is in the Available or Unavailable state.
Delete an LENI
-
Log on to the Intelligent Computing Lingjun console.
-
In the left-side navigation pane, choose .
-
On the Lingjun Elastic Network Interface page, find the LENI that you want to delete, click Delete in the Actions column, and follow the on-screen instructions to delete the LENI.
API operations
You can also call the following API operations to manage LENIs.
|
Operation |
Description |
|
CreateElasticNetworkInterface |
Creates an LENI. |
|
DeleteElasticNetworkInterface |
Deletes an LENI. |
|
UpdateElasticNetworkInterface |
Updates an LENI. |
|
ListElasticNetworkInterfaces |
Queries the LENIs that are associated with a Lingjun node. |
|
GetElasticNetworkInterface |
Queries the details of an LENI. |
|
AssignLeniPrivateIpAddress |
Assigns a secondary private IP address to an LENI. |
|
UnassignLeniPrivateIpAddress |
Removes a secondary private IP address from an LENI. |
|
UpdateLeniPrivateIpAddress |
Modifies the description of a secondary private IP address of an LENI. |
|
ListLeniPrivateIpAddresses |
Queries the private IP addresses that are assigned to an LENI. |
|
GetLeniPrivateIpAddress |
Queries the details of the secondary private IP addresses that are assigned to an LENI. |