SLES Suse Linux 11SP4 dual NIC binding bonding implementation

Source: Internet
Author: User

1. Create the Bond0 file:

#vim/etc/sysconfig/network/ifcfg-Bond0bootproto='Static'Broadcast="'ipaddr='192.168.74.141/24'NETMASK='255.255.255.0'NETWORK="'STARTMODE='Auto'Bonding_master='Yes'Bonding_slave0='eth0'bonding_slave1='eth1'bonding_module_opts='mode=1 miimon=100 fail_over_mac=1'ethtool_options="'MTU="'NAME="'remote_ipaddr="'USERCONTROL='No'

Explanation of Interpretation:
Mode 0 is expressed as load balancing mode, both NICs work (requires switch port aggregation, test failed on SLEs 12SP3 with this mode)
Mode 1 means redundancy, piece of work, piece of redundancy
Miimon indicates the system check interval time, in MS,
Fail_over_mac=1 is used when testing in VMware, otherwise the ping will be disconnected

For example: Every 100ms check once, when found a line is not through, then into another

2. Modify the NIC configuration:

#vim/etc/sysconfig/network/ifcfg-Eth0bootproto='None'#配置bond时必需将static, DHCP changed to Nonebroadcast="'ethtool_options="'ipaddr="'#配置bond时必需将IP置空MTU="'NAME='82545EM Gigabit Ethernet Controller (Copper)'NETWORK="'remote_ipaddr="'STARTMODE='off'#配置bond时必需将auto改为offUSERCONTROL='No'#vim/etc/sysconfig/network/ifcfg-Eth1bootproto='None'#配置bond时必需将static, DHCP changed to Nonebroadcast="'ethtool_options="'ipaddr="'#配置bond时必需将IP置空MTU="'NAME='82545EM Gigabit Ethernet Controller (Copper)'NETWORK="'remote_ipaddr="'STARTMODE='off'#配置bond时必需将auto改为offUSERCONTROL='No'

3. Restart the network service or restart the host operating system

0

4. View status and test

#ifconfig #可以看到bond0已经起来了 #cat/proc/net/bonding/bond0ethernet Channel Bonding driver:v3.7.1(April -, .) Bonding Mode:fault-tolerance (active-backup) (Fail_over_mac Active) Primary slave:nonecurrently Active slave:eth0mii status:upmii Polling Interval (ms): -Up Delay (ms):0Down Delay (ms):0Slave interface:eth0mii status:upspeed: +mbpsduplex:fulllink Failure Count:3Permanent HW Addr:xx: 0c: in: 5f: $: A4slave queue ID:0Slave interface:eth1mii status:upspeed: +mbpsduplex:fulllink Failure Count:3Permanent HW Addr:xx: 0c: in: 5f: $: Aeslave queue ID:0#ifconfig eth0 down#ifconfig eth0 up#ifconfig eth1 down#ifconfig eth1 up

SLES Suse Linux 11SP4 dual NIC binding bonding implementation

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.