Linux NIC Bindings

Source: Internet
Author: User

1 What is NIC binding

Bind multiple network cards to the same IP address to provide services to the outside, can achieve high availability or load balancing. It is not possible to set the same IP address directly for two NICs. Through bonding, a virtual one network card to provide external connection, the physical network card is modified to the same MAC address

2 NIC Binding classification

There are seven modes for dual NIC bindings under Linux operating system. Now the general enterprise will use dual-card access, so that both the network bandwidth can be added, while the corresponding redundancy can be said to be a lot of benefits. And the general enterprise will use the Linux operating system comes with the network card binding mode, of course, now the network card manufacturers will also be some for the Windows operating system network card management software to do network card binding (Windows operating system does not have a network card binding feature requires third-party support). To get to the point, Linux has seven types of NIC binding mode: 0. Round robin,1.active-backup,2.load Balancing (XOR), 3.fault-tolerance (broadcast), 4.LACP, 5.transmit load balancing, 6. Adaptive load Balancing

3 Setting up NIC Bindings

(1)

#创建bond0配置文件 vim/etc/sysconfig/network-scripts/ifcfg-bond0  #bond0文件内容DEVICE=bond0ipaddr= 172.18. 254.252

Prefix=16
bonding_opts="minmon=0 mode=0" #mode后边跟对应的绑定模式

(2) Create a bond profile corresponding to two network cards respectively

Device= "eth0"    #文件名网卡名DEVICE值保持相同, remaining unchanged master=bond0slave=yes

(3) Restart Network Service

Service Network restart

(4) Edit the boot script to bind the eth0 and eth1 NIC

Complete the configuration.

Linux NIC Bindings

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.