Managing Network Interfaces
You can perform the following operations on network interfaces:
- Attaching a Network Interface to a Cloud Server
- Binding an EIP to a Network Interface
- Binding a Virtual IP Address to a Network Interface
- Enabling or Disabling the Instance-dependent Deletion Function for a Network Interface
- Detaching a Network Interface from an Instance or Unbinding an EIP from a Network Interface
- Changing Security Groups That Are Associated with a Network Interface
- Viewing the Basic Information About a Network Interface
Attaching a Network Interface to a Cloud Server
You can attach a network interface to an ECS to achieve flexible and high-availability network configurations.
- Log in to the management console.
- Click
in the upper left corner and choose Network > Virtual Private Cloud.
The VPC list is displayed.
- In the navigation pane on the left, choose Virtual Private Cloud > Network Interfaces.
The network interface list is displayed.
- In the network interface list, locate the row that contains the target network interface, click Attach Instance in the Operation column, and select the instance to be attached.
- Click OK.
Binding an EIP to a Network Interface
You can bind an EIP to a network interface to build more flexible and scalable networks.
Each network interface has a private IP address. After an EIP is bound to a network interface, the network interface has both a private IP address and a public IP address. The binding between a network interface and an EIP will not change even after the network interface is detached from an instance. After a network interface is migrated from one instance to another, its private IP address and EIP will be migrated at the same time.
An instance can have multiple network interfaces attached. If each network interface has an EIP bound, the instance will have multiple EIPs and can provide more flexible access services.
- Log in to the management console.
- Click
in the upper left corner and choose Network > Virtual Private Cloud.
The VPC list is displayed.
- In the navigation pane on the left, choose Virtual Private Cloud > Network Interfaces.
The network interface list is displayed.
- In the network interface list, locate the row that contains the target network interface, click Bind EIP in the Operation column, and select the EIP to be bound.
- Click OK.
Binding a Virtual IP Address to a Network Interface
You can bind a virtual IP address to a network interface so that you can access the instance with the network interface attached using the virtual IP address.
A virtual IP address can only be bound to a network interface attached to an instance.
For more information about virtual IP addresses, see Virtual IP Address Overview.
- Log in to the management console.
- Click
in the upper left corner and choose Network > Virtual Private Cloud.
The VPC list is displayed.
- In the navigation pane on the left, choose Virtual Private Cloud > Network Interfaces.
The network interface list is displayed.
- In the network interface list, locate the row that contains the target network interface, and choose More > Bind Virtual IP Address in the Operation column.
The IP Addresses page is displayed.
- Locate the row that contains the target virtual IP address and click Bind to Instance in the Operation column.
- Select the instance that the virtual IP address to be bound and click OK.
Enabling or Disabling the Instance-dependent Deletion Function for a Network Interface
This function is available only in certain regions, which is subject to that displayed on the console.
- Instance-dependent Deletion is disabled by default. With this function disabled, the network interface will not be deleted if it is detached from an instance or if the instance is deleted. You can attach the network interface to another instance.
- If Instance-dependent Deletion is enabled, the network interface will be deleted after it is detached from an instance.
- Log in to the management console.
- Click
in the upper left corner and choose Network > Virtual Private Cloud.
The VPC list is displayed.
- In the navigation pane on the left, choose Virtual Private Cloud > Network Interfaces.
The network interface list is displayed.
- Click the private IP address of the target network interface.
- On the Summary tab page, enable or disable Instance-dependent Deletion.
Detaching a Network Interface from an Instance or Unbinding an EIP from a Network Interface
- If Instance-dependent Deletion is enabled for a network interface, detaching the network interface from its instance will also delete the network interface.
- Deleting a network interface will also delete supplementary network interfaces and VLAN sub-interfaces attached to it.
- Deleting a network interface will also unbind its EIP.
- If Instance-dependent Deletion is disabled for a network interface, detaching the network interface from its instance will not delete the network interface.
If the network interface has an EIP bound, detaching the network interface from its instance will also unbind the EIP from the network interface.
- Log in to the management console.
- Click
in the upper left corner and choose Network > Virtual Private Cloud.
The VPC list is displayed.
- In the navigation pane on the left, choose Virtual Private Cloud > Network Interfaces.
The network interface list is displayed.
- In the network interface list, locate the row that contains the target network interface, and click Detach Instance or Unbind EIP in the Operation column.
- Click OK.
If you no longer need an EIP, you can choose to release the EIP when unbinding it.
Changing Security Groups That Are Associated with a Network Interface
You can change the security groups that are associated with a network interface on either the network interface list page or the network interface details page.
- Log in to the management console.
- Click
in the upper left corner and choose Network > Virtual Private Cloud.
The VPC list is displayed.
- In the navigation pane on the left, choose Virtual Private Cloud > Network Interfaces.
The network interface list is displayed.
- You can change the security groups associated with a network interface:
- On the network interface list page:
- In the network interface list, locate the row that contains the target network interface, and choose More > Change Security Group in the Operation column.
- On the Change Security Group page, select the security groups to be associated and click OK.
- On the network interface details page:
- Click the private IP address of the target network interface.
- Choose the Associated Security Groups tab and click Change Security Group.
- On the Change Security Group page, select the security groups to be associated and click OK.
- On the network interface list page:
Viewing the Basic Information About a Network Interface
You can view basic information about your network interface on the management console, including the name, ID, type, VPC, attached instance, and associated security groups.
- Log in to the management console.
- Click
in the upper left corner and choose Network > Virtual Private Cloud.
The VPC list is displayed.
- In the navigation pane on the left, choose Virtual Private Cloud > Network Interfaces.
The network interface list is displayed.
- Click the private IP address of the target network interface.
- Attaching a Network Interface to a Cloud Server
- Binding an EIP to a Network Interface
- Binding a Virtual IP Address to a Network Interface
- Enabling or Disabling the Instance-dependent Deletion Function for a Network Interface
- Detaching a Network Interface from an Instance or Unbinding an EIP from a Network Interface
- Changing Security Groups That Are Associated with a Network Interface
- Viewing the Basic Information About a Network Interface