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


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

Installing and Configuring Storage Spaces Direct (S2D) on 2 VMs

In this article, we will see how to set up Storage Spaces Direct under two VMs. S2D is the solution hyperconverged of Microcrost arrival with Windows Server 2016. I also took advantage of this lab to

Admin Center: Create a Virtual Machine on a Hyper-V Host

Introduction In this tutorial, we will have how to create a virtual machine with the Admin Center interface on a Hyper-V host. Prerequisites: Admin Center installed Hyper-V server Server added in the