Figure A: Check the Enable Virtual LAN Identification for the Parent Partition checkbox and provide the VLAN ID number
Virtual machine
In addition to being able to configure the parent partition to support VLAN traffic, you can also enable VLAN support on virtual machines. This activation is also done through the Hyper-V Manager console.
To enable VLAN support on the virtual machine, open the Hyper-V Manager, right-click on the virtual machine you want to configure. Choose the Settings command from the right-click menu and you will be taken to the Settings page of the virtual machine.
Select the network adapter you want to enable VLAN support. As you can see in Figure B, you can enable VLAN support by selecting the Enable Virtual LAN Identification checkbox and providing VLAN ID.
Figure B: The VLAN support configuration process on the client is very similar to the method used to provide VLAN support for the parent partition.
As you can see in the image above, you can see that the Enable Virtual LAN Identification option is still in gray. There are two things that cause this problem. It is possible that VLAN configuration options are not available if physical network hardware does not support the use of VLANs. Secondly, these options may be grayed out because the virtual machine is currently running.
Additional connection
When enabling VLAN support for the parent partition, we did this by selecting a network adapter attached to the Hyper-V virtual network and then configuring the settings for that adapter. This is not only the main method for enabling VLAN support at the parent partition level but it also has many other effects.
Usually Hyper-V is configured for many physical adapters. In these cases, at least one adapter will be used exclusively for the parent operating system. This method allows remote management, patch management, etc. However, since this adapter is not connected to a virtual switch, you will not be able to use the Hyper-V Manager interface to enable VLAN support for the adapter.
Before going on to introduce how to enable VLAN support for adapters, you need to know that this technique should only be used for network adapters that are not connected to the Hyper-V virtual network. If an adapter is being used by Hyper-V, you need to use another configuration method that we discussed above.
Here's how to do it, first you need to open Control Panel and click on the Network and Internet icon. Next open the Network and Sharing Center and then click the Change Adapter Settings link . Now Windows will display all physical network adapters installed in the server. Right-click on the adapter you want to configure and select Properties from the menu that appears. You will then see the adapter properties page. Click the Configure button, Windows will display a different property page. Go to the Advanced tab of the properties page, as shown in Figure C.
Figure C: You can enable VLAN support at the network adapter level
As you can see in the image above, you need to use the Priority & VLAN option to enable VLAN support for the adapter. After doing so, use the VLAN ID option to specify the VLAN ID, then click OK . If these options are not available, it also means that your network card does not provide VLAN support.