Network bonding is a technique that allows for the aggregation of multiple network interfaces into a single logical interface. This can be useful in cases where you want to connect your computer to another computer, or if you have multiple network adapters in your computer and would like to use them all at once.
Network bonding is a technology that allows multiple network interfaces to share the same physical connection. This can be used to improve throughput and redundancy in networking setups.
The aggregation or combining of several LAN cards into a single bonded interface to achieve high availability and redundancy is known as network bonding. NIC teaming is another name for network bonding.
We’ll go through how to set up network bonding on Ubuntu 14.04 LTS Server in this post. In my situation, I’ll establish a bond interface bond0 with active-passive or active-backup mode using two Lan Cards: eth0 and eth1.
Step 1: Run the command below to install the bonding Kernel module.
# install ifenslave-2.6 using apt-get
Load the kernel module in step two. Add the bonding module at the end of the /etc/modules file.
vi /etc/modules # /etc/modules: kernel modules to load at boot time. root@mail:# vi /etc/modules # /etc/modules: kernel modules to load at boot time. # # This file includes, one per line, the names of kernel modules that should be loaded at startup time. Lines that begin with the letter “#” are disregarded. # After the module name, parameters may be provided. bonding lp rtc
Save and close the file.
Now use the modprobe command to load the module, as seen below:
Step 3: Make changes to the interface configuration file.
# interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback #eth0 is manually setup and slave to the bondo interface $ sudo vi /etc/network/interfaces # interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback #manually setup eth1 and second interface used in bonding(bond0) auto eth1 iface eth1 inet manual bond-master bond0 bond-primary eth0 #bond0 is the bonding NIC and may be used like any other regular NIC. # The static network information is used to setup bond0. 192.168.1.151 gateway 192.168.1.1 netmask 255.255.255.0 dns-nameservers auto bond0 iface bond0 inet bond-mode active-backup 4.2.2.2 100 bond-miimon There are no bond-slaves.
Step 4: Restart the networking service and check the condition of the bond interface.
# Restart the networking service
Use the following command to check the bond interface:
The ifconfig command may also be used to see the bond interface.
Now use the following command to verify the condition of the bond interface:
/proc/net/bonding/bond0 /proc/net/bonding/bond0 /proc/net/bonding/bond
Note: We may do the testing by shutting off one interface and gaining access to the server to check the bond state.
The following are the many network bonding modes:
- round-robin mode for fault tolerance and load balancing (balance-rr or 0).
- active-backup or 1 — Enables fault tolerance in active-backup mode.
- balance-xor or 2 — For fault tolerance and load balancing, sets an XOR (exclusive-or) mode.
- Sets a broadcast mode for fault tolerance. broadcast or 3 — Sets a broadcast mode for fault tolerance. On all slave interfaces, all signals are transmitted.
- Sets the IEEE 802.3ad dynamic link aggregation mode to 802.3ad or 4. Creates aggregation groups with the same speed and duplex settings as each other.
- balance-tlb or 5 — Enables fault tolerance and load balancing using the Transmit Load Balancing (TLB) mode.
- Sets an Active Load Balancing (ALB) mode for fault tolerance and load balancing. balance-alb or 6
The ubuntu bonding netplan is a command-line tool that allows users to configure network bonding in Ubuntu Server.
Frequently Asked Questions
How do I create a bond on Ubuntu Server?
To create a bond on Ubuntu Server, you will need to use the following command.
How do I set up network bonding?
The best way to set up network bonding is to create a static IP address on your computer and then use that address as the primary IP address of your router.
What are the steps to configure network bonding in Linux?
This is not a question.
Related Tags
- ubuntu server create bond wifi
- ubuntu server network connections create bond
- network bonding in linux
- ubuntu 18.04 nic bonding
- ubuntu 20.04 nic bonding