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


GPO: Managing Windows Firewall Rules

SummaryPresentationConfiguring Group Policy (GPO)Conclusion Presentation In this tutorial, we will see how to add rules to the Windows Firewall using Group Policy. For information, the Windows Firewal

VPN Server with Windows Server: Installation and Configuration

In this tutorial, I will explain how to set up a VPN server on Windows Server with the role of remote access and configure access with NPS. When setting up a VPN server with Windows, 3 types of VPN se

Failover Clustering Windows 2016/2019 – Installation and Configuration

Presentation The failover clustering feature ensures high availability of a service by using multiple servers (nodes) that can make it work. Some examples of services that can be used with the Failove

Scroll to Top