STS Host and Tech Knowledge base
Close this search box.

Assign IP On virtual machines from Hyper-V Windows Server

In this article we will learn how to use network bridge in order to configure and assign Public IP Fail over to the VM to access the internet.

How to add IP On VM using Hyper-v ?

Make sure you have the following Requirements:

  • Dedicated Server with Windows Server 2012 or later .
  • One Failover IP and MAC address of the fail-over IP.

Apply these steps to start adding the VM to your IP:

Create Virtual Switch on Main Server Hyper-V

  1. Run IPconfig/ALL command to get all IP Configurations on the main server.
  2. Create New Virtual Switch In the Hyper-V Manager.
  3. Set your Connection Type to External.
  4. Choose the Adapter Associated with your server’s IP.
  5. Check Allow Management OS to share this network Adapter.

Add Virtual MAC Address of The VM on Hyper-V

After that you can change the settings of the VM that hosted on your server by adding the MAC address of the Fail-Over IP, “Please Note that the VM server status should be shutdown“.

  1. Choose the VM Server that you want to edit.
  2. To edit Virtual Machine Properties Click VM Settings.
  3. Expand the network Adapter of the VM and click Advance Features.
  4. Set the MAC address to “Static” and enter the fail-over virtual MAC address .
  5. Click OK to apply the changes.

Configure the Network Adapter inside the VM Windows Server

Here we will start configuring the VM network adapter to assign the IP and Gateway and DNS Server.

  1. Start the VM and login as administrator.
  2. Go to Control Panel > Network and Share Center.
  3. Click the Ethernet Link connections.
  4.  Press the properties to view Ethernet properties.
  5.  Choose Internet Protocol Version 4 (TCP/IPv4).
  6. Click the Properties button to show IPv4 Properties.
  7. Now from the IPv4 Properties select use the following IP address.
  8. Add the IP and subnet details.
  9. Reboot the VM server to let the changes get affected.

Share Article

Related Articles