Anda di halaman 1dari 3

18/3/2015

ConfiguringanLACPbondedInterfacewithCiscoswitches

ConfiguringanLACPbondedInterfacewithCiscoswitches
XenServerv6.1hasannounc ednativesupportforLACP.Itisrec ommendedtoupgradetov6.1in
ordertogainproperandsupporteduseofLACPNICbonding.

Thebelowinformationwasbasedonuser/c ommunityfeedbac k,andmaynotbeappropriateforyour


partic ularenvironment.
ThedefaultbondingmodeforCitrixXenServer5.5/5.6is"1",orac tivebac kup(slb).Thismodeonly
providesfaulttoleranc e,sinc eonlyoneNICinthebondisac tiveatatime.Formoreheavilyutilized
produc tionsystems,anac tiveac tivec onfigurationispreferable.Thetwobondingmodesthat
providefullsend/rec eivebalanc ingac rossallNICsare4(802.3ad)and6(alb).Mode4provideslink
aggregationac c ordingtothe802.3adspec ific ation,andrequiresanetherc hanneltobec onfiguredon
theswitc h.
Thefollowingisanexampleofhowtoc onfigureanLACP/802.3adbondwithXenServer5.5anda
Cisc o3750switc hrunningIOS.

First,c onfigureyourswitc hportsforanLACPetherc hannel.Note:inthisc ase,wearemakingthe


etherc hannel/Bondatrunkportwhic hwillonlyallowVLANs211.WehavetwoNICsfromour
XenServerthatmakeupthebond0interfac e,pluggedintGi1/0/1andGi2/0/1.

//ConfiguretheEtherChannelfirst
interfac ePortc hannel1
desc riptionEtherc hannelTeamforXenServer1
switc hporttrunkenc apsulationdot1q
switc hporttrunknativevlan2
switc hporttrunkallowedvlan211
switc hportmodetrunk
spanningtreeportfast
spanningtreebpduguardenable
!
//nowc onfiguretheindividualswitc hports
interfac eGigabitEthernet1/0/1
desc riptionXenServer1eth0
switc hporttrunkenc apsulationdot1q
switc hporttrunknativevlan2
switc hporttrunkallowedvlan211
switc hportmodetrunk
speed1000
duplexfull
c hannelprotoc ollac p
c hannelgroup2modeac tive
!
interfac eGigabitEthernet2/0/1
desc riptionXenServer1eth1
switc hporttrunkenc apsulationdot1q
switc hporttrunknativevlan2
http://www.quorumsoft.com/kb/index.php/article/printer/lacpbond

1/3

18/3/2015

ConfiguringanLACPbondedInterfacewithCiscoswitches

switc hporttrunkallowedvlan211
switc hportmodetrunk
speed1000
duplexfull
c hannelprotoc ollac p
c hannelgroup2modeac tive
!
//nowmakesurethingsarec onfiguredproperly:
showetherc hannel2summary
//thisshouldoutputsomethinglikethefollowing:
...
Numberofc hannelgroupsinuse:4
Numberofaggregators:4
GroupPortc hannelProtoc olPorts
+++
2Po2(SU)LACPGi1/0/1(P)Gi2/0/1(P)
//Note,youmayseethetwonic sin(I)insteadof(P)untilyouc onfigureandrebootyour
XenServer

Now,makethefollowingc hangestoyourXenServerhost.
1.CreateaBondedinterfac efromXenCenter.Selec tyourserver,thentheNICstabandc hoose
'CreateBond'.AddthePIFsyouwant
2.TheCitrixrec ommendedoption.Runthefollowingc ommandontheXenServerhostc onsole.
MakesuretousetheUUIDoftheBondedinterfac e.
xepifparamsetuuid=otherc onfig:bondmode=802.3ad
(note:tofindyourPIF'suuid:xepiflisthostuuid=)
(note:tofindyourHost'suuid:xehostlist)

2a.Someofourusershavereportedproblemsgettingtheoffic alrec ommendationworking,and


suggestedanalternatemethod:
OntheXenServerhost,editthefollowingfile:
/opt/xensourc e/libexec /interfac erec onfigure
findthefollowingline:
"mode":"balanc eslb",
andreplac eitwith
"mode":"802.3ad",
ThensaveandrestarttheXenServer.Thiswillc hangethedefaultbondingmethodforallXenbonds
to"802.3ad".

3.Tomakesurethingsareworkingasexpec ted,run(replac eXwithyourbondnumber):


c at/proc /net/bonding/bondX
Youshouldseesomethingsimilartothis:
http://www.quorumsoft.com/kb/index.php/article/printer/lacpbond

2/3

18/3/2015

ConfiguringanLACPbondedInterfacewithCiscoswitches

EthernetChannelBondingDriver:v3.1.2(January20,2007)
BondingMode:IEEE802.3adDynamic linkaggregation
TransmitHashPolic y:layer2(0)
MIIStatus:up
MIIPollingInterval(ms):100
UpDelay(ms):31000
DownDelay(ms):200
802.3adinfo
LACPrate:slow
Ac tiveAggregatorInfo:
AggregatorID:1
Numberofports:2
Ac torKey:17
PartnerKey:2
PartnerMac Address:
SlaveInterfac e:eth0
MIIStatus:up
LinkFailureCount:0
PermanentHWaddr:
AggregatorID:1
SlaveInterfac e:eth1
MIIStatus:up
LinkFailureCount:0
PermanentHWaddr:
AggregatorID:1

4.Testandverify.Atthispoint,yournewteamshouldbeupandfunc tional.
Youc anviewthisartic leonlineat:
http://www.quorumsoft.c om/kb/index.php/artic le/lac pbond

http://www.quorumsoft.com/kb/index.php/article/printer/lacpbond

3/3

Anda mungkin juga menyukai