Help Center> Virtual Private Cloud> User Guide> Elastic Network Interface and Supplementary Network Interface> Elastic Network Interface> Detaching a Network Interface from an Instance or Unbinding an EIP from a Network Interface
Updated on 2024-04-22 GMT+08:00

Detaching a Network Interface from an Instance or Unbinding an EIP from a Network Interface

Scenarios

This section describes how to detach a network interface from an instance or unbind a network interface from an EIP.

Notes and Constraints

  • If Instance-dependent Deletion is enabled for a network interface, the network interface will be deleted if it is detached from its instance.
    • Deleting a network interface will also delete any 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, the network interface will not be deleted if it is detached from its instance.

    If a network interface has an EIP bound, detaching the network interface from its instance will also unbind the EIP from the network interface.

After an EIP is unbound from a network interface, if you do not release the EIP, the EIP will continue to be billed, but you can still bind it to other cloud resources.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. Click in the upper left corner and choose Networking > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

  4. In the navigation pane on the left, choose Virtual Private Cloud > Network Interfaces.
  5. 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.
  6. Click Yes.

    If you no longer need an EIP, you can release the EIP after unbinding it.