[email protected]Office hours: Mon – Fri 9:00AM – 5:00PMLinkedInXFacebook
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 startedJuly 24, 2023

How to set up LACP bonding with Netplan

How to set up LACP bonding with Netplan

Step 1 – Login using SSH

Step 2 – Install the ifenslave dependency

  • sudo apt-get install ifenslave

Step 3: Load bonding kernel module

Before you can configure the network cards you need to ensure that the kernel module called bonding is present and loaded.

  • sudo lsmod | grep bonding

If the module is not loaded. Use the following command to load it

  • sudo modprobe bonding

To ensure that the bonding module is loaded during boot time change file the following file

  • sudo nano /etc/modules

Add the following line:

  • bonding

Step 4 – find the active network interface

  • clear && echo $(ip -o -4 route get 8.8.8.8 | sed -nr ‘s/.*dev ([^\ ]+).*/\1/p’)

Step 5 – Configure the network interface

The output of step 4 is the network interface which is active at the moment. You should use that name for the bond. In our case this is eno1 and the second interface eno2

  • # This is the network config written by ‘subiquity’
  • network:
  • bonds:
  • bond0:
  • addresses:
  • – 89.47.232.155/27
  • gateway4: XX.XX.XX.XX
  • interfaces:
  • – eno1
  • – eno2
  • nameservers:
  • addresses:
  • – 8.8.8.8
  • search: []
  • parameters:
  • lacp-rate: fast
  • mode: 802.3ad
  • transmit-hash-policy: layer3+4
  • mii-monitor-interval: 100
  • ethernets:
  • eno1: {}
  • eno2: {}
  • version: 2

Apply the changes

  • sudo netplan apply

Step 6 – Reboot

  • reboot
Keep reading
How to Implement Network Segmentation and Resource Isolation in Linux.
February 6, 2024

How to Implement Network Segmentation and Resource Isolation in Linux.

How to Implement Network Segmentation and Resource Isolation in Linux. Securing and managing networks in a Linux environment involves advanced practices like network segmentation and resource isolation. This guide explores these concepts, providing detailed instructions and examples for…

Read article
How to open or close ports in Linux.
February 6, 2024

How to open or close ports in Linux.

How to open or close ports in Linux. Effectively managing ports on your Linux system is crucial for both security and service accessibility. This comprehensive guide will provide a detailed walkthrough on opening and closing ports using the robust tools iptables and ufw. Understanding these…

Read article
How to use ypdomainname command.
January 23, 2024

How to use ypdomainname command.

How to use ypdomainname command. In the realm of Linux networking, the ypdomainname command plays a crucial role in the context of the Network Information Service (NIS). NIS, formerly known as Yellow Pages, is a distributed database service that facilitates the sharing of network configuration and…

Read article
Get in Touch

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

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

Get Started →Contact Us
[email protected]Office hours: Mon – Fri 9:00AM – 5:00PM