Updated on 2024-04-15 GMT+08:00

Creating a Network Interface

Scenarios

A primary network interface is created together with an instance by default. You can perform the following operations to create extended network interfaces on the Network Interfaces console.

Notes and Constraints

An extended network interface created on the console can only be attached to an instance from the same VPC, but they can be associated with different security groups.

If you create an extended network interface using an API, the interface can be attached to an instance from a different VPC.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and choose Network > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

  3. In the navigation pane on the left, choose Virtual Private Cloud > Network Interfaces.
  4. Click Create Network Interface.
  5. Configure parameters for the network interface, as shown in Table 1.
    Table 1 Parameter descriptions

    Parameter

    Parameter Description

    Example Value

    Name

    (Mandatory) Specifies the network interface name.

    The name can contain a maximum of 64 characters, which may consist of letters, digits, underscores (_), hyphens (-), and periods (.). The name cannot contain spaces.

    networkInterface-891e

    VPC

    (Mandatory) Select the VPC to which the network interface belongs.

    vpc-001

    Subnet

    (Mandatory) Select the subnet that the network interface belongs to.

    subnet-001

    Private IP Address

    Select whether to automatically assign a private IP address.

    -

    Security Group

    Select the security group that the network interface belongs to.

    sg-001

  6. Click OK.