Each physical network
adapter has a Media Access Control (MAC) address (sometimes called a hardware
address), that is unique identifier of the device on the network. The same is
true of virtual network adapters.
Hyper-v has a pool of
address and assign them as you create virtual network adapter.
To view or modify the
MAC address pool for the Hyper-v server, open Virtual Switch Manager and select
MAC Address Range under Global Network Settings.
The Hyper-v MAC address has the following sections:
Byte 1 to 3: OO-15-5D,which is an OUI registered by Microsoft.
Byte 4 and 5: Consists of the last two bytes of the IP address
assigned to the server’s physical network adapter, converted to hexadecimal
notation.
Byte 6: from 00 to FF, which provides 256 possible addresses
The default pool of 256 addresses is expected to be sufficient of
most cases, if you need enlarge the address pool, you can modifying the second
to last bytes as well increases the pool from 256 to 4,096 or more, as in the
following range:
256 address pool:
00-15-5D-FE-FA-00 to 00-15-5D-FE-FA-FF
4096 address pool:
00-15-5D-FE-F0-00 to 00-15-5D-FE-FF-FF
65536 address pool: 00-15-5D-FE-00-00 to 00-15-5D-FE-FF-FF
More: … … …
…
You can use Get-Host
cmdlet on Windows PowerShell to view Mac address range.
You can use Set-Host cmdlet on Windows PowerShell to change Mac address range.
Virtual network
adapters use dynamically assigned MAC addresses by default, but you can
configure the virtual network adapters to use static MAC addresses.
Expand
a network adapter in the Settings dialog box of a VM, access to the Advanced
Feature page. On this page,you can configure MAC
address of the Virtual Network Adapter:
You can use
Set-VMNetworkAdapter cmdlet on Windows PowerShell to change MAC address of
virtual network adapter.
VMName:
Virtual machine name
StaticMACAddress: To use static MAC address
没有评论:
发表评论