Do you want to ensure your virtual machine has the same IP address? It’s easy –reserve a DHCP IP address for it. In this post, we have explained all the processes on how to reserve DHCP IP Address for virtual machine Hyper-V; here’s how:
Before we begin understanding the setup process of DHCP IP on Hyper-V, it is important to understand what DHCP is and how it works.
Contents
Introduction on how to reserve DHCP IP Address for virtual machine Hyper-V:
In a virtualized network environment, it is essential to be able to resolve IP addresses for both the host server and the guest OS. The process of organizing and assigning IP addresses is known as DHCP.
There are many different ways to set up a DHCP server, but the most common is to use a software-based DHCP server that runs on the host server. This type of DHCP server can be used to assign static IP addresses or dynamic IP addresses.
- If you want to use a static IP address for your guest OS, you will need to add an entry in the DHCP server for each virtual machine. To do this, open the Hyper-V Manager, right-click on your host server, and select Edit Server Properties.
- In the Server Properties window, click on the Add button in the DHCP Settings section. This will open the Add Hardware Wizard.
- Select Network Adapter from the list of hardware types and click Next.
- Choose the network adapter you want to use for your guest OS and click Next. On the next page, select Static IP Address from the list of options and click Next.
- Enter the static IP address you want to use for your guest OS in the IP Address text box and click Next.
- Finish adding the entry in the Add Hardware Wizard and close the Server Properties window.
What is DHCP?
The Dynamic Host Configuration Protocol (DHCP) is a network protocol that automatically assigns IP addresses and other network configuration parameters to devices connected to a network.
DHCP can be used to automatically assign IP addresses to virtual machines (VMs) or physical machines on a network.
When DHCP is used to assign IP addresses to VMs, each VM is assigned a random IP address from the DHCP server’s pool of available IP addresses.
If you want a particular VM always to have the same IP address, you can use DHCP reservations to assign a specific IP address to the VM.
A DHCP reservation is an entry in the DHCP server’s database that reserves an IP address for use by a specific device on the network.
How to reserve DHCP IP Address for virtual machine Hyper-V
- From the Hyper-V Manager, select the virtual machine for which you want to configure a static IP address and click Settings.
- In the left navigation panel of the Settings window, click Network Adapter.
- In the network connection list for the selected virtual machine, click on the network adapter to which you want to assign a static IP address and click Edit.
- In the Editing window that opens, select Manual under IPv4 Address and enter the static IP address you want to use for this virtual machine in the IPv4 Address field.
- If you want to use a different subnet mask than the one entered by default, enter it in the Subnet Mask field.
- If you want to use a different default gateway than the one entered by default, enter it in the Default Gateway field.
- If you want to use a specific DNS server, enter its address in the DNS Servers field. You can also enter multiple DNS servers by separating them with commas (,).
- Once you have configured all of the static IP settings you want to use for this virtual machine, click OK.
How to Configure a DHCP Reservation for a Virtual Machine
A DHCP reservation ensures that a specific IP address is always assigned to a specific device on your network.
This is useful to ensure that a virtual machine always has the same IP address. You can configure a DHCP reservation for a virtual machine by following the steps below:

- Open the Hyper-V Manager.
- In the left pane, expand your server and click on the “Virtual Machines” node.
- In the right pane, select the virtual machine you want to configure a DHCP reservation and click the “Settings” button in the Actions pane.
- Select the “Network Adapter“ settings category in the left pane of the Settings window and click on the “Advanced Features” button in the right pane.
- Check the “Enable DHCP Reservation” checkbox and enter the desired IP address in the “Reserved IP Address” field.
- Click OK to save your changes and close the Settings window.
How to Test the DHCP Reservation:
- On the DHCP server, open the DHCP console.
- In the left pane, expand the DHCP server, and then expand IPv4.
- Click the scope where you want to test the reservation in the right pane.
- In the address pool for that scope, find a computer assigned an address by DHCP (this will be listed as dynamic in the Lease column).
- Right-click the computer object, and then click Properties.
- In the Properties dialogue box for that scope, click the IPv4 tab, and then click Properties.
- Click to select the Obtain an IP address automatically check box, and then click OK three times
Conclusion:
So, in summary, you can either statically assign an IP address to your virtual machine or configure the DHCP server to reserve an IP address for your virtual machine.
If you need to change your virtual machine’s IP address, you can either change the static IP address or release and renew the DHCP lease.
Please let us know your thoughts on how to reserve DHCP IP Address for virtual machine Hyper-V, a post we have covered in the comment section below.