Enable multi-nic load balancing in Ubuntu

Source: Internet
Author: User
In fact, I cannot use such a powerful configuration in my own house. However, since the motherboard comes with two r8168 NICs, It is idle and I just need to configure it. Configuring complex multi-nic Server Load balancer in Windows is very simple in Linux. First, install ifenslave. In Ubuntu, run the following command: sudoapt-getinstallifenslave and modify the/etc/modprobe. d/arch/file. If it is a 32-bit system, it is i38.

In fact, I cannot use such a powerful configuration in my own house. However, since the motherboard comes with two r8168 NICs, It is idle and I just need to configure it.

Configuring complex multi-nic Server Load balancer in Windows is very simple in Linux.

The first step is to install ifenslave, which is a command under Ubuntu:

Sudo apt-get install ifenslave

Then modify the/etc/modprobe. d/arch/file. If it is a 32-bit system, it is i386. If it is a 64-bit Intel System, it is x86_64.

Add the following content:

Alias bond0 bonding
Options bond0 mode = balance-alb miimon = 100 max_bonds = 2

Finally, modify/etc/network/interfaces, comment out the original eth0 and eth1 configurations, and add the following content:

Auto bond0
Iface bond0 inet static
Address 192.168.1.3
Netmask 255.255.255.0
Gateway 192.168.1.1
Up/sbin/ifenslave bond0 eth0 eth1
Down/sbin/ifenslave-d bond0 eht0 eth1

OK. Restart to enable the NIC Server Load balancer function. That's easy.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.