Leveraging Hyper-V to Add VLANs in Windows 11
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.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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
- Solved: Creating Vlans with the ProSet utility in windows 11 not working - Intel Community
- Multiple VLAN’s using Windows 10/11 Onboard Tools
Enjoy!
This post is licensed under
CC BY 4.0
by the author.
Comments powered by Disqus.