ESXi

 View Only
  • 1.  Newbie ESXi 5 Networking question

    Posted Dec 13, 2011 09:20 AM

    Hi to all,

    I am new to ESXi and I need some advice from the experts about networking configuration on ESXi 5 host.

    Setup looks like this.

    One HP DL380 G7 Server running ESXi 5, 3 Server 2K8R2 Enterprise VM's, 4 LAN ports on server, one dedicated to management network.

    I would like to setup networking in the following way:

    Every VM should have access to physical network but I would also like that all three VM's communicate to each other not through physical network interfaces but through intra-server networking basically not touching physical network for VM to VM networking.

    If I understand networking in ESXi correctly, if I assign same vSwitch to all VM's they will talk to each other through intra server networking, but then I will be able to assign only one physical LAN card to that vSwitch if my physical switch doesn't support teaming and in that case I'm stuck to 1000 Mbps for all three VM's total throughput?

    Then I was thinking about creating three vSwitches, assign one physical LAN card to each vSwitch and assign every VM to it's own vSwitch, but in that case every VM will communicate to each other through physical network right?

    Next idea was to do it in the same way as previously mentioned but additionally to create one more vSwitch without any physical NIC's assigned to it, connect all three VM's to it as additional virtual LAN card on VM and have different subnet for that second network and setup all services on all VM's to communicate to each other through that (other) network. Then I would have some issues with name resolution between VM's if I don't reference VM's by IP? Or maybe not because they are all in the same broadcast domain just to put that other intra-host network adapter higher on the priority list in VM networking settings than physically bound network adapter?

    Thanks for help.



  • 2.  RE: Newbie ESXi 5 Networking question

    Posted Dec 13, 2011 11:31 AM

    Hi,

    welcome to the communities :smileyhappy:

    You are right, traffic between VMs on the same vSwitch don't leave the server, but only if they are on the same portgroup.

    If you had 1 vSwitch with 2 portgroups, that traffic would leave through the NIC.

    So if you have 1 vSwitch and 1 portgroup (virtual machine network) the number of connected NICs to that vswitch doesn't matter. The traffic will be routed on the portgroup and won't leave through the NICs.

    Regards



  • 3.  RE: Newbie ESXi 5 Networking question

    Posted Dec 13, 2011 09:05 PM

    Hi and thank you for your time.

    When you say port group you mean Vlan ID? Meaning two VM's network communication on same vSwitch but with different assigned vlan ID's will go through physical switch?

    Also keep in mind that I don't have smart physical switch that is capable of Vlan or network teaming.

    To make it simple as possible, if I connect all three VM's to one vSwitch and assign to that vSwitch all three physical network interfaces on the server and I connect all three physical interfaces to physical switch that is plain stupid device, not smart switch, will that work in basically 3 x 1 Gbps speed or will not work at all since that is NIC teaming and my switch don't have teaming capabilities?

    Or if I want to get three NIC's assigned to same vSwitch and get 3 Gbps (3 x 1) total bandwith to physical switch I should buy smart switch?

    Thanks again.



  • 4.  RE: Newbie ESXi 5 Networking question
    Best Answer

    Posted Dec 13, 2011 09:33 PM

    Tim wrote:

    If you had 1 vSwitch with 2 portgroups, that traffic would leave through the NIC.

    That is correct if you have different VLANs on the portgroups, but if they are the same then traffic will also stay within the vSwitch.

    oryxcomp wrote:

    If I understand networking in ESXi correctly, if I assign same vSwitch to all VM's they will talk to each other through intra server networking, but then I will be able to assign only one physical LAN card to that vSwitch if my physical switch doesn't support teaming and in that case I'm stuck to 1000 Mbps for all three VM's total throughput?

    You can have several vmnics (physical ports of the physical nics) connected to the same vSwitch without problems, even if your physical switch does not support teaming. Just leave the load balancing policy to default "port id".

    So create one vSwitch, add as many VMNICs as you wish and then connect your VMs to the vSwitch. Note that a single VM will not be able to get over 1 Gbit/s in throughput, but the different VMs will be spread over the outgoing ports.



  • 5.  RE: Newbie ESXi 5 Networking question

    Posted Dec 14, 2011 07:59 AM

    Well thanks a lot that was the answer I was looking for!

    Just one more question, both of you are mentioning port groups but I cant find that anywhere in networking settings juts VLAN ID's?



  • 6.  RE: Newbie ESXi 5 Networking question

    Posted Dec 15, 2011 07:42 PM

    oryxcomp wrote:

    Just one more question, both of you are mentioning port groups but I cant find that anywhere in networking settings juts VLAN ID's?

    A portgroup is a collection of ports with the same settings, including VLANs. When you use "Add networking" and select "Virtual Machines" you get a portgroup, even if the name "portgroup" is not actually shown.



  • 7.  RE: Newbie ESXi 5 Networking question

    Posted Dec 21, 2011 03:42 PM

    Everything is clear now. Thank's a lot for your help.