Create a VLAN with PowerShell
Add VLANs to the Team:
Use the Add-IntelNetVLAN
cmdlet to create VLANs:
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:
Get-IntelNetVLAN -ParentName "MyTeam"
Remove VLANs:
Delete unwanted VLANs using:
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 moduleImport-Module "C:\Program Files\Intel\Wired Networking\IntelNetCmdlets"
# List available adaptersGet-IntelNetAdapter
# Create a NIC teamNew-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 teamAdd-IntelNetVLAN -ParentName "10GB_Team" -VLANID 10,20,30,40
# Verify configurationGet-IntelNetTeamGet-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.