Configure Nic server load balancer in Linux

Source: Internet
Author: User
In Linux, configure the Nic server load balancer function-General Linux technology-Linux technology and application information. For more information, see the following. Multi-Nic server load balancer is implemented in Linux. it is very easy to configure complex Nic server load balancer functions in Windows.

Install ifenslave first. if you execute a command under Ubuntu, you can:

Sudo apt-get install ifenslave

Edit the/etc/modprobe. d/arch/file again. 32-bit i386 and 64-bit Intel x86_64.

Add the following two lines:

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

Finally, edit the/etc/network/interfaces file, comment out the 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

Restart and OK. enable the Nic server load balancer function.

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.