Hyper-V: Create a virtual switch

Presentation

A virtual switch in Hyper-V is a virtual switch that allows the connection of network adapters to be created using Hyper-V (virtual machine or host).

Under Hyper-V, there are 3 types of virtual switches:

  • External : Create a physical switch that is attached to the physical network adapter so that computers can access a physical network.
  • Internal : Create a virtual switch that can only be used by virtual machines running on this physical computer, and between virtual machines and the physical computer. An internal virtual switch does not provide connectivity to a physical network.
  • Private : Create a virtual switch that can only be used by virtual machines running on this physical computer.

Create a virtual switch

Open the Hyper-V Manager Console and click Virtual Switch Manager … 1 located in the Action menu on the left.

Gestionnaire Hyper-V

Select the type of virtual switch to create (External) 1 then click Create virtual switch 2 .

Gestionnaire commutateur virtuel

Configuring the virtual switch :

Commutateur virtuel : configuration
1 : Enter the name of the switch, as part of a cluster put the same name on all nodes.
2 : Select the “physical” card linked to the switch, in the case of a teaming select the Multiplexor card
3 : Uncheck Allow the operating system to share this network adapter if the network adapter is dedicated to virtual machines.
4 : Click on Apply.

If you have only one physical network card, leave check “Allow the operating system to share this network card”.

Confirm the creation of the switch by clicking Yes 1 .

Confirmer la création

The switch is created, click OK to close the Manager.

Commutateur créé

In the Control Panel / Network Connection, open the network adapter properties related to the virtual switch, you can see that the IP protocols are disabled.

Paramètres carte réseau

Additional information about virtual switches

  • It is possible to create multiple switches per Hyper-V host.
  • A network adapter can only be linked to one switch.


Related Posts


DNS Resolution Based on Client IP Address with Windows Server

In this tutorial I will explain how to make sure that the DNS resolution with Windows Server is done according to the IP address of the client. There are two solutions that we will see in this article

Work Folders: Installation and Configuration

Presentation The Work Folders feature allows you to set up a personal folder synchronized with a file server in HTTP (s) using a client available on Windows, Android and Apple. If web access is publis

Installing the .NET Framework 2.0 / 3.5 on Windows Server

Many applications still need the .NET Framework 2.0 or 3.5 to work. For client computers, simply download and install. On Windows Server, the installation goes through the addition of roles and featur