NIC teaming and DHCP

Ben 6 Reputation points
2020-11-11T16:39:52.983+00:00

When using NIC teaming in Windows Server 2016/2019 there is no way of determining which member interface becomes primary at boot.

Because we cannot determine this, we do not know which member's MAC address will be used by the team. This makes DHCP troublesome.

I have created a PowerShell script (that may require some modification dependent on your environment) that takes the lowest MAC address of the members and assigns it as the team's MAC address. This will ensure that any DHCP reservations you may have will work as expected.

> $lowest = Get-NetAdapter | where Name -ne "NIC Team #1" | measure -Property MacAddress -Minimum | select Minimum

> $mac = $lowest.minimum -replace '-',''

> Set-NetAdapterAdvancedProperty -Name "NIC Team #1" -DisplayName "MAC Address" -DisplayValue $mac

Hope this helps.

Ben

Windows DHCP
Windows DHCP
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.DHCP: Dynamic Host Configuration Protocol (DHCP). A communications protocol that lets network administrators manage centrally and automate the assignment of Internet Protocol (IP) addresses in an organization's network.
1,023 questions
Windows Server Infrastructure
Windows Server Infrastructure
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Infrastructure: A Microsoft solution area focused on providing organizations with a cloud solution that supports their real-world needs and meets evolving regulatory requirements.
516 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Sunny Qi 10,896 Reputation points Microsoft Vendor
    2020-11-12T07:30:28.447+00:00

    Hi,

    Thank you very much for posting here and sharing your resolution in our forum as it would be helpful to anyone who encounters similar issues.

    If there is anything else we can do for you, please feel free to post in the forum.

    Best Regards,
    Sunny

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments