[{"data":1,"prerenderedAt":364},["ShallowReactive",2],{"blog-\u002Fen\u002Fblog\u002Fblog-mise-reseau-virtuelle-vmware-esxi":3,"blog-\u002Fen\u002Fblog\u002Fblog-mise-reseau-virtuelle-vmware-esxi-surround":310,"blog-\u002Fen\u002Fblog\u002Fblog-mise-reseau-virtuelle-vmware-esxi-certifications":363},{"id":4,"title":5,"body":6,"categories":296,"cover":298,"cover_contain":299,"credly_badge_id":300,"date":301,"description":302,"extension":303,"meta":304,"navigation":299,"path":305,"related_certifications":300,"seo":306,"slug":307,"stem":308,"__hash__":309},"blog\u002Fen\u002Fblog\u002Fblog-mise-reseau-virtuelle-vmware-esxi.md","Virtual Networking with VMware ESXi 5",{"type":7,"value":8,"toc":279},"minimark",[9,14,18,37,41,46,71,75,99,103,126,130,136,140,143,162,168,175,179,188,192,198,202,205,210,219,225,230,236,241,244,249,252,266,272,276],[10,11,13],"h2",{"id":12},"real-world-use-case","Real-world use case",[15,16,17],"p",{},"You need to design the virtual network of a VMware ESXi 5 host: here are the virtual networking best practices you need to know.",[15,19,20,21,24,25,29,30,33,34,36],{},"This article only covers the features available in the free version of VMware ESXi5.",[22,23],"br",{},"\nI encourage you to use ",[26,27,28],"strong",{},"virtual networking"," regardless of your ",[26,31,32],{},"hypervisor",".",[22,35],{},"\nThe free version of ESXi will limit us in terms of our virtual network's features.",[10,38,40],{"id":39},"understanding-virtual-networking","Understanding virtual networking",[42,43,45],"h3",{"id":44},"a-virtual-network-vnetwork","A virtual network (Vnetwork)",[15,47,48,51,52,55,56,33,59,61,62,33,65,67,70],{},[26,49,50],{},"A virtual network"," is a ",[26,53,54],{},"network of virtual machines"," running on ",[26,57,58],{},"a single physical machine",[22,60],{},"\nThey're connected to each other just like on ",[26,63,64],{},"a standard physical network",[22,66],{},[26,68,69],{},"Virtual machines"," (VMs) can be added to several virtual networks.",[42,72,74],{"id":73},"the-standard-virtual-switch-vswitch","The standard virtual switch (vSwitch)",[15,76,77,80,81,33,84,86,89,90,33,93,95,96,98],{},[26,78,79],{},"A vSwitch"," can be connected to one or more ",[26,82,83],{},"physical switches",[22,85],{},[26,87,88],{},"A virtual switch"," behaves the same way as a ",[26,91,92],{},"traditional switch",[22,94],{},"\nYou can assign it one or more network interface cards.",[22,97],{},"\nHowever, a vSwitch doesn't have the advanced features found on a physical switch.",[42,100,102],{"id":101},"port-groups-in-a-standard-virtual-switch","Port groups in a standard virtual switch",[15,104,105,108,109,112,113,115,116,119,120,122,123,125],{},[26,106,107],{},"Port groups"," in a virtual switch let ",[26,110,111],{},"VMs"," connect to each other.",[22,114],{},"\nPorts on ",[26,117,118],{},"vSwitches"," are identical to ports on ",[26,121,83],{}," and can be managed.",[22,124],{},"\nBy default, there are 120 ports available per vSwitch, meaning that many VMs can be connected.",[42,127,129],{"id":128},"a-vmkernel-network","A VMkernel network",[15,131,132,133,135],{},"A VMkernel network interface is used for vMotion, IP storage, and Fault Tolerance.",[22,134],{},"\nIt's a port group dedicated to managing our host.",[10,137,139],{"id":138},"explaining-our-basic-virtual-network","Explaining our basic virtual network",[15,141,142],{},"We have 5 virtual machines:",[144,145,146,150,153,156,159],"ul",{},[147,148,149],"li",{},"core.vyatta.master",[147,151,152],{},"core.vyatta.slave",[147,154,155],{},"srv.owncloud",[147,157,158],{},"srv.zimbra",[147,160,161],{},"srv.zpush",[15,163,164,165,167],{},"Networking settings are found under \"configuration\" and \"networking\" in your hypervisor.",[22,166],{},"\nBy default, our networking looks like this:",[15,169,170],{},[171,172],"img",{"alt":173,"src":174},"","\u002Fimages\u002Fblog\u002Fblog-mise-reseau-virtuelle-vmware-esxi\u002Ff201568b2f.png",[42,176,178],{"id":177},"what-can-we-say-about-the-vms-port-group","What can we say about the VMs' port group?",[15,180,181,182,184,185,187],{},"The virtual machines are on the same Vnetwork and connected through the same vSwitch.",[22,183],{},"\nThe physical adapter \"vmnic0 1000\" is assigned to the vSwitch.",[22,186],{},"\nThe port group doesn't use a VLAN ID, meaning the value is \"0\".",[42,189,191],{"id":190},"what-can-we-say-about-the-vmkernel-port","What can we say about the VMkernel port?",[15,193,194,195,197],{},"Our ESXi's management interface sits in the Management Network and is connected via the VMkernel port to the physical adapter \"vmnic0 1000\".",[22,196],{},"\nHere too, there's no VLAN ID in this virtual network.",[10,199,201],{"id":200},"creating-a-network","Creating a network",[15,203,204],{},"Click \"Add Networking\" (top right).",[15,206,207],{},[171,208],{"alt":173,"src":209},"\u002Fimages\u002Fblog\u002Fblog-mise-reseau-virtuelle-vmware-esxi\u002F000209268e.png",[15,211,212,213,215,216,218],{},"Then select the network type:",[22,214],{},"\n– Virtual Machine to create a new Vnetwork containing VMs.",[22,217],{},"\n– VMkernel for ESX(i) services: vMotion, iSCSI, NFS, …",[15,220,221,222,224],{},"Now choose which vSwitch this Vnetwork should be connected to.",[22,223],{},"\nFor the 1st one, select a VLAN ID of 4095.",[15,226,227],{},[171,228],{"alt":173,"src":229},"\u002Fimages\u002Fblog\u002Fblog-mise-reseau-virtuelle-vmware-esxi\u002F5900937496.png",[15,231,232,233,235],{},"To edit an existing vSwitch, click \"properties\" at the top right of it.",[22,234],{},"\nYou can change the number of ports on a switch, configure a VLAN on a network, and so on…",[15,237,238],{},[171,239],{"alt":173,"src":240},"\u002Fimages\u002Fblog\u002Fblog-mise-reseau-virtuelle-vmware-esxi\u002F9b83fbeca1.png",[15,242,243],{},"An optimized network setup with VLAN IDs:",[15,245,246],{},[171,247],{"alt":173,"src":248},"\u002Fimages\u002Fblog\u002Fblog-mise-reseau-virtuelle-vmware-esxi\u002F752ac49b4c.png",[15,250,251],{},"I chose to tag the VLANs this way:",[144,253,254,257,260,263],{},[147,255,256],{},"VM NETWORK – VLAN ID: All (4095)",[147,258,259],{},"VM NETWORK 2 – VLAN ID: 10",[147,261,262],{},"VM NETWORK 3 – VLAN ID: 20",[147,264,265],{},"VM NETWORK 4 – VLAN ID: 30",[15,267,268,269,271],{},"The \"all\" VLAN ID lets tagged IP frames be forwarded for each VLAN.",[22,270],{},"\nVyatta will build IP packets tagged as VLAN 10, 20, or 30 to reach the machines.",[10,273,275],{"id":274},"conclusion","Conclusion",[15,277,278],{},"This article lays the groundwork for virtual networking on the free version of VMware ESXi 5: virtual network, vSwitch, port groups, and the VMkernel interface. It then covers creating a new network and using VLAN IDs to segment traffic between several virtual machines, in particular with Vyatta, which needs to tag frames according to the target VLAN. This configuration remains limited to the features available in the free version of ESXi. It provides a good introduction before moving on to more advanced network configurations.",{"title":173,"searchDepth":280,"depth":280,"links":281},2,[282,283,290,294,295],{"id":12,"depth":280,"text":13},{"id":39,"depth":280,"text":40,"children":284},[285,287,288,289],{"id":44,"depth":286,"text":45},3,{"id":73,"depth":286,"text":74},{"id":101,"depth":286,"text":102},{"id":128,"depth":286,"text":129},{"id":138,"depth":280,"text":139,"children":291},[292,293],{"id":177,"depth":286,"text":178},{"id":190,"depth":286,"text":191},{"id":200,"depth":280,"text":201},{"id":274,"depth":280,"text":275},[297],"Réseau","\u002Fimages\u002Fblog\u002Fblog-mise-reseau-virtuelle-vmware-esxi\u002Fd8c6089e77.png",true,null,"2013-10-10","VMware ESXi 5 and virtual networking. Your first steps into virtual networking! Understanding VLAN IDs in VMware ESXi.","md",{},"\u002Fen\u002Fblog\u002Fblog-mise-reseau-virtuelle-vmware-esxi",{"title":5,"description":302},"blog-mise-reseau-virtuelle-vmware-esxi","en\u002Fblog\u002Fblog-mise-reseau-virtuelle-vmware-esxi","bmRgXzZlj2IbwC9JAcfOBi9k_nzrgYCf3mikHDThmv4",[311,317,324,331,338,344,351,357],{"title":312,"path":313,"stem":314,"date":315,"cover":316,"categories":300,"children":-1},"Installing Zimbra 8 Open Source Edition","\u002Fen\u002Fblog\u002Finstallation-zimbra-open-source-edition","en\u002Fblog\u002Finstallation-zimbra-open-source-edition","2013-10-24","\u002Fimages\u002Fblog\u002Finstallation-zimbra-open-source-edition\u002F1a88e8245b.jpg",{"title":318,"path":319,"stem":320,"date":321,"cover":322,"categories":323,"children":-1},"iSCSI RPN-SAN with VMware ESXi","\u002Fen\u002Fblog\u002Fblog-iscsi-rpn-san-avec-vmware-esxi","en\u002Fblog\u002Fblog-iscsi-rpn-san-avec-vmware-esxi","2013-10-23","\u002Fimages\u002Fblog\u002Fblog-iscsi-rpn-san-avec-vmware-esxi\u002Fd8c6089e77.png",[297],{"title":325,"path":326,"stem":327,"date":328,"cover":329,"categories":330,"children":-1},"Configuring a Pseudo-Ethernet Interface with Vyatta","\u002Fen\u002Fblog\u002Fconfiguration-une-pseudo-ethernet-interface-avec-vyatta","en\u002Fblog\u002Fconfiguration-une-pseudo-ethernet-interface-avec-vyatta","2013-10-20","\u002Fimages\u002Fblog\u002Fconfiguration-une-pseudo-ethernet-interface-avec-vyatta\u002Fa44b82e35f.jpg",[297],{"title":332,"path":333,"stem":334,"date":335,"cover":336,"categories":337,"children":-1},"Configuring VLANs with Vyatta","\u002Fen\u002Fblog\u002Fconfiguration-vlan-avec-vyatta","en\u002Fblog\u002Fconfiguration-vlan-avec-vyatta","2013-10-17","\u002Fimages\u002Fblog\u002Fconfiguration-vlan-avec-vyatta\u002Fa44b82e35f.jpg",[297],{"title":339,"path":340,"stem":341,"date":342,"cover":343,"categories":300,"children":-1},"GhettoVCB, the Free Backup Solution for VMware ESXi","\u002Fen\u002Fblog\u002Fghettovcb-sauvegarde-gratuite-vmware-esxi","en\u002Fblog\u002Fghettovcb-sauvegarde-gratuite-vmware-esxi","2013-10-08","\u002Fimages\u002Fblog\u002Fghettovcb-sauvegarde-gratuite-vmware-esxi\u002Fd8c6089e77.png",{"title":345,"path":346,"stem":347,"date":348,"cover":349,"categories":350,"children":-1},"Configuring VPN Remote Access with Vyatta","\u002Fen\u002Fblog\u002Fconfiguration-des-acces-distance-vpn-avec-vyatta","en\u002Fblog\u002Fconfiguration-des-acces-distance-vpn-avec-vyatta","2013-10-03","\u002Fimages\u002Fblog\u002Fconfiguration-des-acces-distance-vpn-avec-vyatta\u002Fa44b82e35f.jpg",[297],{"title":352,"path":353,"stem":354,"date":355,"cover":356,"categories":300,"children":-1},"Arch Linux Distribution: Customization","\u002Fen\u002Fblog\u002Fdistribution-arch-linux-personnalisation","en\u002Fblog\u002Fdistribution-arch-linux-personnalisation","2013-09-25","\u002Fimages\u002Fblog\u002Fdistribution-arch-linux-personnalisation\u002F68a1cb957a.png",{"title":358,"path":359,"stem":360,"date":361,"cover":362,"categories":300,"children":-1},"Arch Linux ARM Distribution: Raspberry Pi","\u002Fen\u002Fblog\u002Fdistribution-arch-linux-arm-raspberry","en\u002Fblog\u002Fdistribution-arch-linux-arm-raspberry","2013-09-22","\u002Fimages\u002Fblog\u002Fdistribution-arch-linux-arm-raspberry\u002Fb426e4efea.png",[],1786644893310]