VMware vSphere

 View Only
Expand all | Collapse all

Nic Teaming Port ID - Different VMs use same vmnic ¿why?

  • 1.  Nic Teaming Port ID - Different VMs use same vmnic ¿why?

    Posted Mar 25, 2015 10:26 AM

    Hello everybody,

    I have a server with 9 physical nics and esxi 5.5 in it. Only 5 virtual machines are running.

    I've configured NIC Teaming with Virtual Port ID balancing. All help documents show each VM will use one different nic until there is no free NIC.

    But in my case, 2 VMs use same nic and other 2 VMs use another nic.

    Better with images:

    As you can see in the last image, the VMs JuanWebMoodle and AlexMoodle use same vmnic6 although they have different port ID. The same occurs with LauraMoodle and ManoloMoodle and vmnic7.

    As you can see the order of the active adapters configured doesn't work, VMs should use vmnic1, vmnic2, etc...

    I hope anyone can help me. Thank you very much in advance.

    Best regards.



  • 2.  RE: Nic Teaming Port ID - Different VMs use same vmnic ¿why?

    Posted Mar 25, 2015 11:21 AM

    Can you remove the network adapter (vmnic3, that was down) from the vswitch 0 and then check again on esxtop?



  • 3.  RE: Nic Teaming Port ID - Different VMs use same vmnic ¿why?

    Posted Mar 25, 2015 11:32 AM

    OK. It's done. Bad news, it remains the same.

    Anyway, thank you very much.



  • 4.  RE: Nic Teaming Port ID - Different VMs use same vmnic ¿why?

    Posted Mar 25, 2015 11:35 AM

    as I know the switch port is allocated on the startup of a VM.

    So you probably have to shut down and start the vms again to "loadblanace" it...



  • 5.  RE: Nic Teaming Port ID - Different VMs use same vmnic ¿why?

    Posted Mar 25, 2015 12:06 PM

    ok, I have turned VMs off, and start again. Bad news. VMs use a new vmnic, but they repeat it again.

    Thank you for trying it.



  • 6.  RE: Nic Teaming Port ID - Different VMs use same vmnic ¿why?

    Posted Mar 25, 2015 12:16 PM

    I want you to try another thing that is just keep only 8 vmnics in team.. remove vmnic8 from teaming and thn try the same..



  • 7.  RE: Nic Teaming Port ID - Different VMs use same vmnic ¿why?

    Posted Mar 25, 2015 12:23 PM

    Thank you everybody for keep trying it.

    But..... bad news. I've removed the last vmnic, that is vmnic9. Now, I have 1 nic for management and 7 nics for VMs. Total 8 nics.

    At least the vmnics order seems to work.

    Thank you again.



  • 8.  RE: Nic Teaming Port ID - Different VMs use same vmnic ¿why?

    Posted Mar 25, 2015 12:39 PM

    Not sure but was reading the networking document of VMware and found below:

    • Route based on the originating virtual switch port ID — Choose an uplink based on the virtual port where the traffic entered the virtual switch. This is the default configuration and the one most commonly deployed. When you use this setting, traffic from a given virtual Ethernet adapter is consistently sent to the same physical adapter unless there is a failover to another adapter in the NIC team. Replies are received on the same physical adapter as the physical switch learns the port association. This setting provides an even distribution of traffic if the number of virtual Ethernet adapters is greater than the number of physical adapters.

    Can you ensure you have virtual Ethernet greater than physical adapters?



  • 9.  RE: Nic Teaming Port ID - Different VMs use same vmnic ¿why?

    Posted Mar 25, 2015 01:21 PM

    Thank you bruno and vickey,

    VickeyOrana, I don't understand very well that paragraph, for my english it is a little bit complicated, but I'm going to explain you my NICs.

    I have a DELL 2950 server, with ESXi 5.5. The server has 10 RJ45 ports 1000Mbps plus 1 DRAC RJ45 port (remote server management). Total 11 ethernet ports.

    One of those 10 ports or nics (they are synonymous, right?) seems to be broken. Therefore only 9 nics work for ESXi.

    I installed ESXi 5.5 and it recognized every nic in the server, and vmnics (0-9) appeared.

    I configurated Nic teaming creating portgroups (same number than vmnics) to get load balancing. And now, one hour ago, I removed vmnic3 because it was the broken port.

    It is supposed that putting each virtual machine in each portgroup I should get load balancing. That is, each virtual machine will use one nic of 1000Mbps. All of this without I configure manually each portgroup with each vmnic.

    I don't know if I've get explain it well. I hope it.

    Best regards. Thank you very much.



  • 10.  RE: Nic Teaming Port ID - Different VMs use same vmnic ¿why?

    Posted Mar 26, 2015 04:03 AM

    Thank you for explaining the scenario:

    As per my understanding on the article given in my last post, it says it will distribute the load in case Virtual Ethernet (vnics) is greater than Physical Ethernet (vmnics).

    So would recommend you to keep any 4-5 physical NICs in vSwitch and remove remaining NICs, then bounce the VMs Network settings from vCenter and check esxtop again.



  • 11.  RE: Nic Teaming Port ID - Different VMs use same vmnic ¿why?

    Posted Mar 25, 2015 01:58 PM

    There's something quite odd there - the esxtop output shows vmk0 on vmnic0 (on vSwitch0), but the screenshot shows that vmnic0 is unused in vSwitch0.



  • 12.  RE: Nic Teaming Port ID - Different VMs use same vmnic ¿why?

    Posted Mar 25, 2015 05:50 PM

    jwalsh,

    I think it's the correct behavior. When I configure vmnic0 only for management network it shows as unused.

    Bruno,

    I will read the article later. Thank you.

    Thanks to everybody.



  • 13.  RE: Nic Teaming Port ID - Different VMs use same vmnic ¿why?

    Posted Mar 25, 2015 12:22 PM

    btw. in the portgroup  options you can also define which vmnics he should use...not only in the vswitch options.



  • 14.  RE: Nic Teaming Port ID - Different VMs use same vmnic ¿why?

    Posted Mar 25, 2015 12:26 PM

    Yes bruno, I know it, but I don't want to force vmnics for each port group. It should works well with one configuration for the whole vswitch.

    Thank you.



  • 15.  RE: Nic Teaming Port ID - Different VMs use same vmnic ¿why?

    Posted Mar 25, 2015 12:30 PM

    on this you are right :smileyhappy:



  • 16.  RE: Nic Teaming Port ID - Different VMs use same vmnic ¿why?

    Posted Mar 25, 2015 01:39 PM


  • 17.  RE: Nic Teaming Port ID - Different VMs use same vmnic ¿why?

    Posted Mar 25, 2015 08:27 PM

    Bruno,

    I've already read the article. It just indicate select "Override vSwitch Failover order" in every portgroup. I've done that, but everything stays the same.


    I've just reboot the server, but equal. Now it repeats vmnic5 and 6, and the order does not work, again.



    If we don't find anything more, only I can force one nic per virtual machine, manually, but esxi configuration would lose "the automation".


    Thank you very much.