1Redhat Linux05-网卡绑定_第1页
1Redhat Linux05-网卡绑定_第2页
1Redhat Linux05-网卡绑定_第3页
1Redhat Linux05-网卡绑定_第4页
1Redhat Linux05-网卡绑定_第5页
已阅读5页,还剩19页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

以太网卡绑定Bonding,6,EthernetChannelBonding,TwoormorephysicalEthernetportsarepartneredtoprovideasinglefault-tolerantpathtothenetworkEthernetPCIeadaptersmaybeembeddedintheCPU-I/OenclosureorbeseparatelyinstalledPCIecardsOnlyteamswithEthernetPCIeadaptersindifferentCPU-I/OenclosuresarelistedasduplexedinthedisplayoutputbytheftsmaintlscommandandhaveasteadywhitePCIe-slotstatusLED.,2,EthernetChannelBonding(Continued),NetworkdevicenamesarebasedontheirphysicallocationinsystemUsesstandardLinuxchannel-bondinginterfacetopairphysicalinterfacesforredundancyDefaultconfigurationismode1(oneadapterisactive,secondadapterisstand-by)withDynamicHostConfigurationProtocol(DHCP)enabled,3,MACAddresses,EachphysicaladapterhasitsownMACaddressOnebaseMACaddressisassignedtosystemasawholeMACaddressesforotherdevicesarederivedalgorithmicallyfromthebaseMACaddressWhatMACaddressisusedforabondinterface?InitiallynullTakenfromfirstphysicalinterfaceinbondSetsMACaddressofotherphysicalinterfacesinbond,4,SlotsforEthernetAdapters,1-Slot3,high-profile*,I/O-102-Slot4,high-profile*,I/O-103-Slot1,low-profile,I/O-104-Slot2,low-profile,I/O-10,5-Slot3,high-profile*,I/O-116-Slot4,high-profile*,I/O-117-Slot1,low-profile,I/O-118-Slot2,low-profile,I/O-11,*High-profileslotsarestandardin6400systemsandoptionalin4700systems.,PCIeEthernetadapterscanresideintheslotsshownbelow.,5,EmbeddedEthernetAdapterPorts,Note:BecauseftServersystemconfigurationscanchangedynamically(whenhardwarefailuresoccur,repairsaremade,orwhenanadministratoraddsorremovescomponents),AutomatedUptimeLayerassignspermanentdevicenamestonetworkdevicesaccordingtotheirphysicallocation.,6,OptionalPCIeEthernetAdapterPortNames,7,BondRestrictions,AslaveinterfacecanbeinonlyonebondatatimeNolimitonnumberofslavesperbondBydefault,thesystemsupports10bondinterfacesMorebondinterfacescanbeconfiguredBondsarecalledbondN,whereNisanintegerBondsarenumberedfrom0(bond0,bond1,etc.),8,MonitoringChannelBondInterfaces,#/opt/ft/bin/ftsmaintlsVndVirtualNetworkDevice(VND)Groups=GroupNameStatusInetAddressRXErrorsTXErrorsCollisions-bond0ONLINE03000bond1ONLINE0000bond2ONLINE000bond3ONLINE1000bond4ONLINE000bond5OFFLINE-000bond6OFFLINE-000bond7OFFLINE-000bond8OFFLINE-000bond9OFFLINE-000VNDGroupMembers=MemberGroupNameStatusInterfaceLinkStateLinkSpeed-eth100100bond3DUPLEXUPLINK1000Mb/s-FDeth100101bond4DUPLEXUPLINK1000Mb/s-FDeth100600bond0DUPLEXUPLINK1000Mb/s-FDeth100601bond1DUPLEXUPLINK1000Mb/s-FDeth101200bond2DUPLEXUPLINK10Gb/s-FDeth110100bond3DUPLEXUPLINK1000Mb/s-FDeth110101bond4DUPLEXUPLINK1000Mb/s-FDeth110600bond0DUPLEXUPLINK1000Mb/s-FDeth110601bond1DUPLEXUPLINK1000Mb/s-FDeth111200bond2DUPLEXUPLINK10Gb/s-FD,9,AddingandReconfiguringBonds,Usethe/opt/ft/sbin/ft-bondingtooltobondpairsofEthernetportsUsesonlybondfilesthatalreadyexistin/etc/sysconfig/network-scripts,bydefaultifcfg-bond0andifcfg-bond1.ToaddEthernetportstootherbonds,createanewbondfile:Copyanexistingbondfile(ifcfg-bond0)toanotherfile.Thebondingtoolcreatesbondsthatoperateinactive-backupmode(mode1)withDHCPenabled.Editthebondfiletochangethesesettings.,10,Usingopt/ft/sbin/ft-bonding,Subcommandsforthe/opt/ft/sbin/ft-bondingtoolinclude:/opt/ft/sbin/ft-bondinglistListseachbondanditsEthernetports./opt/ft/sbin/ft-bondingnoneRemovesallEthernetbonds/opt/ft/sbin/ft-bondingsingleAddsallEthernetportstoasinglebond.,11,opt/ft/sbin/ft-bonding(Continued),/opt/ft/sbin/ft-bondingpairedCreatesadefaultsetofEthernetbonds,bindingpairsofEthernetportsaccordingtoadefaultconfiguration.Thedefaultconfigurationpairsportssothatabondcontainsoneportfromeachenclosure.IfanEthernetadapterisinstalledinonlyoneenclosure(noadapterisinstalledinitsmatchingslotintheotherenclosure),theseportsareleftunbonded./opt/ft/sbin/ft-bondingconfigStartsaninteractivesession,promptingyoutosupplythenameofthebondandtheportsthatshouldbemembersofthebond.,12,opt/ft/sbin/ft-bonding(Continued),Whenyoutypethe/opt/ft/sbin/ft-bondingnone,/opt/ft/sbin/ft-bondingsingle,/opt/ft/sbin/ft-bondingpairedcommands,orcompletetheinteractiveconfigurationsteps,thechangestotheconfigurationfilearemadeimmediately.Youcanundothechangesbytypinganothercommand,suchas/opt/ft/sbin/ft-bondingnone.Typedoneatanyprompttoexitfromthetool.Toactivatechanges,use/etc/init.d/networkstoptostopnetworkinterfaces.Usermmodandmodprobetounloadandreloadthebondingmodule.Startnetworkinterfaceswiththe/etc/init.d/networkstartcommand.,13,StepstoCreateaNewChannel-BondingInterface,Createanewchannel-bondinginterfacebyaddingtwoEthernetPCIeadapters(inthesameslotsintwodifferentCPU-I/Oenclosures)andfollowingthesesteps:Determinetheinterfacedevicenames.Createanewbondfile(forexample,ifcfg-bond2)inthe/etc/sysconfig/network-scriptsdirectory.Inthesamedirectory,createtwonewphysicalinterfaceconfigurationfilesforthetwonewphysicalinterfaces(forexample,ifcfg-eth100201andifcfg-eth110201).Bringupthenewinterface.,14,Step1DetermineInterfaceDeviceNames,AfteraddingthetwoPCIeEthernetadapters,orifyouarebondingtheembedded10GbEEthernetadapters,determinetheinterfacedevicenamesoftheportstobebonded:Seepage6-6forthenamesontheportsonembeddedadapters.Seepage6-7forthenamesofportsonoptionalPCIeadapters.Important:DonotconfigureabondfortwodevicesinthesameCPU-IOenclosure.Ifthatenclosureshouldfail,bothdeviceswouldbeinoperable.,15,Step2CreateaNewBondConfigurationFile,Createanewbondconfigurationfile:Copyanexisting/etc/sysconfig/network-scripts/ifcfg-bondnfileRenamethenewfile(forexample,ifcfg-bond2)Editthecontentsofifcfg-bond2tolooklikeoneofthefollowing:,ForStaticIP:DEVICE=bond2ONBOOT=yesBOOTPROTO=noneIPADDR=52NETMASK=USERCTL=noGATEWAY=*,ForDHCP:DEVICE=bond2ONBOOT=yesBOOTPROTO=dhcpUSERCTL=no,*TheGATEWAYentrymayonlybeinonebondfileinasystem.,16,Step3CreateaPhysicalInterfaceConfigurationFile,ForeachphysicalEthernetportyouareadding,createaphysicalinterfaceconfigurationfile.Maketwocopiesofanexistingconfigurationfile(etc/sysconfig/network-scripts/ifcfg-eth1xxxxx)Nameonecopyusingthenameofonephysicalinterface(forexampleifcfg-eth101200)Editthecontentsofthefiletolooklikethefollowing:DEVICE=eth101200MASTER=bond2ONBOOT=noSLAVE=yesTYPE=EthernetBesuretosetDEVICE=tothedevicenameoftheport.,17,Step3(Continued),Nametheothercopyusingthenameofthesecondphysicalinterface(ifcfg-eth111200)Editthefilecontentstolooklikethefollowing:DEVICE=eth111200MASTER=bond2ONBOOT=noSLAVE=yesTYPE=EthernetBesuretosetDEVICE=tothedevicenameofthesecondport.,18,Step4BringUpNewInterface,Verifythecontentsoftheifcfg-bondnandifcfg-eth*filesyoucreated,thentypeacommandsimilartothefollowingtobringupeachnewinterface:#ifupbond2Donotusesystem-config-networktoconfigurethechannel-bondinterface.,19,ConfiguringDNSResolution,Edit/etc/resolv.conf#cat/etc/resolv.conf;generatedby/sbin/dhclient-nameservernameserver4,20,UsingifconfigtoViewNetworkConfiguration,#ifconfig-a.bond0Linkencap:EthernetHWaddr00:25:5C:A6:A2:6Cinetaddr:6Bcast:55Mask:inet6addr:fe80:225:5cff:fea6:a26c/64Scope:LinkUPBROADCASTRUNNINGMASTERMULTICASTMTU:1500Metric:1RXpackets:5126205errors:0dropped:0overruns:0frame:0TXpackets:10266errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:0RXbytes:336387354(320.8MiB)TXbytes:1356012(1.2MiB)bond1Linkencap:EthernetHWaddr00:25:5C:A6:A2:6Dinetaddr:7Bcast:55Mask:inet6addr:fe80:225:5cff:fea6:a26d/64Scope:LinkUPBROADCASTRUNNINGMASTERMULTICASTMTU:1500Metric:1RXpackets:5119661errors:0dropped:0overruns:0frame:0TXpackets:39errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:0RXbytes:335773733(320.2MiB)TXbytes:5221(5.0KiB),21,UsingifconfigtoViewNetworkConfiguration(Continued),.eth100600Linkencap:EthernetHWaddr00:16:97:E2:02:60UPBROADCASTRUNNINGSLAVEMULTICASTMTU:1500Metric:1RXpackets:5348116errors:0dropped:0o

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论