Skip to main content

Detach Network Interface (Detach NIC)

Detach NIC enables removing network interfaces from Cloud Instance servers when no longer needed or when changing network configuration. Safe network interface removal is essential for proper server network management.

Overview

Network interface detachment may be necessary in these situations:

  • No longer need connection to specific network
  • Need to change network type (from Public to VPC or vice versa)
  • Want to release Reserved IP for use with other servers
  • Restructuring your network system

Figure needed: Network interface detachment interface showing confirmation dialog and IP release options

Preparation Before Detaching

Before detaching network interface, prepare to ensure smooth process without affecting running services:

1. Check Services Using the Interface

Identify all services using this network interface and migrate them to other interfaces or temporarily stop them:

  • Web servers
  • Database servers
  • VPN services
  • Monitoring agents

2. OS Preparation (Optional)

For Linux:

  1. Identify interface to detach:

    ip a
  2. Disable interface:

    sudo ifdown eth1  # Replace eth1 with interface name
  3. Backup and edit network configuration:

    sudo cp /etc/network/interfaces /etc/network/interfaces.bak
    sudo nano /etc/network/interfaces

    Remove or comment lines related to interface being detached.

For Windows:

  1. Open Network Connections from Control Panel
  2. Right-click interface and select Disable
  3. Update any configurations using this interface

Steps to Detach Network Interface

  1. Access server details page
  2. Navigate to Networks section
  3. Click Detach Interface icon (disconnect icon) next to target interface
  4. In confirmation dialog:
    • Review interface information to be detached
    • If interface uses Reserved IP, choose to keep IP in Reserved IP list or release completely
  5. Click Understand and Detach to complete interface removal
Important Notes
  • After detachment, dynamic IP addresses will be released and cannot be recovered
  • If using Reserved IP, you can keep IP for assignment to other servers
  • Network configuration changes may cause service interruption, perform during low-impact periods

Post-Detachment Actions

1. Update System Configuration

After detaching interface:

  • Update DNS configuration if needed
  • Review firewall and security group settings
  • Update system configuration documentation

2. Verify Service Availability

  • Confirm all critical services remain operational
  • Test connectivity with other servers and services
  • Verify applications can still communicate as expected

Common Scenarios

Changing Network Type

To change from public to private network or vice versa:

  1. Detach current network interface
  2. Attach new interface with desired network type
  3. Reconfigure OS for new interface
Reserved IP Release

To use Reserved IP with another server:

  1. Detach interface currently using Reserved IP
  2. Keep Reserved IP in list (do not release)
  3. Attach Reserved IP to new server