• Contact
  • Homelab
Dimitris Tonias
  • Management
  • Monitoring
  • Cloud
  • Virtualization
  • Networking
  • Productivity
No Result
View All Result
  • Management
  • Monitoring
  • Cloud
  • Virtualization
  • Networking
  • Productivity
No Result
View All Result
Dimitris Tonias
No Result
View All Result

Set static MAC address on a Hyper-V Server 2016 VM

Dimitris Tonias by Dimitris Tonias
February 17, 2018 - Updated on April 21, 2024
in Virtualization
Reading Time: 2 mins read
A A
2
Share on FacebookShare on Twitter

In a Hyper-V host, the MAC addresses received by the VM’s network adapters are dynamic and are defined by the range of the host. I don’t want to repeat myself, I have written an article on this subject.

However, there are several cases that we need to have a static MAC address on a VM. For example, when we want to do DHCP Filtering or DHCP Reservations, or if an inventory service or even some application’s license is linked to a MAC address. In such a case, when we move the VM to another Hyper-V host, it must keep the same MAC address. Otherwise, if it had a dynamic address then it would get a new one.

Let’s see how we set a static MAC address to a VM in Hyper-V. As always, this can be done either through Hyper-V Manager or PowerShell.

Set static MAC address using Hyper-V Manager

First, make sure the VM is not running.

Open Hyper-V Manager and then VM settings. Here, expand the Network Adapter and go to Advanced Features.

Set static MAC address on a Hyper-V Server 2016 VM

To set the VM with a static MAC address, enable the Static option and enter the address you want.

Set static MAC address using PowerShell

This is done using the Set-VMNetworkAdapter cmdlet as you can view below.

Set-VMNetworkAdapter -VMName SRV01 -StaticMacAddress “00112233445566”

Finally, note that when you set up a static MAC address for a VM, be sure it is not within the dynamic address range generated by the Hyper-V host. If it is within the range, then it is possible to give the same address to another VM as the host does not control the management between static and dynamic addresses.

Tags: Hyper-VMAC AddressVirtual MachineWindows Server 2016
ShareTweetPin
Previous Post

View MAC address of Hyper-V Server VMs

Next Post

Configure Dynamic MAC addresses on a Hyper-V 2016 host

Related Posts

Altaro VM Backup Review
Virtualization

Altaro VM Backup Review

Configure dynamic MAC addresses on a Hyper-V 2016 host
Virtualization

Configure Dynamic MAC addresses on a Hyper-V 2016 host

View MAC address of Hyper-V Server VMs
Virtualization

View MAC address of Hyper-V Server VMs

Install Hyper-V Server 2016 as a Standalone Hypervisor
Virtualization

Install Hyper-V Server 2016 as a Standalone Hypervisor

Find which virtual machines use Dynamic Memory on Hyper-V
Virtualization

Find which virtual machines use Dynamic Memory on Hyper-V

How to build a Virtual Lab with VMware Workstation
Virtualization

How to build a Virtual Lab with VMware Workstation

Comments 2

  1. Martin Srebotniak says:
    7 years ago

    Hey,

    how to do this Command for VMs with Multiple Network Adapters?

    Set-VMNetworkAdapter -VMName SRV01 -StaticMacAddress “00112233445566”

    Thanks in Advance
    Greets
    Martin

    Reply
  2. Roger Jacobsen says:
    5 years ago

    Is it possible to change the mac address on the hosts virtual nic?

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result
Zabbix server: More than 75% used in the trends cache
Monitoring

Zabbix server: More than 75% used in the trends cache

In Zabbix, "trends" are a type of data storage representing aggregated historical data. Zabbix monitors and collects a vast amount...

Read moreDetails
Check word count on Google Docs

Check word count on Google Docs

Zabbix server: More than 75% used in the configuration cache

Zabbix server: More than 75% used in the configuration cache

Approve updates in WSUS 2016

Approve updates in WSUS 2016

Configure Group Policy to deploy updates using WSUS 2016

Configure Group Policy to deploy updates using WSUS 2016

Configure computer groups in WSUS 2016

Configure computer groups in WSUS 2016

The initial configuration of WSUS 2016

The initial configuration of WSUS 2016

Get more stuff

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

we respect your privacy and take protecting it seriously

  • Contact
  • Homelab

© 2024 Dimitris Tonias

No Result
View All Result
  • About
  • Contact
  • Free Tools
  • Home
  • Homelab

© 2024 Dimitris Tonias

This website uses cookies. By continuing to use this website you are giving consent to cookies being used.