VMware vSphere

 View Only
  • 1.  Assign Vlan to a vnic

    Posted Feb 03, 2015 10:55 AM

    Hi all,

    I work on IT for about 2 years in a hospital,i have most of the servers virtualized.

    So, two years ago i've created a hotspot server for the hospitalized patients, running rock solid.But for precautions i have virtualized the machine to vmware, The machine have two nics, and the "output" nic is on a different ip range and Vlan that i've created only for the hotspot. What can i do to assign the hotspot vlan ID to my "output" virtual nic on the virtualized hostpot machine?

    Im portuguese, so my native language its not english, hope you guys can understand.

    Thanks in advance,

    Regards,



  • 2.  RE: Assign Vlan to a vnic
    Best Answer

    Posted Feb 03, 2015 12:05 PM

    You have many ways to allow multiples VLANs works on ESXi\;

    Method 1: configure the interface port on physical switch side to "trunk/tagged" mode and on vSwitch create multiple port groups and assign one VLAN to each port group, and when adding virtual network interfaces to VM, bind each virtual network interface to appropriate port group.

    Method 2: if you have multiple physical network interfaces on vSphere ESXi, configure each interface port on physical switch to appropriate VLAN and create one vSwitch (and one port group) for each VLAN and when adding virtual network interfaces to VM, bind each virtual network interface to appropriate port group.

    The method 1 is recommended, because will allow you add many VLAN you need without need of additional physical network interfaces.

    Ps.: Eu sou brasileiro e posso falar com você em português se você desejar.



  • 3.  RE: Assign Vlan to a vnic

    Posted Feb 10, 2015 11:12 AM

    Bom dia Rodrigo.

    Obrigado pela resposta.

    Então na porta que sai do switch(físico) para o servidor coloco em modo trunk para poder ver todas as vlans. no vmware ESXi, o servidor hotspot tem duas vnics, uma das placas virtuais defino para visualizar todas as vlans. A segunda placa virtual(saída) defino para ver apenas a vlan 20(vlan para o hotspot).

    é isso?

    cumprimentos,

    Luís



  • 4.  RE: Assign Vlan to a vnic

    Posted Feb 11, 2015 07:25 PM

    Se as duas placas de rede do host ESXi se conectam no mesmo switch físico, para obter maior disponibilidade, você pode deixar as duas no modo tronco e associadas no mesmo vSwitch.

    Uma vez no vSwitch, você irá criar 02 (dois) Port Groups, um para cada VLAN, e nas configurações da placa de rede virtual da VM do hotspot, basta associá-la ao Port Group que tem a VLAN 20 configurada.



  • 5.  RE: Assign Vlan to a vnic

    Posted Feb 18, 2015 01:27 PM

    Boa tarde,

    Muito obrigado pela ajuda, funcionou na perfeição.

    Cumprimentos