资源描述:
《openvswitch的安装与运行》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、HowtoInstallOpenvSwitchonLinuxandFreeBSD================================================ThisdocumentdescribeshowtobuildandinstallOpenvSwitchonagenericLinuxorFreeBSDhost.Forspecificsaroundinstallationonaspecificplatform,pleaseseeoneofthesefiles:-INSTALL.Debian-INSTALL.Fedo
2、ra-INSTALL.RHEL-INSTALL.XenServerBuildRequirements------------------TocompiletheuserspaceprogramsintheOpenvSwitchdistribution,youwillneedthefollowingsoftware:-GNUmake.-TheGNUCcompiler.Wegenerallytestwithversion4.1,4.2,or4.3.-libssl,fromOpenSSL,isoptionalbutrecommendedifyo
3、uplantoconnecttheOpenvSwitchtoanOpenFlowcontroller.libsslisrequiredtoestablishconfidentialityandauthenticityintheconnectionsfromanOpenvSwitchtoanOpenFlowcontroller.Iflibsslisinstalled,thenOpenvSwitchwillautomaticallybuildwithsupportforit.TocompilethekernelmoduleonLinux,yo
4、umustalsoinstallthefollowing.Ifyoucannotbuildorinstallthekernelmodule,youmayusetheuserspace-onlyimplementation,atacostinperformance.Theuserspaceimplementationmayalsolacksomefeatures.RefertoINSTALL.userspaceformoreinformation.-AsupportedLinuxkernelversion.PleaserefertoREAD
5、MEforalistofsupportedversions.TheOpenvSwitchdatapathrequiresbridgingsupport(CONFIG_BRIDGE)tobebuiltasakernelmodule.(ThisiscommoninkernelsprovidedbyLinuxdistributions.)Thebridgemodulemustnotbeloadedorinuse.Ifthebridgemoduleisrunning(checkwith"lsmod
6、grepbridge"),youmustremo
7、veit("rmmodbridge")beforestartingthedatapath.Foroptionalsupportofingresspolicing,youmustenablekernelconfigurationoptionsNET_CLS_BASIC,NET_SCH_INGRESS,andNET_ACT_POLICE,eitherbuilt-inorasmodules.(NET_CLS_POLICEisobsoleteandnotneeded.)IfGREtunnelingisbeinguseditisrecommende
8、dthatthekernelbecompiledwithIPv6support(CONFIG_IPV6).Thisallowsforspecialhandling(suchaspathMTUdiscovery)ofIPv6packets.ToconfigureHTBorHFSCqualityofservicewithOpenvSwitch,youmustenabletherespectiveconfigurationoptions.TouseOpenvSwitchsupportforTAPdevices,youmustenableCONF
9、IG_TUN.-Tobuildakernelmodule,youneedthesameversionofGCCthatwasusedtobuildthatkernel.-Akernelbuil