Create and manage LENIs

更新时间:
复制 MD 格式

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

  • System type: A default system-type LENI is created with each Lingjun node. You cannot manually create a system-type LENI or disassociate it from the node.

  • User type: You can create additional user-type LENIs for a Lingjun node.

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

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

Note

You can create only LENIs of the user type.

  1. Log on to the Intelligent Computing Lingjun console.

  2. In the left-side navigation pane, choose Network Resources > Elastic Network Interfaces.

  3. On the Elastic Network Interface page, click Create ENI.

  4. 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

  1. Log on to the Intelligent Computing Lingjun console.

  2. In the left-side navigation pane, choose Network Resources > Elastic Network Interfaces.

  3. 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.

  4. Click the ID of an LENI to view the details of the LENI.

Add a secondary private IP address to an LENI

  1. Log on to the Intelligent Computing Lingjun console.

  2. In the left-side navigation pane, choose Network Resources > Elastic Network Interfaces.

  3. 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.

  4. 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

  1. 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.

  2. On the Manage Secondary Private IP Addresses tab, find the target secondary private IP address and click Delete in the Actions column.

    Note

    You can remove a secondary private IP address only if the IP address is in the Available or Unavailable state.

Delete an LENI

  1. Log on to the Intelligent Computing Lingjun console.

  2. In the left-side navigation pane, choose Network Resources > Elastic Network Interfaces.

  3. 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.