Linux system to do dual NIC binding

Source: Internet
Author: User

Linux system dual NIC binding:



Be sure to back up the configuration file before you do a dual NIC binding!



Linux system NIC configuration file location:
Cd/etc/sysconfig/network-scripts



CP Ifcfg-eth0 IFCFG-BOND0


For example, we need to bind the NIC is ifcfg-eth0 corresponding eth0
Ifcfg-eth1 corresponds to eth1 these two network cards!



#vi ifcfg-bond0


There are four places to change:
1. Device Name:
Device=bond0


2, configure IP address, mask, gateway and other information:
ipaddr=1.1.1.1
netmask=255.255.255.0
gateway=1.1.1.254


3, modify the Onboot=yes
Bootproto=none


4. Remove UUID, HWADDR






#vi ifcfg-eth1

#viifcfg-eth0



1. Remove UUID, HWADDR
2. Add
Master=bond0
Slave=yes



Edit /etc/modprobe.d/dist.conf


at the bottom of the file, add the following 2 Line

Alias Bond0 Bonding

Options Bond0 miimon=100 mode=1



mode=0 represents load Balancing (round-robin) for load balancing, both NICs work.

mode=1 represents fault-tolerance (active-backup) provides redundancy, working in a way that the primary and standby work , This means that by default only one NIC works , another piece to do backup .


This article from "Maya" blog, declined reprint!

Linux system to do dual NIC binding

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.