Объединение сетевых карт 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"

В данной статье мы с вами поговорим про объединение сетевых адаптеров (NIC Teaming) и рассмотрим его создание на примере Windows Server 2022.

Что такое NIC Teaming

NIC Teaming (или LFBO – Load Balancing and Failover) – это технология объединения нескольких сетевых карт в одну логическую для обеспечения отказоустойчивости и возможности увеличения полосы пропускания. Данная настройка стала доступна в Windows Server начиная с версии 2012. На рисунке ниже представлен общий вид:

На данном рисунке у нас указаны:

NIC1 и NIC2 – это наши сетевые адаптеры на сервере;

NIC Teaming group – это сам процесс настройки технологии;

NIC – это уже логическая сетевая карта, полученная из объединения NIC1 и NIC2.

В данном конкретном примере у нас представлена только одна группа из двух адаптеров. В одну группу можно включать до 32х сетевых адаптеров, но должны быть соблюдены следующие требования:

  • У адаптеров должна быть одинаковая пропускная способность (нельзя объединить адаптер 100 Mbps и 1Gbps);
  • Адаптеры должны соответствовать стандарту WHQL (должны иметь цифровую подпись Microsoft).

Teaming mode

По режиму управления группой есть 2 режима работы — Switch dependent и Switch independent:

  • Switch dependent — требует настройки коммутатора, к которому подключены адаптеры сервера. Как правило, используется протокол LACP;
  • Switch independent – при работе в этом режиме сетевые карты могут быть подключены к разным коммутаторам.

Load balancing

Помимо выбора режима управления группой (teaming mode) также можно выбрать подходящий для нас режим балансировки нагрузки. Это режимы Hyper – V Port и Address Hash:

  • Hyper – V Port – в данном режиме порт виртуального коммутатора Hyper – V ставится в соответствие сетевому адаптеру группы, перенаправляя весь исходящий трафик ВМ через этот сетевой адаптер;
  • Address Hash – в данном режиме для каждого сетевого пакета будет вычисляться хэш на основе адресов получателя и отправителя и уже этот хэш будет ассоциироваться с адаптером группы. Все сетевые пакеты с одинаковым хэшем будут направляться тому же адаптеру. Хэш вычисляется по следующим значениям:
    • MAC – адреса отправителя и получателя. Используется, если у нас идет не IP – трафик;
    • IP – адреса отправителя и получателя. Используется, если трафик отличен от TCP/UDP;
    • TCP – порты отправителя и получателя совместно с IP. Вычисление хэша на основе этих значений более равномерно распределяет трафик.

Настройка NIC Teaming

Для настройки NIC Teaming в Windows Server 2022 выполним следующие действия:

1. Заходим в Server Manager:

Находим раздел NIC Teaming и нажимаем на Disabled;

2. Откроется окно NIC Teaming для создания группы:

3. Выбираем TasksNew Team:

4. В новом окне создания группы:

Team name – указываем имя нашей создаваемой группы;

Member adapters – выбираем сетевые адаптеры, которые будут находиться в этой группе;

Teaming mode – в нашем случае оставляем Switch independent;

Load balancing mode – в нашем случае оставляем Address Hash;

Standby adapter – оставляем None;

Primary team interface – оставляем по умолчанию;

Нажимаем ОК;

5. Если создание прошло успешно, то мы увидим примерно следующую картину:

Как видим, оба адаптера у нас работают, группа создана;

6. Переходим в Network Connection и видим, что у нас появился новый адаптер, представляющий нашу группу:

Настраивается он аналогично любому другому сетевому адаптеру. Настраиваем сетевые параметры адаптера и можно начинать работать.

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

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,995

Network Interface Card (NIC) teaming is a feature in Windows Server 2019 that allows you to combine multiple network adapters to increase network bandwidth and provide redundancy. Configuring NIC teaming can help improve network performance and availability in your server environment. In this guide, we will walk you through the steps to configure NIC teaming in Windows Server 2019.

Step 1: Check NIC Compatibility

Before configuring NIC teaming, make sure that the network adapters in your server are compatible with NIC teaming. Not all network adapters support teaming, so it is essential to verify compatibility.

Step 2: Open Server Manager

Launch Server Manager on your Windows Server 2019 system. Server Manager is a management tool that allows you to configure and monitor server roles and features.

Step 3: Navigate to Local Server

In Server Manager, click on «Local Server» in the left-hand menu. This will display information about the local server, including network settings.

Step 4: Open NIC Teaming

Click on the NIC Teaming link on the Local Server page. This will open the NIC Teaming configuration window.

Step 5: Create a New NIC Team

In the NIC Teaming window, click on the Tasks dropdown menu and select «New Team.» This will initiate the NIC team creation process.

Step 6: Select Network Adapters

Choose the network adapters that you want to include in the NIC team. Select the adapters from the list and click «Add» to add them to the team.

Step 7: Configure Team Settings

Specify the teaming mode and load balancing mode for the NIC team. You can choose from options such as Switch Independent, LACP, and Dynamic. Set the appropriate teaming mode based on your network requirements.

Step 8: Apply Settings

Once you have configured the team settings, click «OK» to create the NIC team. The settings will be applied, and the team will be created with the selected network adapters.

Step 9: Verify NIC Teaming

To ensure that NIC teaming is functioning correctly, check the network settings and monitor the network traffic. You can utilize tools like Performance Monitor to monitor network throughput and verify the effectiveness of NIC teaming.

By following these steps, you can successfully configure NIC teaming in Windows Server 2019 to enhance network performance and reliability in your server environment.


#NICteaming #WindowsServer #NetworkAdapter #ServerManagement #NetworkPerformance

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

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Windows server на intel atom
  • Преимущества windows перед другими ос
  • Windows defender offline tool
  • Microsoft mpeg encoder для windows 10
  • Как настроить цвет экрана на компьютере windows 10