This article will help us to configure Virtual Machines using multiple subnets in Microsoft Hyper-V using Virtual Switch Manager on Windows 2016 server and How Virtual machine communicates with other subnet physical Host Machines using External Switch.

About Hyper-V Virtual Switch Manager:

The Hyper-V Virtual Switch is a software-defined, layer-2, Ethernet network-traffic switch. A virtual switch allows virtual machines created on Hyper-V hosts to communicate with other computers. Virtual Switch allows administrators to connect VMs to either physical or virtual networks.

Virtual Switches & Types :

A Hyper-V virtual switch allows virtual machines created on Hyper-V hosts to communicate with other computers. There are three types of Virtual Switch (Network) you can create and use on a Hyper-V server.

Download Banner

Types of Virtual Switches are:

  1. External Switch
  2. Internal Switch
  3. Private Switch

External Switch:

External Switch allows the virtual machines to communicate with other physical machines on your network through the physical network adapter on the Hyper-V server.

Physical-switch

Internal Switch:

Internal switch allows communication between the virtual machines and the physical host machine on which Hyper-V is installed.

Hyper-V-host-machine

Private Switch:

Private Switch allows communication between virtual machines on the same Hyper-V server. A private network is isolated from all external network traffic on the Hyper-V server. This type of network is useful when you must create an isolated networking environment, like an isolated test domain.

VM-virtual-adaptor

Creating Virtual Switch using Hyper-V Manager:

To create Virtual Switch you can go to Hyper-V Manager and click action and its shows Virtual Switch Manager.

virtual-switch-manager

After clicking the Virtual Switch Manager, it displays types of switch you want to create. Based on your requirement you can select the Virtual Switch, as displayed below.

New-virtual-switch-network-IP

Configure External Virtual Switch

External Virtual Switch allows Virtual Machines on the host to access other systems on a traditional VLAN or standard switched network. Below screenshots show about Creating External virtual switch network in Hyper-V on Windows 2016 Server.

Go to Virtual Switch Manager in Hyper-V Manager Action Tab.

New-virtual-network-switch

And select External and click on Create Virtual Switch. You can change the Name and click ok.

Virtual-switch-properties

Now you will get the alert message for Network connectivity getting disturbed, click yes.

External-virtual-switch

After that, New External switch gets displayed in Virtual Switches, you click and check.

External-virtual-switch-external

Note: To create an External Switch you have one dedicated physical Network card in the Host machine.

After creating the External Switch, you can verify with Network connections in the Physical machine and Virtual Switch Manager.

vEthernet

Configure Virtual Machine for External Switch:

Go to Hyper-V Manager and Virtual Machines and select VM to configure external Switch and right click the VM and go to setting as displayed below

Hyper-v-manager-setting

After selecting the setting, go to Network adapter and you can select Virtual Switch option(External Switch), as displayed below.

Network-adaptor

Now configure Virtual machine ip address(192.168.103.xx), as mentioned below. Physical machine already configured as different IP address(192.168.102.xx).

Microsoft-hyper-v-virtual-adaptor

Now you can be able to ping external IP address from Virtual machine.

Administrative-cmd

Configure Private Switch:

Go to Virtual Switch Manager in Hyper-V Manager Action Tab.

New-virtual-switch-network-private

And select private and click on Create Virtual Switch. You can change the Name and click ok.

private-virtual-switch

Configure Virtual Machine for Private Switch:

Go to Hyper-V Manager and Virtual Machines Tab and select VMs to configure Private Switch and right click and go to setting as configured as an External switch before.

Here Two Virtual machines created for Private Switch configuration, configured IP address as 192.168.102.183 & 192.168.102.141 and DNS IP address not required. Once configured IP address then you can able to ping VM ips.

administrative

Use-the-following-IP-adress

Internal Switch:

Go to Virtual Switch Manager in Hyper-V Manager Action Tab.

New-virtual-switch-network-internal

And select Internal and click on Create Virtual Switch. You can change the Name and click ok.

New-virtual-switch-network-internal

Once you had created Internal switch you can see the Network Adapter in Physical Machine Network connections, as displayed below.

vEthernet-internal

Configure Virtual Machine for Internal Switch:

Go to Hyper-V Manager and Virtual Machines Tab and select VMs to configure Internal Switch and right click and go to setting as configured as External/Private switch as before.

For Internal Switch we need to configure IP address on both physical machine Internal Switch Network Adapter and VM machine Network adapter in the same series of ip address. Internal Switch is able to ping the Physical machine IP address. Attached below screenshot.

Ping from Hypervisor

vEthernet-internal

Ping from Virtual Machine:

Use-the-following-IP-adress.png

Conclusion:

Using Hyper-V Virtual Switch is quite easy and simple to configure. The Hyper-V virtual switch is available in three different operational modes. Based on our requirement we can select the Virtual Switch.

Note: Based on your Subnet/IP address range you can modify your switch interface VLAN tagging.

Note: Hyper-V Virtual Switch only supports Ethernet and does not support any other wired local area network (LAN) technologies.

Follow our Twitter and Facebook feeds for new releases, updates, insightful posts and more.

Like what you read? Rate us
Multiple VLAN in Hyper-V Using Virtual Switch Manager
2.5 (50%) 8 votes