Configure NIC teaming for V Switch

Published on
12,008 Points
Last Modified:
NIC teaming for ESX can be configured for both network load balancing and failover. If you have more than one NICs in the ESX host machine, you can make use of this configuration for network optimization. This is a recommended configuration in production scenarios. In case of a failover configuration, the NICs are configured in active-passive mode. In case of load balancing (which is explained here), all the involved NICs are in active mode and  the traffic from the host is distibuted among the teamed NICs.

This document explains how to create a vSwitch for teaming and the corresponding Network switch configuration.

Two or more NIC cards are required to use NIC teaming in  ESX Server.

Step 1: Create a new vSwitch and give it a network label like "VM Network”.
Add the required NICs to the switch. Procedure on how to add a NIC to a virtual switch is described below:
Select the vSwitch from the Configuration -> networking . Select Network adapters and click on add.
In the Add Adapter Wizard select the NIC card which needs to be added to the switch and click on next. If the NIC card is already attached to another virtual switch, it will be removed from it and added to the new one.
Go to next screen.
In the failover order, we can configure the active and standby adapters if required. Click next and finish the configuration.

Step 2: Configure teaming
Configuring teaming in ESX Server will implement load balancing for outbound traffic only. For implementing the same for inbound traffic the required configurations need to be done on the physical switch to which the NICs are actually connected.

Switch configuration steps:
Suppose two NICs vnic0 and vnic1 are added to a virtual switch vswitch0. vnic0 and vnic1 are physical adapters connected to switch ports gi0/23 and gi0/24


Create a port channel in the switch for the ports.

Commands used for the same in Cisco Catalyst IOS-based physical switches are given below:
s3(config)#int port-channel1
s3(config-if)#description NIC team for ESX server
s3(config-if)#int gi0/23
s3(config-if)#channel-group 1 mode on
s3(config-if)#int gi0/24
s3(config-if)#channel-group 1 mode on 

Open in new window

This creates port-channel1 and assigns GigabitEthernet0/23 and GigabitEthernet0/24 into a team.


Ensure that the load balancing mechanism that is used by both the switch and ESX Server matches. To find out the current load balancing mechanism of the Cisco switch, use this command in enable mode:
show etherchannel load-balance

Open in new window

This will report the current load balancing algorithm in use by the switch. We can either use IP based or MAC based load balancing . IP based option gives better utilization across the members of the NIC team than some of the other options.


Set the switch load-balancing algorithm using one of the following commands in global configuration mode:
port-channel load-balance src-dst-ip (to enable IP-based load balancing)
port-channel load-balance src-mac (to enable MAC-based load balancing)

Open in new window

Now  the vSwitch is created and the physical switch is configured for teaming. Further required configuration for the vSwitch is given here: http://thetechnologychronicle.blogspot.in/2012/05/esx-configuration-for-teaming.html

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Join & Write a Comment

Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month