Linux about host server dual NIC bond configuration

Source: Internet
Author: User

The actual project implementation, a host has two network cards, to achieve double-connected. At this time need to the host's two network card to do bond configuration, virtual for a network card, the main way to work to ensure that the system is highly available.

First, the configuration requirements of Bond  

the bundled two NIC chip models must be the same and have separate BIOS Chip.

Second, the bond configuration process

Take the eth0 and eth1 two NIC to do the bond configuration as an example, the operation step description. The following actions are performed under the root user.

1. Create the virtual network interface configuration file /etc/sysconfig/network-scripts/ifcfg-bond0, as follows:

device=bond0

Bootproto=none

Type=ethernet

Onboot=yes

Ipaddr=192.168.31.100

netmask=255.255.255.0

gateway=192.168.31.1

Note: The red part is the system IP address and gateway address, you need to modify according to the actual deployment.

2. edit The ifcfg-eth0 NIC configuration file

To execute the command vi/etc/sysconfig/network-scripts/ifcfg-eth0, modify the eth0 NIC configuration file with the following format:

Device=eth0

Userctl=no

Onboot=yes

Master=bond0

Slave=yes

Bootproto=none

3. Edit the ifcfg-eth1 NIC configuration file

To execute the command vi/etc/sysconfig/network-scripts/ifcfg-eth1, modify the eth1 NIC configuration file with the following format:


Device=eth1

Userctl=no

Onboot=yes

Master=bond0

Slave=yes

Bootproto=none

4. Modify the configuration file /etc/modprobe.conf

Add the following in the configuration file:

Installbond0/sbin/modprobe-a eth0 eth1 &&/sbin/modprobe Bonding

Optionsbonding mode=1 miimon=100


5. Modify the configuration file /etc/rc.d/rc.local

Add the following in the configuration file:

Ifenslavebond0 eth0 eth1

6. Execute the/etc/init.d/network restart command and restart the network for the configuration to take effect

7. Check if the configuration is successful

Log in to the system as the root user, execute command ifconfig, check the network card information whether there is a bond0 nic,eth0 and eth1 status is normal, eth0,eth1,bond0 whether the same IP address is used .

Summary: After the dual network adapter is bound, be sure to check whether the switch connected by the dual network adapter has been aggregated, if not do the aggregation can not be successful.




This article is from the "11411277" blog, please be sure to keep this source http://11421277.blog.51cto.com/11411277/1932715

Linux about host server dual NIC bond configuration

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.