Workaround
Note: To reduce the chance of network connection loss please change the vSwitch load balancing to Route based on IP hash using this method
- Shut down all ports in the team from the physical switch leaving a single port as active.
- Change the load balancing to Routebased on ip hash on the vSwitch and Management Portgroup.
- Configure the port channel on the physical switch.
- Enable the ports on the physical switch.
Notes: Using this method will prevent a connection loss when changing to a port channel. Also make sure that under the portgroup properties for vmk# used for management network you check mark the box "Enabled".
If you have already changed the vSwitch load balancing to Route based on IP hash, then set the same for Management Network portgroup.
- Log in to vCenter Server using the vSphere Client.
- Select the ESXi Server host.
- Click the Configuration tab.
- Click the Networking link.
- Click Properties link for the management network portgroup.
- Highlight the virtual switch in the Ports tab and click Edit.
- Click the NIC Teaming tab.
- Choose Route based on IP hash from the Load Balancing dropdown.
- Verify that there are two or more network adapters listed under Active Adapters.
To configure NIC teaming for Distributed portgroup for VMware vSphere Distributed Switch (VDS).
- Log in to vCenter Server using the vSphere Client.
- From Inventory, go to Networking.
- Expand the Distributed switch.
- Right-click the Management Network Distributed Port Group.
- Click Edit Settings.
- Click Teaming and Failover.
- Select Route based on IP hash from the Load Balancing dropdown.
- Click OK.
Use these commands if the host does not stay connected to vCenter Server after the vSwitch load balancing policy change:
# vim-cmd hostsvc/net/vswitch_setpolicy --nicteaming-policy=loadbalance_ip vSwitch0
# vim-cmd hostsvc/net/portgroup_set --nicteaming-policy=loadbalance_ip vSwitch0 "Management Network"
Additional Information
For translated versions of this article, see: