[email protected]Support 24/7 · Billing 09:00 – 00:00LinkedInXFacebook
NexonHost
Netherlands Dedicated ServersAmsterdam · Equinix AM6Germany Dedicated ServersFrankfurt · Equinix FR4Romania Dedicated ServersBucharest · VoxilityAustria Dedicated ServersVienna · Interxion VIEBulgaria Dedicated ServersSofia · TelepointFrance Dedicated ServersParis · Interxion PAR — Marseille · Digital Realty MRS3Ireland Dedicated ServersDublin · Equinix DB2Italy Dedicated ServersMilan · Irideos AvalonPoland Dedicated ServersWarsawSpain Dedicated ServersMadrid · Equinix MD2United States Dedicated ServersAshburn · Equinix DC
All articles
Getting startedSeptember 6, 2023

How to remove the bond0 interface in Ubuntu 20.4.

How To Remove The Bond0 Interface In Ubuntu 20.4.

Network bonding (also called “NIC teaming”) is a method for combining multiple network interfaces to form a single, logical network interface for increased bandwidth, fault tolerance, or both. In Ubuntu, the bonding configuration is stored in the network configuration files. If you want to remove a bond (e.g., bond0), you need to modify the network configuration.

In this guide, we’ll show you how to remove the bond0 interface in Ubuntu. We’ll use the Netplan configuration for Ubuntu 20.4 and later.

 

Step 1: Locate the Netplan Configuration File

Netplan is the default network configuration tool in Ubuntu 18.04 and later versions. First, locate the Netplan configuration file, which is typically found in the /etc/netplan/ directory. The file should have a .yaml extension, for example:

/etc/netplan/01-netcfg.yaml

The name of the file might be different on your system.

 

Step 2: Edit the Netplan Configuration File

Open the Netplan configuration file using a text editor like nano:

sudo nano /etc/netplan/01-netcfg.yaml

Locate the bond0 interface configuration within the file. It should look similar to the following:

bonds:
  bond0:
    interfaces:
    - eth0
    - eth1
    parameters:
      mode: balance-rr

Remove the entire bond0 configuration block, including the bond0: line and all nested lines under it.

 

Step 3: Reconfigure the Network Interfaces

After removing the bond0 configuration, you may need to reconfigure the individual network interfaces that were part of the bond (e.g., eth0, eth1). You can configure them as separate interfaces or as part of a new bond.

For example, to configure eth0 with a static IP address, add the following configuration to the Netplan file:

network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      dhcp4: no
      addresses:
        - XX.XX.XX.XX/27
      gateway4: XX.XX.XX.XX
      nameservers:
        addresses:
          - 8.8.8.8
          - 8.8.4.4

Adjust the IP addresses, gateway, and nameservers according to your network requirements.

 

Step 4: Apply the New Configuration

After editing the Netplan configuration file, save the changes and exit the text editor. Then, apply the new network configuration using the following command:

sudo netplan apply

This command will apply the changes and restart the networking service. The bond0 interface should now be removed, and the other network interfaces should be configured according to the new settings.

 

Conclusion

In this guide, we’ve shown you how to remove the bond0 network interface in Ubuntu using the Netplan configuration tool. Make sure to configure the individual network interfaces that were part of the bond, according to your network requirements.

Keep reading
How to use Bash Source Command.
April 15, 2023

How to use Bash Source Command.

How To Use Bash Source Command. The source command reads and executes commands from the file specified as its argument in the current shell environment. It is useful to load functions, variables, and configuration files into shell scripts. Source is a shell built-in in Bash and other popular…

Read article
How to use Free Command.
April 15, 2023

How to use Free Command.

How To Use Free Command. The free command provides information about the total amount of the physical and swap memory, as well as the free and used memory. In Linux systems, you can use the free command to get a detailed report on the system’s memory usage. How much free RAM memory do I have…

Read article
How to Install and Configure an NFS Server on Ubuntu 18.04
April 15, 2023

How to Install and Configure an NFS Server on Ubuntu 18.04

How To Install And Configure An NFS Server On Ubuntu 18. In this tutorial, we’ll go over how to set up an NFSv4 Server on Ubuntu 18.04. We’ll also show you how to mount an NFS file system on the client. NFS protocol is not encrypted by default and unlike Samba , it does not…

Read article
Get in Touch

Together, Let’s Build a Faster, Safer Internet.

Build scalable infrastructure with NexonHost — high-performance dedicated servers, VPS hosting, cloud hosting, and DDoS protection across Europe.

Get Started →Contact Us
[email protected]Support 24/7 · Billing 09:00 – 00:00