Centos 6.4 dual Nic binding Configuration

Source: Internet
Author: User

To bind a Linux 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 centos 6.4.
Determine whether the NetworkManager service has been stopped before the operation. Otherwise, an error is reported.
# Service NetworkManager status
The NetworkManager is stopped.
Binding operation:
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 # enter the IP Address Mask gateway to bind as needed.
NETMASK = 255.255.255.0GATEWAY = 10.0.0.1TYPE = Ethernet2. 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 = no3./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.