欢迎来到天天文库
浏览记录
ID:38755825
大小:163.50 KB
页数:50页
时间:2019-06-18
《详解Suse双网卡绑定步骤》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、·suse-9-SuseLinux下双网卡bondingSuseLinux下双网卡bondingLinux双网卡绑定实现就是使用两块网卡虚拟成为一块网卡,这个聚合起来的设备看起来是一个单独的以太网接口设备,通俗点讲就是两块网卡具有相同的IP地址而并行链接聚合成一个逻辑链路工作。其实这项技术在Sun和Cisco中早已存在,被称为Trunking和Etherchannel技术,在Linux的2.4.x的内核中也采用这这种技术,被称为bonding.bonding驱动最早来自于DonaldBecker的beowulf对kernel2.0的补丁.但是已经有了很大的改进和变化,最早来自于ext
2、reme-linux和beowulf的工具已经不适用于现在版本的驱动了。随着bonding技术的发展,bonding现在已经发展到6种模式,不再是简单的链路聚合模式了.以下是bonding的六种模式介绍,目前主要应用的是前四种模式,尤其是第一种和第二种bonding模式mode=0(balance-rr)Round-robinpolicy:Transmitpacketsinsequentialorderfromthefirstavailableslavethroughthelast.Thismodeprovidesloadbalancingandfaulttolerance.mode
3、=1(active-backup)Active-backuppolicy:Onlyoneslaveinthebondisactive.Adifferentslavebecomesactiveif,andonlyif,theactiveslavefails.Thebond'sMACaddressisexternallyvisibleononlyoneport(networkadapter)toavoidconfusingtheswitch.Thismodeprovidesfaulttolerance.Theprimaryoptionaffectsthebehaviorofthismod
4、e.mode=2(balance-xor)XORpolicy:Transmitbasedon[(sourceMACaddressXOR'dwithdestinationMACaddress)moduloslavecount].ThisselectsthesameslaveforeachdestinationMACaddress.Thismodeprovidesloadbalancingandfaulttolerance.mode=3(broadcast)Broadcastpolicy:transmitseverythingonallslaveinterfaces.Thismodepr
5、ovidesfaulttolerance.mode=4(802.3ad)IEEE802.3adDynamiclinkaggregation.Createsaggregationgroupsthatsharethesamespeedandduplexsettings.Utilizesallslavesintheactiveaggregatoraccordingtothe802.3adspecification. Pre-requisites: 1.Ethtoolsupportinthebasedriversforretrievingthespeedandduplexofeachslav
6、e. 2.AswitchthatsupportsIEEE802.3adDynamiclink aggregation. Mostswitcheswillrequiresometypeofconfiguration toenable802.3admode.mode=5(balance-tlb)Adaptivetransmitloadbalancing:channelbondingthatdoesnotrequireanyspecialswitchsupport.Theoutgoingtrafficisdistributedaccordingtothecurrentload(comput
7、edrelativetothespeed)oneachslave.Incomingtrafficisreceivedbythecurrentslave.Ifthereceivingslavefails,anotherslavetakesovertheMACaddressofthefailedreceivingslave. Prerequisite: Ethtoolsupportinthebasedriversforretrievingthe speedof
此文档下载收益归作者所有