RedHat6 configure Nic team

Source: Internet
Author: User
Mode0: Round-robin policy: transmits data packets in sequence, from the first available slave to the last available slave. This mode provides load balancing and fault tolerance mechanisms. Mode1: Active-backup policy: Only one slave is active ). Other slave changes to active only when the active slave fails ). Mode6: balance-tlb mode, coupled with IPV

Mode0: Round-robin policy: transmits data packets in sequence, from the first available slave to the last available slave. This mode provides load balancing and fault tolerance mechanisms.

Mode1: Active-backup policy: Only one slave is active ). Other slave changes to active only when the active slave fails ).

Mode6: balance-tlb mode, coupled with the receive load balance (rlb) for IPV4 traffic, without the support of any switch.
 
1. Create a bound Nic
Vi/etc/syconfig/network-scripts/ifcfg-bound0
 
DEVICE = bond0
BOOTPROTO = no
BROADCAST = 10.0.2.255
IPADDR = 10.0.20.8
NETMASK = 255.255.255.0
NETWORK = 10.0.2.0
ONBOOT = yes
USERCTL = no
GATEWAY = 10.0.2.2
 
 
2. Modify the eth0 configuration of the NIC
Vim/etc/syconfig/network-scripts/ifcfg-eth0
 
DEVICE = eth0
BOOTPROTO = none
MASTER = bond0
SLAVE = yes
ONBOOT = yes
 
3. Modify the eth1 configuration of the NIC
Vim/etc/syconfig/network-scripts/ifcfg-eth1
 
DEVICE = eth1
BOOTPROTO = none
MASTER = bond0
SLAVE = yes
ONBOOT = yes
 
4. Create modprobe. conf. RedHat6 is different from 5. There is no/etc/modprobe. conf file.
Vim/etc/modprobe. d/net-bound0.conf
 
Alias bond0 bonding
Options bond0 miimon = 100 mode = 6
 
5. Restart the network service.
Service network restart

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.