Privacy settings
Decide which cookies you want to allow.You can change these settings at any time. However, this can result in some functions no longer being available. For information on deleting the cookies, please consult your browser’s help function.Learn more about the cookies we use.
With the slider, you can enable or disable different types of cookies:
This website will
- Remember which cookies group you accepted
This website won't
- Remember your login details
- Essential: Remember your cookie permission setting
- Essential: Allow session cookies
- Essential: Gather information you input into a contact forms newsletter and other forms across all pages
- Essential: Keep track of what you input in a shopping cart
- Essential: Authenticate that you are logged into your user account
- Essential: Remember language version you selected
- Functionality: Remember social media settings
- Functionality: Remember selected region and country
- Analytics: Keep track of your visited pages and interaction taken
- Analytics: Keep track about your location and region based on your IP number
- Analytics: Keep track of the time spent on each page
- Analytics: Increase the data quality of the statistics functions
- Advertising: Tailor information and advertising to your interests based on e.g. the content you have visited before. (Currently we do not use targeting or targeting cookies.
- Advertising: Gather personally identifiable information such as name and location
This website will
- Essential: Remember your cookie permission setting
- Essential: Allow session cookies
- Essential: Gather information you input into a contact forms newsletter and other forms across all pages
- Essential: Keep track of what you input in a shopping cart
- Essential: Authenticate that you are logged into your user account
- Essential: Remember language version you selected
This website won't
- Remember your login details
- Functionality: Remember social media settings
- Functionality: Remember selected region and country
- Analytics: Keep track of your visited pages and interaction taken
- Analytics: Keep track about your location and region based on your IP number
- Analytics: Keep track of the time spent on each page
- Analytics: Increase the data quality of the statistics functions
- Advertising: Tailor information and advertising to your interests based on e.g. the content you have visited before. (Currently we do not use targeting or targeting cookies.
- Advertising: Gather personally identifiable information such as name and location
This website will
- Essential: Remember your cookie permission setting
- Essential: Allow session cookies
- Essential: Gather information you input into a contact forms newsletter and other forms across all pages
- Essential: Keep track of what you input in a shopping cart
- Essential: Authenticate that you are logged into your user account
- Essential: Remember language version you selected
- Functionality: Remember social media settings
- Functionality: Remember selected region and country
This website won't
- Remember your login details
- Analytics: Keep track of your visited pages and interaction taken
- Analytics: Keep track about your location and region based on your IP number
- Analytics: Keep track of the time spent on each page
- Analytics: Increase the data quality of the statistics functions
- Advertising: Tailor information and advertising to your interests based on e.g. the content you have visited before. (Currently we do not use targeting or targeting cookies.
- Advertising: Gather personally identifiable information such as name and location
This website will
- Essential: Remember your cookie permission setting
- Essential: Allow session cookies
- Essential: Gather information you input into a contact forms newsletter and other forms across all pages
- Essential: Keep track of what you input in a shopping cart
- Essential: Authenticate that you are logged into your user account
- Essential: Remember language version you selected
- Functionality: Remember social media settings
- Functionality: Remember selected region and country
- Analytics: Keep track of your visited pages and interaction taken
- Analytics: Keep track about your location and region based on your IP number
- Analytics: Keep track of the time spent on each page
- Analytics: Increase the data quality of the statistics functions
This website won't
- Remember your login details
- Advertising: Tailor information and advertising to your interests based on e.g. the content you have visited before. (Currently we do not use targeting or targeting cookies.
- Advertising: Gather personally identifiable information such as name and location
This website will
- Essential: Remember your cookie permission setting
- Essential: Allow session cookies
- Essential: Gather information you input into a contact forms newsletter and other forms across all pages
- Essential: Keep track of what you input in a shopping cart
- Essential: Authenticate that you are logged into your user account
- Essential: Remember language version you selected
- Functionality: Remember social media settings
- Functionality: Remember selected region and country
- Analytics: Keep track of your visited pages and interaction taken
- Analytics: Keep track about your location and region based on your IP number
- Analytics: Keep track of the time spent on each page
- Analytics: Increase the data quality of the statistics functions
- Advertising: Tailor information and advertising to your interests based on e.g. the content you have visited before. (Currently we do not use targeting or targeting cookies.
- Advertising: Gather personally identifiable information such as name and location
This website won't
- Remember your login details
goudeuk says
Hello
Could you please let me know which file do I need to edit in Step 5?
Also where in the file (step5) are the two physical interfaces defined?
Many thanks
Ahmet Bas says
You should be able to find the Netplan yaml configuration file in this folder "/etc/netplan/". Yes, there are two physical interfaces required for creating a bond.
Michael Cooper says
Very nice article I understand the over all concept now just need one thing addressed.
Where are the nics defined in the netplan config file?
You have the following:
################
network:
version: 2
ethernets:
eports:
match:
name: enp*
optional: true
bonds:
bond0:
interfaces: [eports]
addresses: [78.41.207.45/24]
gateway4: 78.41.207.1
nameservers:
addresses: [89.207.128.252, 89.207.130.252]
parameters:
mode: 802.3ad
lacp-rate: fast
mii-monitor-interval: 100
############################
I am assuming enp2s0 goes under network -> ethernets->eports->name does it actually use a wildcard character?
Where does enp3s0 get defined in this config?
I see you have eports defined and referenced but where des the second nic get defined?
Not trying to be a jerk just need a little clarification, Thanks for all your hard work.
Ahmet Bas says
We are using a wilcard:
>name: enp*
The ports are defined here:
>interfaces: [eports]
Madan says
I tried the above steps however it is not working for me.
When I see the bonding status it is working fine for me(cat /proc/net/bonding/bond0)
However, after reboot it is not working for me and I am unable to connect to the server.
Ahmet Bas says
Is the bonding module loaded after a reboot?
Madan says
Hi Ahmet,
Thanks for your update.
How can I check/load the bonding module?
Ahmet Bas says
You can check it with those commands:
sudo lsmod | grep 8021q
Madan says
Hi Ahmed,
Thanks for your response.
Yes, I have loaded the bonding modules after the reboot. However, When I manually unplug the primary ethernet connection(eX:enp0s3) I am unable to connect/ping the server. If I unplug another ethernet connection manually it is working fine for me. Kindly once see the below file and let me know if it requires any modifications.
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
# eth0 is manually configured, and slave to the "bond0" bonded NIC
auto enp0s3
iface enp0s3 inet manual
bond-master bond0
bond-primary enp0s3
# eth1 ditto, thus creating a 2-link bond.
auto enp0s8
iface enp0s8 inet manual
bond-master bond0
# bond0 is the bonding NIC and can be used like any other normal NIC.
# bond0 is configured using static network information.
auto bond0
iface bond0 inet static
address 192.168.0.7
gateway 192.168.0.1
netmask 255.255.255.0
bond-mode 1
bond-miimon 100
bond-slaves none
# bond-lacp-rate 1
# bond-slaves enp0s3 enp0s8
Ahmet Bas says
Is this a configuration with netplay does not seems like a yaml configuration. Did you check our Ubuntu 16.04 knowledge base article https://www.snel.com/support/how-to-setup-lacp-bonding-on-ubuntu-16-04/ ?
Madan says
Hi Ahmad,
Above configuration, I did in the oracle virtual VM.
kindly let me know, If I restart the server multiple times with bonding changes, will it be an effect on the bonding?
Please correct me if I am wrong, I think due to the network cache I am getting the different results of bonding after every immediate restart.
Manfred says
There is a typo in eports – should be exports.
Thanks for the blog article 🙂
Ahmet Bas says
Do you mean the eports in the netplan configuration?
darkfader says
why does one need to reboot?
what is the point of this daemon if we need to reboot to activate or test something that could be configured on the fly more than a decade before the daemon was designed?
Ahmet Bas says
Rebooting the server is not necessary but in our article, we do this. Just to be sure that everything is working after a reboot.
DEEPAK RAJPUT says
HOW TO ADD BONDING COMMAND IN KERNEL MODULE
Ahmet Bas says
Did you follow step 2 & 3, that should be enough to load the kernel modules.
Syed Tayyab Asghar says
Hi,
Why partner/actor churn stats showed churned any one can tell me ? due to that port-channel at switch showing down.
Yavuz Aydin says
Make sure the switch is configured correctly and that the cabling is correct.