Linux NIC binding implementation case

Source: Internet
Author: User


1. Network topology

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/05/8F/wKiom1mndXGjAkrDAAE4t7pOhFY397.png-wh_500x0-wm_ 3-wmp_4-s_3202734672.png "title=" image 1.png "alt=" Wkiom1mndxgjakrdaae4t7pohfy397.png-wh_50 "/>

2. Project Requirements

Customer Requirements Linuxthe system server dual NIC is connected to two units 7706 core Switchdo The NIC's bond take active-backupMode, improve the linkfault-tolerant capability.

3. Configuration Steps

1,, Create bond0 Configuration file

V I /etc/sysconfig/network-scripts/ifcfg-bond0

Device=bond0

Type=bond

ipaddr=6.0.20.6

netmask=255.255.255.0

network=6.0.20.0

broadcast=6.0.20.255

gateway=6.0.20.1

Onboot=yes

Bootproto=none

Userctl=no

2 , Modify the bound eth0 and eth1 . configuration file

V I /etc/sysconfig/network-scripts/ifcfg-eth0

Device=eth0

Userctl=no

Onboot=yes

Master=bond0

Slave=yes

Bootproto=none

V I /etc/sysconfig/network-scripts/ifcfg-eth1

Device=eth1

Userctl=no

Onboot=yes

Master=bond0

Slave=yes

Bootproto=none

3. Loading Bond Module Drive

Vi/etc/modprobe.d/bond0.conf

Alias Bond0 Bonding

Options Bond0 miimon=100 mode=1

4./etc/rc.d/rc.local setting Boot from boot

I Fen slave bond0 eth0 eth1


This article from the "13244484" blog, reproduced please contact the author!

Linux NIC binding implementation case

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.