Skip to content

Create a VLAN with PowerShell

Add VLANs to the Team:

Use the Add-IntelNetVLAN cmdlet to create VLANs:

Terminal window
Add-IntelNetVLAN -ParentName "MyTeam" -VLANID 10,20,30
  • Replace "MyTeam" with your team name.
  • Replace 10,20,30 with the desired VLAN IDs.

View VLANs**:

Verify the VLAN configuration:

Terminal window
Get-IntelNetVLAN -ParentName "MyTeam"

Remove VLANs:

Delete unwanted VLANs using:

Terminal window
Remove-IntelNetVLAN -ParentName "MyTeam" -VLANID 10
#### **Script Example for Automated Configuration**
Below is a sample PowerShell script to create a team and VLANs on Intel NICs:
```powershell
# Load IntelNetCmdlets module
Import-Module "C:\Program Files\Intel\Wired Networking\IntelNetCmdlets"
# List available adapters
Get-IntelNetAdapter
# Create a NIC team
New-IntelNetTeam -TeamMemberNames "Intel(R) Ethernet Connection X722 for 10GBASE-T", "Intel(R) I210 Gigabit Network Connection" `
-TeamMode AdaptiveLoadBalancing -TeamName "10GB_Team"
# Add VLANs to the team
Add-IntelNetVLAN -ParentName "10GB_Team" -VLANID 10,20,30,40
# Verify configuration
Get-IntelNetTeam
Get-IntelNetVLAN -ParentName "10GB_Team"
  • Sacrificial NIC: At least one Intel integrated NIC or server-grade adapter must be part of the team to allow configuration.
  • VLAN Restrictions: Ensure your switch supports the configured VLAN IDs and is set up accordingly.

This guide outlines both GUI and scripting methods, offering flexibility based on your system’s capabilities.