Агрегация портов windows server 2019

Технология NIC Teaming (или Load Balancing/Failover – LBFO, или NIC bonding) позволяет объединить несколько физических сетевых адаптеров (NIC) в одну логическую сетевую карту. В этой статье мы рассмотрим, как настроить NIC Teaming в Windows Server 2019/2016/2012R2 и в десктопых версиях Windows 10 и 11.

Содержание:

  • Настройка NIC Teaming в Windows Server 2019
  • Используем PowerShell для настройки NIC Teaming в Windows Server
  • Создаем группу сетевых адаптеров NIC Teaming в Windows 10 и 11

Для чего может понадобится объединять сетевые адаптеры в группу NIC Teaming?

  • Увеличение пропускной способности. Например, объединив две сетевые 1 Гб сетевые карты в одну группу NIC Teaming, вы получите общую полосу пропускания на логическом адаптере 2 Гбит/с;
  • Управление балансировкой нагрузки на сетевые карты – можно управлять распределением трафика между NIC сервера;
  • Отказоустойчивость – при выходе из строя любой из сетевых карт, добавленных в группу NIC teaming, остальные подхватывают ее функции, и связь с сервером не прерывается. Для критически важных серверов этот механизм может защитить от простоя сервиса во время выхода из строя сетевого коммутатора или Ethernet порта на нем, сетевого кабеля (которым ваш хост подключен к коммутатору). Для реализации такой возможности, достаточно подключить сетевые карты в разные физические коммутаторы.

В Windows Server 2012R2/2016/2019/2022 технология NIC Teaming не совместима с Single-root I/O virtualization (SR-IOV), TCP Chimney и Remote Direct Memory Access (RDMA).

Настройка NIC Teaming в Windows Server 2019

Вы можете настроить NIC Teaming в Windows Server начиная с версии 2012. Рассмотрим, как объединить несколько сетевых адаптеров в Windows Server 2019 в одну группу NIC Teaming. Режим NIC Teaming по умолчанию отключен в Windows Server.

Чтобы включить его, откройте консоль Server Manager, выберите локальный сервер (Local Server) и в его свойствах выберите пункт “NIC Teaming: Disabled“.

NIC Teaming отключен в Windows Server 2019

В появившемся окне в левой нижней панели выберите пункт Tasks -> New Team (Создать группу).

Далее нужно указать имя группы (Team Name) и выбрать сетевые адаптеры, которые будут входить в эту группу.

В Windows Server 2019 в одну NIC Teaming групп можно объединить до 32 физических сетевых адаптеров, главное, чтобы они работали на одной скорости.

Выбрать сетевые адаптеры для добавления в NIC Teaming

Ниже можно настроить специальные параметры группы. От данных параметров зависит правила и эффективность NIC Teaming. Рассмотрим эти настройки подробнее.

Режим поддержки групп (Teaming Mode). Данный параметр определяет способ взаимодействия группы с сетевым оборудованием (коммутатором)

  • Static Teaming (IEEE 802.3ad)— статический режим работы с зависимостью от сетевого оборудования. Все адаптеры группы должны быть подключены к одному коммутатору, Ethernet порты которого настроены на использование статической агрегации каналов (требуется настройка на коммутаторе);
  • Switch Independent (режим по-умолчанию) – группа работает независимо от коммутатора, для реализации не нужно дополнительно настраивать сетевое оборудование. В этом режиме разные сетевые адаптеры группы можно подключить к разным коммутаторам для повышения отказоустойчивости (защита от сбоев в коммутаторах);
  • LACP (Link Aggregation Control Protocol, LACP, IEEE 802.1ax) – режим также зависит от сетевого оборудования. Нужно включить и настроить на коммутаторе динамическую агрегацию каналов по протоколу LACP.

Режим балансировки нагрузки (Load Balancing mode) – задает как распределяется сетевой трафик по NIC в группе.

  • Address Hash — для каждого из адаптеров вычисляется специальный хэш (на основании MAC или IP-адресов отправителя и получателя) и привязывается определенному физическому адаптеру. Весь трафик от данного отправителя будет идти через этот NIC;
  • Hyper-V Port — режим можно использовать для сервера с ролью Hyper-V. Позволяет привязать конкретный адаптер группу NIC teaming к конкретному порту на виртуальном коммутаторе Hyper-V;
  • Dynamic – опция по умолчанию, совмещает оба типа балансировки нагрузки.

Один из адаптеров в группе можно назначить резервным (Standby adapter). В обычном режиме работы данная NIC не используется для передачи трафика. При неполадке на любом другом адаптере в группе NIC Teaming, он тут-же занимает его место. В общем случае и без данной функции при выходе из строя любой сетевой карты, не будет простоя сервиса, т.к. ее нагрузка автоматически распределится между оставшимися картами в группе.

Выберите нужные параметры, нажмите ОК и новая группа Nic Teaming будет создана.

Откройте список сетевых подключения в панели управления Windows. Убедитесь, что в Windows Server появился новый сетевой адаптер Microsoft Network Adapter Multiplexor Driver (его иконка немного отличается). Это и есть виртуальный адаптер группы NIC Teaming.

сетевой адаптер NIC Teaming в Windows типа Microsoft Network Adapter Multiplexor Driver

Дальнейшая настройка параметров сетевой карты (протоколы, IPv4/v6 адрес) осуществляется теперь в свойствах этого адаптера.

задайте настройки сети для адаптера NIC Team

У всех остальных сетевых адаптеров, которые вы добавили в группу NIC Teaming уже не будет собственных IP адресов.

При удалении группы NIC Teaming предыдущие настройки сетевых адаптеров восстанавливаются.

В дальнейшем вы можете добавить или удалить сетевые адаптеры в группу NIC Teaming.

Вы можете использовать группу NIC Teaming для настройки нескольких VLAN интерфейсов в Windows Server. Для этого можно даже создать группу NIC Teaming из одного сетевого адаптера.

Используем PowerShell для настройки NIC Teaming в Windows Server

Вы можете создавать и управлять группами NIC Teaming не только из графического интерфейса Windows, но и с помощью PowerShell. Вы можете использовать PowerShell для настройки NIC Teaming в Windows Server Core

В Windows Server для управления MIC Teaming есть встроенный модуль NetLbfo. Выведите список сетевых адаптеров на сервере:

Get-NetAdapter

Get-NetAdapter - вывести список сетевых адаптеров в Windows

Создайте новую группу с Team0 из адаптеров с именами Ethernet1 и Ethernet3. Выберите режим работы NIC Teaming: Switch Independent с динамической балансировкой.

New-NetLbfoTeam -Name Team0 -TeamMembers Ethernet1,Ethernet3 -TeamingMode SwitchIndependent -LoadBalancingAlgorithm Dynamic

PowerShell New-NetLbfoTeam : создать группу NIC Teaming в Windows

Доступные параметры:

  • TeamingMode:
    Static
    ,
    SwitchIndependent
    ,
    Lacp
  • LoadBalansingAlgorithm:
    TransportPorts
    ,
    IPAddresses
    ,
    MacAddresses
    ,
    HyperVPort
    ,
    Dynamic

Информацию о группах NIC Teaming на сервере можно вывести с помощью команды:

Get-NetLbfoTeam
Name : Team0
Members : {Ethernet3, Ethernet1}
TeamNics : Team0
TeamingMode : SwitchIndependent
LoadBalancingAlgorithm : Dynamic
Status : Up

Можно настроить IP адрес интерфейса NIC Teaming с помощью PowerShell:

New-NetIPAddress -InterfaceAlias team0 -IPAddress 192.168.13.100 -PrefixLength 24 -DefaultGateway 192.168.13.1
Set-DnsClientServerAddress -InterfaceAlias team0 -ServerAddresses 192.168.13.10

Выполните команду
Get-NetAdapter
. Обратите внимание, что LinkSpeed сетевого адаптера группу NIC Teaming — 2 Гбит/с.

агрегированный сетевой адаптер в Windows Server

Чтобы изменить настройки группы NIC Teaming используется командлет Set-NetLbfoTeam:

Set-NetLbfoTeam -Name team0 -TeamingMode LACP

Если выполнить эту команду в ВМ, появится ошибка

Set-NetLbfoTeam : 'SwitchIndependent' is the only TeamingMode value supported in a Virtual Machine

Чтобы через NIC Teaming добавить отдельный VLAN интерфейс, используйте команду:
Add-NetLbfoTeamNIC -Team Team0 -VlanID 10

Удалить группу NIC Team можно командой:

Remove-NetLbfoTeam -Name Team0

Создаем группу сетевых адаптеров NIC Teaming в Windows 10 и 11

Вы можете использовать NIC Teaming для объединения сетевых карт не только в Windows Server, но и в клиентских версиях Windows 10 и 11. Главное, чтобы производитель вашей сетевой карты поддерживал для нее режим Link aggregation / NIC teaming/ LBFO.

Например, NIC Teaming работает из коробки с драйверами картами Realtek PCIe GbE Family Controller ( 10.35.510.2019) или Intel(R) 82574L Gigabit Network Connection.

Чтобы собрать группу NIC Teaming в Windows 10 (в этом примере это Windows 10 20H2), откройте консоль PowerShell и выведите список сетевых адаптеров:

Get-NetAdapter

Соберем группу NIC Team из адаптеров Ethernet0 и Ethernet1.

New-NetSwitchTeam -Name "MyNICTeam" -TeamMembers "Ethernet0","Ethernet1"

Создать группу NIC Teaming в Windows 10 из PowerShell New-NetSwitchTeam

Проверьте, что в системе появился новый интерфейс NIC Teaming.

Get-NetSwitchTeam

Не забудьте задать для него сетевые настройки. Теперь у вас появился новый интерфейс с пропускной способностью 2 Гбит/с.

объединение сетевых адаптеров в NIC Team в Windows 10 и 11

Для удаления созданной группы NIC Team, также нужно использовать PowerShell:
Remove-NetSwitchTeam -Name "MyNICTeam"

In my blog entitled “Inter-VLAN Routing Between Virtual Machines” I created two subnets and made the necessary configuration on the router and in Hyper-V Manager to communicate between hosts in two different VLANs. The configuration works great but there is one glaring limitation – scalability. If I wanted to add more VLANs and assign those VLANs to a subnet, I would need to add more NICs. To address this limitation, I will configure a NIC Team in Windows Server 2019 and specify in Hyper-V Manager what VLAN I want my VMs to use for network communication.

A NIC Team is a way to group together several physical interfaces into one logical interface for the purpose of improving network performance and redundancy. In Cisco IOS this is also called an EtherChannel.

For this task I purchased an Intel Pro 1000 PT 1Gb Quad Port Ethernet Server Adapter. My hope was that I would be able to put all the ports in a Team or create two Teams with two ports in each team but this computer is only able to see two of the 4 ports on the server adapter. After troubleshooting for a few hours I could not figure out why my computer is unable to see all the ports. Perhaps there is some kind of hardware limitation unique to the Dell Optiplex 7010. I decided to power through and just use the two ports I am able to use.

VLAN Aware vs VLAN Capable

One of the things that came up for me as I was accomplishing this task is distinguishing the difference between VLAN Awareness and VLAN Capability. In the Hyper-V Virtual Switch Manager you are given the option of specifying a VLAN however when using this, you are not actually creating a VLAN. VLANs are created on the port of the network switch (VLAN capable). However, what Windows Server 2019 can do is acknowledge that a packet is tagged with a specific VLAN and pass the traffic to the switch to make the appropriate forwarding decision (VLAN aware). This is great because  typically computers drop packets that are tagged with a VLAN.

NIC Team Configuration

To create a NIC Team, open the Server Manager and with “Local Server” selected in the left navigation pane, select the NIC Teaming option under the server properties. Then select “Tasks” under the “Teams” section and you will be able to select the interfaces you would like to join your new NIC Team, the Teaming mode and the Load balancing mode. In figure 1-1 I have right clicked on the NIC Team I created and selected properties which is identical to the screen you see when creating a new NIC Team:

Figure 1-1. Properties of my NIC Team

LACP or Link Aggregation Control Protocol allows the switch to dynamically negotiate which links between the switch and the host get added to the Link Aggregation Group (LAG). LACP in Windows Server operates in “active mode” so that means that on the switch I will also need to configure LACP in active mode. Im not overly concerned about load balancing performance so for the load balancing algorithm I went with Dynamic.

For this task I have also slightly amended the topology from my blog entitled “Inter-VLAN Routing Between Virtual Machines.” Since the EHWIC in my router does not support Link Aggregation, I will add a multilayer switch:

Figure 1-2. Updated Topology

EtherChannel Configuration

Below are the commands issued on S1 to configure a L2 EtherChannel:

Figure 1-3. Configuring L2 EtherChannel on S1

It is important first to make sure that both ports on the switch have the same configuration before creating the EtherChannel. I issued the #interface range command and grabbed both the fa1/0/1 and fa1/0/2 interface, configured the encapsulation protocol and set both to trunk mode. Then I created the etherchannel by issuing the #channel-group command and configured the negotiation protocol as “active” to specify to the switch that I want it to use LACP. Finally, I issued the #show etherchannel summary command to show that etherchannel is in an “up” state.

Confusingly, Cisco uses “etherchannel” , “channel group” , and “port channel” all to refer to the same thing. The output of this show command shows that I created a new logical interface called “Po1” and the protocol being used is LACP. The letters “S” and “U” are in parenthesis  which according to the key in the show command output, indicate that this new logical interface is in use and is operating in L2. Success! The last thing to do now is specify in the Hyper-V Manager which VLANs I want to be used for network communication for the VLANs:

Figure 1-4. Configuring External vSwitch

First I selected the Virtual Switch Manager and renamed my vSwitch. Then I chose the NIC Team which is represented as “Microsoft Network Adapter Multiplexor Driver” and binded this NIC Team to the External vSwitch. I want the Hyper-V Host to participate in this vSwitch so I also selected the option “Allow management operating system to share this network adapter” The final piece of configuration for this external vSwitch is to specify VLAN 100 as the VLAN I want the Hyper-V host to use to communicate on the network.

Next I needed to configure a static IP address to the virtual NIC:

Figure 1-5. Configuring a static IP

The last piece of Hyper-V config is assigning each VM to the external switch “BH-vSwitch” and specifying the VLAN that I want each VM to use for network communication. BH-VM-SRV1 will be use VLAN 100 and BH-VM-SRV2 will use VLAN 110:

Figure 1-6a. Specifying VLAN for BH-VM-SRV1
Figure 1-6b. Specifying VLAN for BH-VM-SRV2

All that’s left is to test connectivity! From the Hyper-V host I was able to successfully ping the gateway of VLAN 100 as well as each VM as shown in figure 1-7 below. I was also able to successfully ping BH-VM-SRV1 from BH-VM-SRV2 and vice-versa.

Figure 1-7. Successful pings on Hyper-V Host



  • bonding, lacp, windows, networking, windows server 2016, windows server 2019
  • 12

After installing Windows Server 2016/2019, LACP can be configuring by following the steps in this tutorial.

The Server Manager application should already be running, in case it is not, start it.

Step 1 — Opening the NIC teaming Interaface:

  1. Inside Server Manager, navigate to Local Server (this option can be found in the left sidebar).
  2. Proceed by clicking on the blue Disabled link next to NIC Teaming.

Step 2 — Set up the LACP interface

  1. In the top right corner of the NIC Teaming window, click on TASKS and select New Team.

  2. In the new interface that poped up, enter a name for the team (example: bond) and select the interfaces you want to use for the bond you are setting up by checking the checkboxes that appeared next to them.

  3. Proceed by clicking on Additional properties and selecting LACP as the Teaming mode.

  4. After selecting LACP in the Teaming mode, click on OK and the interface will be created.

Step 3 — Configuring an IP address

This will not be covered in this guide, now you can go ahead and configure an IP address in on the bond interface like you would normally do on the standard interface in a server.

After this is done, your server should have internet connectivity.

In case you are running into issues, feel free to contacting our support department by creating a ticket or sending an e-mail to [email protected].


Was this answer helpful?

Hello and welcome to another Windows Server 2019 tutorial. In this article, we will configure NIC teaming in Windows Server 2019.

NIC Teaming feature was initially introduced with windows server 2012. It is also known as Load Balancing/Fail Over (LBFO), NIC Teaming allows you to group between one and 32 physical Ethernet network adapters into one or more software-based virtual network adapters.

These virtual network adapters provide fast performance and fault tolerance in the event of a network adapter failure. After configuring NIC Teaming all the traffic from the OS will pass through that virtual network interface.

NIC teaming in Windows Server 2019 supports two modes:

  • Switch Independent Mode: In this mode, you can connect your all network interfaces to different switches.
  • Switch Dependent Mode: In this mode, you can connect your all network interfaces to the same switch.

The only requirement to create NIC Teaming is, Windows Server 2019 must have two or more physical network adapters.

Now let’s configure NIC Teaming so we can see how all of this works in Windows Server 2019.

Create a NIC Teaming in Windows Server 2019:

First, Open Server Manager and then click on Local Server. As you can notice that we have two network adapter on this server and both are set to obtain IP address automatically.

Here we can see that NIC teaming is disabled. To configure NIC teaming click on Disabled link. The NIC Teaming dialog box appears.

Go to Tasks pane and click New Team.

In the Team name box, type MYLAB-TEAM1, and select the adapter you want to include in this NIC Team.

In my case, I am going to select, Ethernet and Ethernet 2.

Click on Additional properties. Select values for Teaming mode, Load balancing mode, and Standby adapter.

Teaming Mode: Switch Independent

Load balancing mode: Dynamic

Standby adapter: None

If you want to configure or assign a VLAN number to the NIC Team, click the link to the right of Primary team interface.

But for this tutorial, we are going to use default VLAN. So I am not going to change anything.

Once you are ready with all the settings, click on OK.

Now NIC team “MYLAB-TEAM1” is ready. We can verify the member network adapters of the NIC Team and can also check which network adapter is active or not.

Assign an IP address to the NIC Team:

Open Run menu by pressing Windows Key and R from the keyboard. Type ncpa.cpl and press enter to open Network connection console.

In this console, we can see all the networks Adapters and the NIC team which we have created.To open the properties of New NIC Team (MYLAB-TEAM1), Right click on MYLAB-TEAM1 then click on properties.

Select IPv4 option and then click on properties.

Select the option of Use the following IP address and type an IP address, subnet mask, gateway address, and DNS server address as per your network setup.

In our case, it will be,

IP Address: 172.18.72.7

Subnet Mask: 255.255.255.0

Gateway: 172.18.72.1

DNS server: 172.18.72.5

Now, click on Ok to apply the settings and to close the console.

Right click on “MYLAB-TEAM1” and select status. You can see the speed of NIC team (It will be 2 Gbps, as we have used two adapter). Now click on details as well.

To verify current IP configuration, Let’s open command prompt

Type ipconfig command to check the newly assigned IP address.

Now let’s check network connectivity with domain controller by pinging 172.18.72.5.

Steps to configure NIC teaming in Windows Server 2019 is very easy and straight forward. That’s all for now.

Thank you for taking the time to read this article. See you all in the next Windows Server 2019 tutorial.

Post Views: 6,994

Network teaming, also known as NIC teaming, is a method of combining multiple network interfaces into a single team for enhanced performance, load balancing, and failover capabilities. In Windows Server 2019, Microsoft provides built-in support for network teaming, making it easier to configure and manage. This guide walks you through the steps to set up network teaming in Windows Server 2019.

What is Network Teaming?

Network teaming allows multiple network adapters to function as a single logical adapter. It provides:

  1. High Availability: Ensures network connectivity by using failover in case one adapter fails.
  2. Load Balancing: Distributes traffic across multiple network adapters for better performance.
  3. Increased Bandwidth: Aggregates the bandwidth of all adapters in the team.

Prerequisites

Before setting up network teaming, ensure the following:

  • You have multiple network adapters installed on your server.
  • Administrator privileges on the Windows Server 2019 machine.
  • An understanding of the required teaming mode (explained later).

Teaming Modes

Windows Server 2019 supports three teaming modes:

  1. Switch Independent: The server controls load balancing and failover. The switch doesn’t need to support teaming.
  2. Static Teaming: Requires manual configuration on both the switch and the server. All adapters in the team must connect to the same switch.
  3. LACP (Link Aggregation Control Protocol): Uses dynamic negotiation between the switch and the server for load balancing and failover. Switch support is required.

Step-by-Step Guide to Set Up Network Teaming

Step 1: Access the Network Teaming Interface

  1. Log in to your Windows Server 2019 machine as an administrator.
  2. Open Server Manager.
  3. Navigate to Local Server in the left-hand menu.
  4. Locate the NIC Teaming option. By default, it will show “Disabled.”
  5. Click Disabled to open the NIC Teaming configuration window.

Step 2: Create a New Team

  1. In the NIC Teaming window, click Tasks on the right-hand side and select New Team.
  2. In the Team Name field, enter a descriptive name for your team (e.g., “Team01”).
  3. Select the network adapters you want to include in the team by checking the boxes next to them.

Step 3: Configure Teaming Mode

  1. Click the Additional Properties dropdown to expand configuration options.
  2. Under Teaming Mode, choose the appropriate mode:
    • Switch Independent: Use this if you don’t want to rely on the switch for teaming.
    • Static Teaming: Requires switch configuration.
    • LACP: Use if your switch supports LACP.
  3. Configure Load Balancing Mode:
    • Address Hash: Balances traffic based on source and destination IP addresses.
    • Hyper-V Port: Best for Hyper-V environments.
  4. Click OK to create the team.

Step 4: Verify the Team

  1. Once the team is created, it will appear in the NIC Teaming window under Teams.
  2. Ensure the team status shows as Active and that all member adapters are functioning properly.

Step 5: Assign an IP Address

  1. Open Control Panel and navigate to Network and Sharing Center.
  2. Click Change adapter settings in the left menu.
  3. Locate your newly created team in the list of network adapters.
  4. Right-click on the team adapter and select Properties.
  5. Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
  6. Assign a static IP address or configure DHCP based on your network requirements.

Common Issues and Troubleshooting

  1. Team Status Shows “Degraded”:
    • Ensure all member adapters are connected to the network and operational.
    • Verify switch configuration if using Static Teaming or LACP.
  2. No Connectivity:
    • Check if the team adapter has a valid IP configuration.
    • Verify firewall rules and network policies.
  3. Low Performance:
    • Review load balancing mode and teaming mode. Switch Independent with Address Hash is a versatile choice for most environments.

Best Practices

  • Use identical network adapters for better compatibility and performance.
  • Test failover scenarios to ensure high availability.
  • Document the network configuration for troubleshooting and future reference.

Verification

To ensure your NIC team is working correctly:

  1. Monitor Performance: Open Task ManagerPerformanceEthernet to check bandwidth usage.
  2. Test Failover: Disable one of the physical NICs and verify network connectivity persists.

Conclusion

Network teaming in Windows Server 2019 provides a robust solution for enhancing network performance, ensuring high availability, and achieving redundancy. By following this guide, you can successfully set up network teaming tailored to your organizational needs. Proper planning and configuration ensure that your server environment remains resilient and efficient.

Whether you’re optimizing a server environment or setting up redundancy on a workstation, NIC teaming can significantly enhance your network’s resilience and efficiency.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Аналог kde connect для windows
  • Где хранятся точки восстановления windows 10 на диске
  • Как переназначить сочетания клавиш для клавиатуры windows 10
  • Как поставить количество ядер на windows 10
  • Как перемещаться по папкам в командной строке windows