Skip to main content

Configuring Nic for hyper-v

So you installed hyper-v and you need configure your NIC with your pub IP and you secondary IP's, let me show you how.

First create the vswitch in you hyper-v manager settings.

Capture.PNG

Then, go to the IPv4 settings of your new hyper-v vswitch and add your primary IP.

Capture2.PNG

To add you secondary IP's, you will need to go the the advanced options and put in the first usable address of your subnet, not the broadcast address but the first usable address and it's subset.

You will then use that address as the gateway to your VM's.

Capture3.PNG

Last step will be to enable ip forwarding, open power-shell as admin and type the following commands :

netsh
netsh> interface ipv4

   Then the following command to view the list of available interfaces

netsh interface ipv4> show int

   To view the interface settings, replace "15" by the proper ID :

netsh interface ipv4> show int 15

   And finally, the following command to enable IP forwarding :    

netsh interface ipv4> set int 15 forwarding=enabled    

Capture4.PNG