[{"data":1,"prerenderedAt":471},["ShallowReactive",2],{"blog-\u002Fen\u002Fblog\u002Fvmware-vcenter-vswitch-distribue":3,"blog-\u002Fen\u002Fblog\u002Fvmware-vcenter-vswitch-distribue-surround":415,"blog-\u002Fen\u002Fblog\u002Fvmware-vcenter-vswitch-distribue-certifications":470},{"id":4,"title":5,"body":6,"categories":401,"cover":403,"cover_contain":404,"credly_badge_id":405,"date":406,"description":407,"extension":408,"meta":409,"navigation":404,"path":410,"related_certifications":405,"seo":411,"slug":412,"stem":413,"__hash__":414},"blog\u002Fen\u002Fblog\u002Fvmware-vcenter-vswitch-distribue.md","VMware vCenter: Distributed vSwitch",{"type":7,"value":8,"toc":384},"minimark",[9,14,18,21,24,31,38,43,59,63,66,75,80,84,100,105,108,113,119,124,127,132,138,143,149,153,156,161,171,176,183,188,191,196,199,204,214,219,225,230,238,242,246,260,265,272,277,282,286,298,303,317,322,339,343,354,362,371,380],[10,11,13],"h2",{"id":12},"real-world-use-case","Real-world use case",[15,16,17],"p",{},"You manage several ESXi hosts and want to centralize network configuration: here's how vCenter's distributed vSwitch works.",[10,19,5],{"id":20},"vmware-vcenter-distributed-vswitch",[15,22,23],{},"In a vCenter infrastructure, network management is critical, so it can be worth using distributed virtual switches (dvSwitches). As the name suggests, their role is to distribute the network across all ESXi hosts. So a vSwitch becomes a dvSwitch, and a portgroup becomes dvports. In this case, we'll deploy a single vSwitch distributed across all our hosts, with no VM migration (here's an example):",[15,25,26],{},[27,28],"img",{"alt":29,"src":30},"","\u002Fimages\u002Fblog\u002Fvmware-vcenter-vswitch-distribue\u002F0dd26e2b1f.png",[15,32,33,37],{},[34,35,36],"strong",{},"Info:"," For this article, we're using two ESXi hosts with four network cards each.",[39,40,42],"h3",{"id":41},"discover-for-yourself","Discover for yourself:",[44,45,46,50,53,56],"ol",{},[47,48,49],"li",{},"Prerequisites.",[47,51,52],{},"Configuring a dvSwitch.",[47,54,55],{},"Configuring a dvPort.",[47,57,58],{},"Additional features.",[10,60,62],{"id":61},"prerequisites","Prerequisites",[15,64,65],{},"We'll be working in a cluster running vCenter 5.5, with existing host networking such as:",[67,68,69,72],"ul",{},[47,70,71],{},"A vSwitch0 made up of two portgroups: VMkernel and VMnetwork, with 2 cards (vmnic0 and vmnic2) teamed together.",[47,73,74],{},"A vSwitch1 made up of one portgroup: ISCSI with 2 cards (vmnic1 and vmnic3) already configured with multipathing.",[15,76,77,79],{},[34,78,36],{}," The vCenter VM must be accessible via a shared storage pool to avoid any network outage.",[10,81,83],{"id":82},"configuring-the-dvswitch","Configuring the dvSwitch",[15,85,86,87,90,91,95,96,99],{},"To do this, we'll use the vSphere client and connect to our vCenter.",[88,89],"br",{},"\nGo to ",[92,93,94],"em",{},"Home\u002FInventory\u002FNetworking",", then ",[92,97,98],{},"New Distributed Switch…",":",[15,101,102],{},[27,103],{"alt":29,"src":104},"\u002Fimages\u002Fblog\u002Fvmware-vcenter-vswitch-distribue\u002Fe39b750077.png",[15,106,107],{},"A wizard will guide us through the creation; we choose version 5.5.0:",[15,109,110],{},[27,111],{"alt":29,"src":112},"\u002Fimages\u002Fblog\u002Fvmware-vcenter-vswitch-distribue\u002F864480735a.png",[15,114,115,116,118],{},"We select the name as well as the number of dvUplink connections.",[88,117],{},"\nIn our case, we'll use four (that's the maximum number of cards we have):",[15,120,121],{},[27,122],{"alt":29,"src":123},"\u002Fimages\u002Fblog\u002Fvmware-vcenter-vswitch-distribue\u002Fb9dde4ecc6.png",[15,125,126],{},"In our configuration, we choose not to add our hosts:",[15,128,129],{},[27,130],{"alt":29,"src":131},"\u002Fimages\u002Fblog\u002Fvmware-vcenter-vswitch-distribue\u002F9f32360837.png",[15,133,134,135,99],{},"We also don't add any dvport, so uncheck ",[92,136,137],{},"automatically create a default port group",[15,139,140],{},[27,141],{"alt":29,"src":142},"\u002Fimages\u002Fblog\u002Fvmware-vcenter-vswitch-distribue\u002Fd10d560754.png",[15,144,145,148],{},[34,146,147],{},"Success!"," The dvSwitch has been created.",[10,150,152],{"id":151},"configuring-the-dvport","Configuring the dvport",[15,154,155],{},"Once our dvSwitch is set up within our cluster, we'll need to recreate our existing port groups: VM Network, Management Network, and ISCSI01:",[15,157,158],{},[27,159],{"alt":29,"src":160},"\u002Fimages\u002Fblog\u002Fvmware-vcenter-vswitch-distribue\u002F99705bb6f3.png",[15,162,163,164,166,167,170],{},"To do this: go to ",[92,165,94],{},", then on the dvSwitch, in the ",[92,168,169],{},"configuration"," tab:",[15,172,173],{},[27,174],{"alt":29,"src":175},"\u002Fimages\u002Fblog\u002Fvmware-vcenter-vswitch-distribue\u002Fb7131065e0.png",[15,177,178,179,182],{},"To create our different dvgroups, click on ",[92,180,181],{},"New Port Group",", here's an example (without VLAN):",[15,184,185],{},[27,186],{"alt":29,"src":187},"\u002Fimages\u002Fblog\u002Fvmware-vcenter-vswitch-distribue\u002F6c20a5cb8d.png",[15,189,190],{},"Once done, we'll add our hosts to the dvSwitch like this:",[15,192,193],{},[27,194],{"alt":29,"src":195},"\u002Fimages\u002Fblog\u002Fvmware-vcenter-vswitch-distribue\u002F113a279431.png",[15,197,198],{},"Both our hosts should be selected, as well as the vmnic0 card:",[15,200,201],{},[27,202],{"alt":29,"src":203},"\u002Fimages\u002Fblog\u002Fvmware-vcenter-vswitch-distribue\u002Fa48524c654.png",[15,205,206,207,210,211,99],{},"We'll now migrate our vmk0 and then ",[92,208,209],{},"assign"," them to the created dvport, ",[92,212,213],{},"dvManagementNetwork",[15,215,216],{},[27,217],{"alt":29,"src":218},"\u002Fimages\u002Fblog\u002Fvmware-vcenter-vswitch-distribue\u002F13e965effe.png",[15,220,221,222,224],{},"Next, a wizard appears to migrate your various VMs: in my case, I don't do anything.",[88,223],{},"\nHere's the summary of our configuration:",[15,226,227],{},[27,228],{"alt":29,"src":229},"\u002Fimages\u002Fblog\u002Fvmware-vcenter-vswitch-distribue\u002Feb59869377.png",[15,231,232,234,235,237],{},[34,233,147],{}," The vmkernel (vmk0) of vSwitch0 will be migrated to the dvSwitch in the dvManagementNetwork dvport.",[88,236],{},"\nRepeat the dvport creation process two more times to get the desired network setup.",[10,239,241],{"id":240},"additional-features","Additional features",[39,243,245],{"id":244},"teaming-on-a-dvport","Teaming on a dvport:",[15,247,248,249,252,253,255,256,259],{},"I mentioned earlier that I had teaming set up before migrating to the ",[92,250,251],{},"dvport",".",[88,254],{},"\nSo I want to recreate that previous feature, to do this, click on the ",[92,257,258],{},"Edit Settings"," option at the top right:",[15,261,262],{},[27,263],{"alt":29,"src":264},"\u002Fimages\u002Fblog\u002Fvmware-vcenter-vswitch-distribue\u002F0dea4c3f81.png",[15,266,267,268,271],{},"Then, in the ",[92,269,270],{},"Teaming and Failover"," tab, here's our configuration:",[15,273,274],{},[27,275],{"alt":29,"src":276},"\u002Fimages\u002Fblog\u002Fvmware-vcenter-vswitch-distribue\u002F0bb018e659.png",[15,278,279,281],{},[34,280,36],{}," DvUplink1 corresponds to vmnic0, and dvUplink4 to vmnic3.",[39,283,285],{"id":284},"jumbo-frames-on-a-dvswitch","Jumbo Frames on a dvSwitch:",[15,287,288,289,291,292,295,296,99],{},"It can be important to enable Jumbo Frames, especially on ISCSI connections.",[88,290],{},"\nTo do this, ",[92,293,294],{},"right-click"," on the dvSwitch and choose ",[92,297,258],{},[15,299,300],{},[27,301],{"alt":29,"src":302},"\u002Fimages\u002Fblog\u002Fvmware-vcenter-vswitch-distribue\u002F182bd50b71.png",[15,304,305,306,309,310,313,314,99],{},"Once in the options, we select ",[92,307,308],{},"Advanced",", then set ",[92,311,312],{},"MTU"," to ",[92,315,316],{},"9000",[15,318,319],{},[27,320],{"alt":29,"src":321},"\u002Fimages\u002Fblog\u002Fvmware-vcenter-vswitch-distribue\u002F0e857c8513.png",[15,323,324,327,328,337],{},[92,325,326],{},"Enabling Jumbo Frames must be done on every element (at every level of the infrastructure), such as: VMkernel, vDS, physical switches, and SAN. For more information, see the VMware KB:"," ",[329,330,334],"a",{"href":331,"rel":332},"https:\u002F\u002Fkb.vmware.com\u002Fselfservice\u002Fmicrosites\u002Fsearch.do?language=en_US&cmd=displayKC&externalId=1038827",[333],"nofollow",[92,335,336],{},"Enabling Jumbo Frames on virtual distributed switches (1038827)",[92,338,252],{},[39,340,342],{"id":341},"dvswitch-multipathing","dvSwitch Multipathing:",[15,344,345,346,348,349],{},"For those looking for a solution to increase their SAN's availability to ESXi, there's an excellent tutorial.",[88,347],{},"\nCheck it out through a very clear article at the following address: ",[329,350,353],{"href":351,"rel":352},"http:\u002F\u002Fvcdx56.com\u002F2013\u002F07\u002F23\u002Fvsphere-distributed-port-group-teaming-and-failover-failback-option\u002F",[333],"everything-virtual.com",[355,356,357],"blockquote",{},[15,358,359],{},[92,360,361],{},"Frequently asked questions with useful links:",[15,363,364,365,367],{},"Can LACP be enabled with ISCSI multipathing?",[88,366],{},[329,368,369],{"href":369,"rel":370},"https:\u002F\u002Fkb.vmware.com\u002Fselfservice\u002Fmicrosites\u002Fsearch.do?language=en_US&cmd=displayKC&externalId=2051307",[333],[15,372,373,374,376],{},"How do you properly migrate an existing ISCSI multipathing configuration to a distributed switch?",[88,375],{},[329,377,378],{"href":378,"rel":379},"https:\u002F\u002Fitvlab.wordpress.com\u002F2015\u002F02\u002F14\u002Fhow-to-migrate-iscsi-storage-from-a-standard-switch-to-a-distributed-switch\u002F",[333],[10,381,383],{"id":382},"conclusion","Conclusion",{"title":29,"searchDepth":385,"depth":385,"links":386},2,[387,388,392,393,394,395,400],{"id":12,"depth":385,"text":13},{"id":20,"depth":385,"text":5,"children":389},[390],{"id":41,"depth":391,"text":42},3,{"id":61,"depth":385,"text":62},{"id":82,"depth":385,"text":83},{"id":151,"depth":385,"text":152},{"id":240,"depth":385,"text":241,"children":396},[397,398,399],{"id":244,"depth":391,"text":245},{"id":284,"depth":391,"text":285},{"id":341,"depth":391,"text":342},{"id":382,"depth":385,"text":383},[402],"Réseau","\u002Fimages\u002Fblog\u002Fvmware-vcenter-vswitch-distribue\u002Fa3ce9b6363.jpg",true,null,"2016-03-15","Network management via vCenter is an important function. Discover how to get started with distributed vSwitches.","md",{},"\u002Fen\u002Fblog\u002Fvmware-vcenter-vswitch-distribue",{"title":5,"description":407},"vmware-vcenter-vswitch-distribue","en\u002Fblog\u002Fvmware-vcenter-vswitch-distribue","Pef_WjcGW7hFobOzvfxzP_KdOVokbXBKMYtrqI7SAL4",[416,422,428,434,442,449,456,463],{"title":417,"path":418,"stem":419,"date":420,"cover":421,"categories":405,"children":-1},"Learn to Browse the Internet Safely","\u002Fen\u002Fblog\u002Fcertificat-apprenez-naviguer-securite-sur-internet","en\u002Fblog\u002Fcertificat-apprenez-naviguer-securite-sur-internet","2016-04-08","\u002Fimages\u002Fblog\u002Fcertificat-apprenez-naviguer-securite-sur-internet\u002F29fef6bda4.png",{"title":423,"path":424,"stem":425,"date":426,"cover":427,"categories":405,"children":-1},"Protect All Your Data on Your Computer","\u002Fen\u002Fblog\u002Fcertificat-protegez-ensemble-vos-donnees-sur-votre-ordinateur","en\u002Fblog\u002Fcertificat-protegez-ensemble-vos-donnees-sur-votre-ordinateur","2016-04-06","\u002Fimages\u002Fblog\u002Fcertificat-protegez-ensemble-vos-donnees-sur-votre-ordinateur\u002Fb4c7d4ec05.png",{"title":429,"path":430,"stem":431,"date":432,"cover":433,"categories":405,"children":-1},"Introduction to Containers","\u002Fen\u002Fblog\u002Fcertificat-introduction-aux-conteneurs","en\u002Fblog\u002Fcertificat-introduction-aux-conteneurs","2016-04-03","\u002Fimages\u002Fblog\u002Fcertificat-introduction-aux-conteneurs\u002Fb36ecfb03e.png",{"title":435,"path":436,"stem":437,"date":438,"cover":439,"categories":440,"children":-1},"Installing a Gandi Certificate on Zimbra","\u002Fen\u002Fblog\u002Finstallation-certificat-gandi-sous-zimbra","en\u002Fblog\u002Finstallation-certificat-gandi-sous-zimbra","2016-03-23","\u002Fimages\u002Fblog\u002Finstallation-certificat-gandi-sous-zimbra\u002F832221cad6.png",[441],"Linux",{"title":443,"path":444,"stem":445,"date":446,"cover":447,"categories":448,"children":-1},"Configuring OpenIAM with LDAPS","\u002Fen\u002Fblog\u002Fconfiguration-openiam-avec-ldaps","en\u002Fblog\u002Fconfiguration-openiam-avec-ldaps","2016-02-01","\u002Fimages\u002Fblog\u002Fconfiguration-openiam-avec-ldaps\u002Fb5eaa788f1.jpg",[441],{"title":450,"path":451,"stem":452,"date":453,"cover":454,"categories":455,"children":-1},"Configuring a Counter-Strike GO Server on Linux","\u002Fen\u002Fblog\u002Fconfiguration-serveur-counter-strike-sous-linux","en\u002Fblog\u002Fconfiguration-serveur-counter-strike-sous-linux","2016-01-27","\u002Fimages\u002Fblog\u002Fconfiguration-serveur-counter-strike-sous-linux\u002F25d3c9f715.png",[441],{"title":457,"path":458,"stem":459,"date":460,"cover":461,"categories":462,"children":-1},"Choosing a Home Infrastructure","\u002Fen\u002Fblog\u002Fchoix-une-infrastructure-domestique","en\u002Fblog\u002Fchoix-une-infrastructure-domestique","2015-12-24","\u002Fimages\u002Fblog\u002Fchoix-une-infrastructure-domestique\u002Fedf65eed4e.png",[402],{"title":464,"path":465,"stem":466,"date":467,"cover":468,"categories":469,"children":-1},"Configuring Debian 8 in Desktop Mode","\u002Fen\u002Fblog\u002Fconfiguration-debian-mode-desktop","en\u002Fblog\u002Fconfiguration-debian-mode-desktop","2015-08-29","\u002Fimages\u002Fblog\u002Fconfiguration-debian-mode-desktop\u002F463de156f7.png",[441],[],1786644888951]