In certain situations, it is necessary to activate a network card’s "IP Forwarding" option in order to be able to communicate with the virtual machines installed on a Hyper-V virtualization server. Use the following steps to activate this option on your physical server.
1- Connect to your server via Remote Desktop.
2- Click on the Windows logo+R at the same time to open the Run Dialog Box, then type in the command "cmd" to launch the command prompt.
3- To open the registry editor, type in the following command:
4- In the tree view, locate the following registry subkey:
5- Locate the registry subkey "IPEnableRoute", double-click or right-click on it, then select the Decimal Base and type in the value "1". ("1" means to activate the option "IP Forwarding" for all network cards)
6- Close the registry editor.
7- Restart your server.
The following instructions are to verify that the option "IP Forwarding" has been properly activated for your network card.
1- Once the server has restarted, reconnect via Remote Desktop.
2- Launch the command editor PowerShell.
4- Enter in the context "IPv4".
4- Entrez dans le contexte "IPv4"
This command will display the list of network cards, loopback cards and virtual switches configured on your server.
The command’s first column of results contains the Indexes "Idx" of each network card.
6- Use the following command to display the details of the network interface of your choice.
Replace <Idx> with the ID of the network card of your choice. For example:
show interface <Idx>
Exemple : show interface 19