Windows NIC Teaming using PowerShell
A quick rundown how to NIC Team in Server Core:
- We connect to the remote host and check what NICs are available to Team. We want to make a not of the adapter names.
# Connect to the remote host Enter-PSSession <hostname> # List all the physicak adapters available to the machine Get-NetAdapter -Physical
- We create a new team and specify a name. Then we add NIC01 and NIC02 to the team.
# Create a team called "TestTeam" and add NIC01 and NIC02 to the team New-NetLbfoTeam -Name TestTeam -TeamMembers "NIC01", "NIC02"
- Once we do that, the it will ask if it is ok and it will add the default settings:
_TeamingMode:’SwitchIndependent’ and LoadBalancingAlgorithm:’Dynamic’</p>
</em>TeamingMode
In this “Switch Independent Mode” the switches are not aware that different interfaces on the server comprise a team. Instead, all the teaming logic is done exclusively on the server.
There is also the option for “Switch Dependent Mode”, wherein all NICs that comprise the team are connected to the same switch for aggregation rather than redundancy.
**LoadBalancingAlgorithm</p>
— Dynamic:
</strong>Uses the source and destination TCP ports and the IP addresses to create a hash for outbound traffic. Moves outbound streams from team member to team member as needed to balance team member utilization. When you specify this algorithm with the TeamingMode parameter and the SwitchIndependent value, inbound traffic is routed to a particular team member.**
— TransportPorts:
** Uses the source and destination TCP ports and the IP addresses to create a hash, and then assigns the packets that have the matching hash value to one of the available interfaces. When you specify this algorithm with the TeamingMode parameter and the SwitchIndependent value all inbound traffic arrives on the primary team member.**
— IPAddresses:
** Uses 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. When you specify this algorithm with the TeamingMode parameter and the SwitchIndependent value, all inbound traffic arrives on the primary team member.**
— MacAddresses:
** Uses the source and destination MAC addresses to create a hash and then assigns the packets that have the matching hash value to one of the available interfaces. When you specify this algorithm with the TeamingMode parameter and the SwitchIndependent value, all inbound traffic arrives on the primary team member.**
— HyperVPort:
** Distributes network traffic based on the source virtual machine Hyper-V switch port identifier. When you specify this algorithm with the TeamingMode parameter and the SwitchIndependent value, inbound traffic is routed to the same team member as the switch port’s outgoing traffic.
- Once that is done you should have a team
# Check on the NIC Team status Get-NetLLBfoTeam
We can check which NICs are the member, the status it is in, if it is up , or degraded
(mine was degraded since I only connected one NIC :oP)
Sources:
– https://technet.microsoft.com/en-us/library/jj130849(v=wps.630).aspx