Configuring Windows Server 2012 R2 NIC Teaming with EtherChannel on Cisco 3750G Switch.

Windows Server 2012 R2 built in NIC Teaming code enables link aggregation of multiple network adapters with same speeds for outbound traffic from the host. To take advantage of inbound traffic aggregation, the switch ports will have to be configured for Etherchannel.

In the example below, an already configured SwitchIndependent NIC team is converted to Static Teaming Mode, with the Loadbalancing Algorithm value set to IPAddresses from Dynamic . Microsoft documentation describes the the IPAdresses value as using the source and destination IP addresses to create a hash and then assigns the packets that have the matching hash value to one of the available interfaces. The corresponding switch ports on the connecting Cisco 3750G are configured as one logical port with the “src-dst-ip” load balancing value to match that on the host.

 Display Current Host NIC Team Configuration:

PS C:\> Get-NetLbfoTeam

Name                   : MainTeam
Members                : {Ethernet, Ethernet2, Ethernet3, Ethernet4}
TeamNics               : MainTeam
TeamingMode            : SwitchIndependent
LoadBalancingAlgorithm : Dynamic
Status                 : Up

Convert Host NIC Team to Static and Change Load Balancing Algorithm:

C:\> Set-NetLbfoTeam -Name Mainteam -TeamingMode Static -LoadBalancingAlgorithm IPAddresses -Verbose
WARNING: The network connection to nas01 has been interrupted. Attempting to reconnect ...
WARNING: Attempting to reconnect to nas01 ...
WARNING: The network connection to nas01 has been restored.
VERBOSE: Changes the TeamingMode for Team 'MainTeam' from 'SwitchIndependent' to 'Static'. Changes the LoadBalancingAlgorithm for Team
'MainTeam' from 'Dynamic' to 'IPAddresses'

 Display new Host NIC Team Configuration:

PS C:\> Get-NetLbfoTeam

Name : MainTeam
Members : {Ethernet, Ethernet2, Ethernet3, Ethernet4}
TeamNics : MainTeam
TeamingMode : Static
LoadBalancingAlgorithm : IPAddresses
Status : Up

Configure Cisco 3750G for Static Etherchannel:

SR00#config t
Enter configuration commands, one per line. End with CNTL/Z.

SR00(config)#interface port-channel 3
SR00(config-if)#no shutdown
SR00(config-if)#description Etherchannel Connection to WS2012 R2 Team.
SR00(config)#interface range gigabitEthernet1/0/6 - 10
SR00(config-if-range)#channel-group 3 ?
mode Etherchannel Mode of the interface
SR00(config-if-range)#channel-group 3 mode ?
active Enable LACP unconditionally
auto Enable PAgP only if a PAgP device is detected
desirable Enable PAgP unconditionally
on Enable Etherchannel only
passive Enable LACP only if a LACP device is detected
SR00(config-if-range)#channel-group 3 mode on
SR00(config-if-range)#no shutdown
SR00(config)#port-channel load-balance ?
dst-ip Dst IP Addr
dst-mac Dst Mac Addr
src-dst-ip Src XOR Dst IP Addr
src-dst-mac Src XOR Dst Mac Addr
src-ip Src IP Addr
src-mac Src Mac Addr
SR00(config)#port-channel load-balance src-dst-ip

As a habit, I use the Cisco IOS Context help to display available command options and make the appropriate selections. I tested this configuration by copying multiple large capacity files from multiple workstations to the host. The inbound traffic to the host broke the default 1GB throughput on the Host Team NIC.

This entry was posted in Cisco, Hyper-v 2012 R2, Network, Network Load Balancing, NIC Teaming, Powershell 4.0, Windows Server 2012 R2. Bookmark the permalink.

1 Response to Configuring Windows Server 2012 R2 NIC Teaming with EtherChannel on Cisco 3750G Switch.

  1. hkossover says:

    Hello, do you think this can be used on a Cisco 3560G switch?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s