On Switch Side
interface Gig1/1 ( select corresponding port here)
description Connection to HyperV
switchport trunk encapsulation dot1q
switch mode trunk
On Windows Server
- On your Hyper-V host, validate that you have connectivity on the NIC that is connected to the interface above
- Right-click on this network, select properties (Windows Server 2008) or clicked Advanced Adapter settings in Windows Server ( 2008 R2 here)
- Verify no configuration settings for the adapter.
Configuring VM to use VLAN
- Create Virtual Machine
- On the Connection selection screen, select the Virtual Network that is trunk ( as above)
- Right-click the VM in Hyper-V console and select settings
- In the properties of the Virtual Machine, select the Enable virtual LAN identification by checking the box. Input the VLAN ID.
5. Completed.