- This topic has 4 replies, 2 voices, and was last updated 1 month, 3 weeks ago by
October 16, 2019 at 4:18 pm #183237
I'm trying to set a static mac address for a network adapter created as Team under Windows Server 2016.
If I use the command
Set-NetAdapter -Name "Private Team" -MacAddress "XX-XX-XX-XX-XX-XX" -Confirm:$false
I have no problem, but if I want to use one of the mac address of the nics that are "under" the Team, I obtain the error that the mac is already in use.
I've seen, however, that if I change the mac address and set it static via UI (select the nic->Properties->Configure->Advanced->MAC Address), and set it like that of the nic that compose the Team, I receive no error.
October 16, 2019 at 4:32 pm #183300ParticipantTopics: 0Replies: 115Points: 433Rank: Contributor
When you are attempting to use one of the MAC Addresses under the Team Nic, is this a MAC Address you assigned or assigned by the system/hardware?
October 17, 2019 at 6:33 am #183435
yes, the MAC is one of the 2 nics; however, while I obtain an error when I run the command (and is an error that I understand), if I set the mac in static mode via the UI (and the MAC is one the 2 nics again) I have no error.
I need this because we have a software that register the MAC of the 2 nics for the license.
October 17, 2019 at 10:15 pm #183684ParticipantTopics: 0Replies: 115Points: 433Rank: Contributor
Okay, so after doing some further investigation this is what I have found.
When you do this in the UI, you are actually modifying an advance property, not the actual MAC Address. Based on this finding doing a quick Get-Command, I was able to identify Get-NetAdapterAdvanceProperty. Doing some testing I found this where the value is being held. The command you will want to be using is below. I hope this helps you out and good luck!
Set-NetAdapterAdvancedProperty -Name 'Private Team' -DisplayName 'MAC Address' -DisplayValue 'A3-22-33-B4-94-2Z'
October 18, 2019 at 7:00 am #183738
great, you resolved my problem; the only thing that I changed is the value of the MAC Address: it seems that on my side, if I insert the value with the dashes, I obtain an error; without dashes all is ok.
- You must be logged in to reply to this topic.