NIC Bindings under Linux

Source: Internet
Author: User

The function of NIC binding: 1, redundancy, prevent single point of failure

2. Prevent transmission bottlenecks

1. Switch Port bindings:

1 system-view2 link-aggregation Group 1 mode manual34  For example, to bind ports 1 and 2 56 interface ethernet1/0/1                  # Enter switch 1 port 7 Port Link-aggregation Group 1        # joins the current port into the aggregation Group 18 interface ETHERNET1/0/2                  #  Enter switch 2 port 9 Port link-aggregation Group 1        

2. System NIC Binding

1. Set Boundingvi/etc/modules.conf#Add the following contentalias bond0 bondingoptions bonding mode=1 miimon=200 primary=eth2 use_carrier=12. Load bonding module Modprobe bonding3. Create/Modify bond0 eth0 eth1 configuration file VI/et/sysconfig/network-ifcfg-"NIC name" DEVICE=' bond0 ' Bootproto=' static ' broadcast=' x.x.x.x ' ipaddr=' x.x.x.x ' DEVICE=Eth0bootproto=' static ' STARTMODE=' Onboot ' DEVICE=Eth1bootproto=' static ' STARTMODE=' Onboot '4. Restart all NICs rcnetwork restart5. Binding eth0 eth1 to Bond0ifenslave bond0 eth0ifenslave bond0 eth16Auto-load settings after reboot:/etc/init.d/Add bonding startup file VI/etc/init.d/bonding#Add the following statementCase " $”inchstart)/sbin/ifenslave bond0 eth0/sbin/Ifenslave bond0 eth1; *);; Esac7. Add the script that loads the bonding module to the startup script VI/etc/init.d/Boot.localmodprobe Bonding

NIC Bindings under Linux

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.