Windows

Leveraging Hyper-V to Add VLANs in Windows 11

Posted April 13, 2024

By Kevin Schwickrath1 min read

As mentioned in my last post, I recently upgraded one of my Windows 10 machines to Windows 11. In the process, I discovered that Intel is no longer supporting Intel PROSet beyond Windows 10.

Unfortunately, I used PROSet to configure VLANs to access my lab environment.

It never occurred to me to use Hyper-V until I stumbled on this post. Check the sources below for a link to Alexander Täffner’s post. He did a good walkthrough on setting up Hyper-V if you need it.

Terminal window
# List your network adapters and note the "Name"
Get-NetAdapter
# Create a new vSwitch bridging the physical NIC "Ethernet"
New-VMSwitch -name VLAN-vSwitch -NetAdapterName Ethernet -AllowManagementOS $true
# Create a new virtual Host-NIC and assign a VLAN to it
Add-VMNetworkAdapter -ManagementOS -Name "LabLAN" -SwitchName "VLAN-vSwitch" -Passthru | Set-VMNetworkAdapterVlan -Access -VlanId 99
# Add as many virtual NICs as you need
Add-VMNetworkAdapter -ManagementOS -Name "VLAN1024" -SwitchName "VLAN-vSwitch" -Passthru | Set-VMNetworkAdapterVlan -Access -VlanId 1024
# Double check everything is configured
Get-NetAdapter

Sources

Enjoy!

This post is licensed under CC BY 4.0 by the author.

Related Posts

Change Windows 11 Screenshot Folder

Windows · Nov 5, 2024 · 1 min read

I take a lot of screenshots while making documentation. I like them to land in a specific place. Below are the steps to change the screenshot folder in…