CentOS6.5 system dual Nic binding configuration details

Source: Internet
Author: User
To bind a CentOS dual-Nic, you can use two NICs to virtualize an ENI (which must be supported by a switch). The aggregated device looks like a separate Ethernet interface device, in general, two NICs have the same IP address, and parallel links are aggregated into a logical link. This document describes in detail how to bind a dual-network card to centos6.4. before proceeding, determine whether the NetworkManager service has been stopped. Otherwise, an error is reported. # ServiceNetworkM CentOS dual Nic binding is to use two NICs to virtualize a single NIC (which must be supported by a switch). The aggregated device looks like a separate Ethernet interface device, in general, two NICs have the same IP address, and parallel links are aggregated into a logical link. This document describes in detail how to bind a dual-network card to centos 6.4.
Determine whether the NetworkManager service has been stopped before the operation. Otherwise, an error is reported.
# Service NetworkManager status
The following figure shows that NetworkManager has been stopped to bind a network:
1. create a ifcfg-bond0 file in the/etc/sysconfig/network-scripts/directory with the following content: DEVICE = bond0 USERCTL = noBOOTPROTO = staticONBOOT = yesIPADDR = 10.0.0.10 # as needed, enter the IP address mask gateway NETMASK = 255.255.255.0GATEWAY = 10.0.0.1TYPE = Ethernet 2. modify the ifcfg-em1 file, as follows: DEVICE = em1ONBOOT = yesBOOTPROTO = noneMASTER = bond0SLAVE = yesUSERCTL = no modify the ifcfg-em2 file as follows: DEVICE = em2ONBOOT = yesBOOTPROTO = noneMASTER = bond0SLAVE = yesUSERCTL = no 3. /etc/modprobe. d/create bonding in the directory. conf file. the file content is as follows: alias bond0 bonding and then restart the network service network restart
4. test
Start terminal on the server and ping the gateway.
Unplug a network cable and check the ping data. after you confirm that there is no problem, connect it to the network cable and unplug another network cable to observe the effect of dual-Nic binding.
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.