Network Interface Overview

An elastic network interface (referred to as a network interface in this documentation) is a virtual network card. You can create and configure network interfaces and attach them to your instances (ECSs and BMSs) to obtain flexible and highly available network configurations.

Currently, the network interface function is available only in region CN East-Shanghai2.

Network Interface Types

  • A primary network interface is created together with an instance by default, which cannot be detached from its instance.
  • You can create extension network interfaces, attach them to an instance, and detach them from the instance. The number of extension network interfaces that you can attach to an ECS varies by ECS flavor.

Application Scenarios

  • Flexible migration

    You can detach a network interface from an instance and then attach it to another instance. The network interface retains its private IP address, EIP, and security group rules. In this way, service traffic on the faulty instance can be quickly migrated to the standby instance, implementing quick service recovery.

  • Traffic management

    You can attach multiple interfaces that belong to different subnets in a VPC to the same instance, and specify them to carry the private network traffic, public network traffic, and management network traffic of the instance, respectively. You can configure access control policies and routing policies for each subnet, and configure security group rules for each network interface to isolate networks and service traffic.

Notes and Constraints

  • An instance and its extension network interfaces must be in the same AZ, VPC, and subnet. However, they can belong to different security groups.
  • A primary network interface cannot be detached from its instance.
  • The number of extension network interfaces that you can attach to an instance varies by instance flavor. For details, see x86 ECS Specifications.