If you have an Intel card and the necessary “Advanced Network Services (ANS)”, that is bundled with the Intel driver, you have the capability to manage VLans for your network interface with PowerShell.
1. Use the “ipconfig” command to find out the name of your adapter. Example :
PS C:\WINDOWS\system32> ipconfig Windows IP Configuration Ethernet adapter Ethernet0: Connection-specific DNS Suffix . : IPv4 Address. . . . . . . . . . . : 10.1.1.50 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 10.1.1.1
In that case, our adapter name is “Ethernet adapter Ethernet0”.
2. Use the following command to create the tagged interface(s) :
Add-IntelNetVLAN -ParentName "Ethernet adapter Ethernet0" -VLANID <vlan-id>
Note : Run the command with the desired VLan ID as much as you need to create the tagged interfaces.
3. In the even you’d like to have the primary interface untagged (most likely to be used with native-vlan-id) and tagged sub interfaces, do the following :
Add-IntelNetVLAN -ParentName "Ethernet adapter Ethernet0" -VLANID 0 Add-IntelNetVLAN -ParentName "Ethernet adapter Ethernet0" -VLANID <vlan-id>