All Products
Search
Document Center

Platform For AI:Manage LNIs

Last Updated:Dec 16, 2025

A Lingjun network interface (LNI) is a logical interface that combines multiple physical network interfaces of a Lingjun node by using bond strategies. Each LNI is associated with a Lingjun node. LNIs allow Lingjun nodes in the same Virtual Private Datacenter (VPD) to communicate with each other. This topic describes LNIs and how to configure secondary private IP addresses that are assigned to an LNI.

Background information

Lingjun nodes are connected to the Lingjun network by using LNIs. This way, Lingjun nodes are connected to other Alibaba Cloud services. An LNI is created when you create a Lingjun node. You cannot disassociate an LNI from the Lingjun node for which the LNI is created.

image

View LNIs

  1. Log on to the Intelligent Computing Lingjun console.

  2. In the left-side navigation pane, choose Network Resources > Lingjun NICs.

  3. On the Lingjun NICs page, view the information about each LNI, such as the VPD, zone, subnet, and primary private IP address of the LNI. You can search for an LNI by specifying a condition such as the LNI ID, VPD, or the ID of the Lingjun node with which the LNI is associated.

    • VPC/vSwitch: the VPD in which the LNI and the associated Lingjun node reside.

    • Lingjun Subnets: the subnet in which the LNI resides in the VPD. For more information about VPDs and subnets, see Manage Lingjun VPDs.

    • Zone: the zone in which the associated Lingjun node resides.

    • IP: the IPv4 address that is assigned to the associated Lingjun node when the node is created.

Manage secondary private IP addresses

  1. Log on to the Intelligent Computing Lingjun console.

  2. In the left-side navigation pane, choose Network Resources > Lingjun NICs.

  3. On the Lingjun NICs page, find an LNI for which you want to manage secondary private IP addresses and click the ID of the LNI.

  4. In the panel that appears, view the information about the LNI, such as the ID, zone, VPD, and private IP addresses of the LNI.

  5. Add secondary private IP addresses to or remove secondary private IP addresses from the LNI based on your business requirements.

    • Find the secondary private IP address that you want to remove. Click Delete in the Actions column. In the message that appears, click Yes to remove the secondary private IP address.

      Important

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

    • Click Add to add a secondary private IP address to the LNI.

      • If you want to add a specific secondary private IP address, enter the IP address in the Secondary Private IP Address column. Then, click OK in the Actions column.

      • If you want to add a random secondary private IP address, directly click OK in the Actions column. In this case, the added secondary private IP address is first in the In Progress state. After the secondary private IP address is assigned, the secondary private IP address is displayed. The state of the secondary private IP address changes to Available.

Configure secondary private IP addresses

After you apply for an idle IPv4 address in the VPD of a Lingjun node as a secondary private IP address in the Intelligent Computing Lingjun console, you must configure the secondary private IP address on the Lingjun node. This way, the Lingjun node can use the secondary private IP address to connect to other Alibaba Cloud services.

Configure secondary private IP addresses in Linux

  • The procedure described in this section applies to the following operating systems: Alibaba Cloud Linux 2, Alibaba Cloud Linux 3, CentOS 7, CentOS 8, Red Hat Enterprise Linux (RHEL) 7, RHEL 8, Anolis 7, and Anolis 8.

  • The following example shows how to configure secondary private IP addresses for the primary LNI bond0. Replace bond0 in the sample code with the actual identifier of your LNI.

  1. Log on to the Lingjun node with which the LNI is associated. For more information, see Use Lingjun cluster services.

  2. Query the subnet mask and default gateway of a secondary private IP address.

    1. Run the ifconfig command to query the subnet mask and route -n command to query the default gateway. The following figure shows an example of the command output.view-ips

      The value 255.255.*.* of the netmask parameter indicates the subnet mask of the secondary private IPv4 address. The value 192.**.**.253 of the Gateway parameter indicates the default gateway.

    2. If your operating system does not support the ifconfig command, run the ip addr show command to query the subnet mask and ip route show command to query the default gateway. The following figure shows an example of the command output.image

      The number 25 in 172.**.**.17/25 indicates the prefix length of the subnet mask. 172.**.**.125 indicates the default gateway.

  3. Modify the network configuration file.

    1. To configure a secondary private IP address, run the vi /etc/sysconfig/network-scripts/ifcfg-bond0 command to open the ifcfg-bond0 file, and add the required configuration items. The following sample code provides an example on how to configure a secondary private IP address whose subnet mask is obtained by running the ip addr show command in Step 2:

      [root@cis-bm-heyuan-103 ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond0 
      # Created by cloud-init on instance boot automatically, do not edit.
      #
      BONDING_MASTER=yes
      BONDING_OPTS="mode=active-backup miimon=100"
      BONDING_SLAVE0=enp59s0f0
      BONDING_SLAVE1=enp59s0f1
      BOOTPROTO=none
      DEFROUTE=yes
      DEVICE=bond0
      IPADDR1=172.**.**.17
      NETMASK1=255.255.255.128
      GATEWAY1=172.**.**.125
      IPADDR2=172.**.**.27
      PREFIX2=25
      GATEWAY2=172.**.**.125
    2. The IPADDR parameter specifies the secondary private IP address. The PREFIX parameter specifies the subnet mask. The GATEWAY parameter specifies the gateway. If you want to configure more secondary private IPv4 addresses, increment the ordinal numbers after the IPADDR, PREFIX, and GATEWAY parameters and specify the values of the parameters.

  4. Restart the network service.

    Operating system

    Restart method

    • Alibaba Cloud Linux 2

    • CentOS 7

    • RHEL 7

    • Anolis 7

    Run the following commands to restart the network service:

    • service network restart

    • systemctl restart network

    • Alibaba Cloud Linux 3

    • CentOS 8

    • RHEL 8

    • Anolis 8

    Perform the following operations:

    1. Run the systemctl restart NetworkManager command to restart the network service.

    2. Run the nmcli device reapply eth0 command to reapply the configurations of the eth0 interface, or run the reboot command to restart the Lingjun node.

  5. Run the ip addr show command to view the configuration results. The following figure shows the results of configuring a secondary private IP address.image

Configure secondary private IP addresses in Windows

  1. Log on to the Lingjun node with which the LNI is associated. For more information, see Use Lingjun cluster services.

  2. View the subnet mask and default gateway of the instance.

    1. Open Command Prompt or Windows PowerShell.

    2. Run the ipconfig command to view the subnet mask and default gateway of the instance.

      The sample command output shown in the following figure is returned. The command output indicates that Ethernet is used.windows-viewip-original

  3. Click Network and Sharing Center.

  4. Click Change adapter settings.

  5. Double-click the network connection in use. In this example, the network connection named Ethernet is used. Click Properties in the Ethernet Status dialog box.

  6. In the Ethernet Properties dialog box, double-click Internet Protocol Version 4 (TCP/IPv4).

  7. In the Internet Protocol Version 4 (TCP/IPv4) Properties dialog box, select Use the following IP address and click Advanced...

  8. In the Advanced TCP/IP Settings dialog box, configure IP addresses.

    1. In the IP addresses section, click Add... and enter one of the assigned IP addresses in the IP address field and the obtained subnet mask in the Subnet mask field.

      You can repeat this step to add multiple IP addresses to the same adapter.

      添加IP地址

    2. In the Default gateways section, click Add... and enter the obtained default gateway in the Default gateway field.

  9. Click OK.

  10. Run the ipconfig command to view the subnet mask and default gateway of the instance.

    The sample command output shown in the following figure is returned. The command output indicates that Ethernet is used.windows-viewip-original