Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

windows:powershell_commands:nic_teaming [2019/03/07 15:21] (current)
tplecko created
Line 1: Line 1:
 +====== NIC Teaming and VLAN tag ======
 +Create virtual switch
 +<code powershell>​New-VMSwitch -Name "​SETSwitch"​ -AllowManagementOS $false -NetAdapterName "​Eth1","​Eth2"​ -EnableEmbeddedTeaming $true</​code>​
 +Create virtual adapter, connected to newly created switch
 +<code powershell>​Add-VMNetworkAdapter -ManagementOS -SwitchName "​SETSwitch"​ -Name "​Management"</​code>​
 +Set VLAN tag to newly created adapter
 +<code powershell>​
 +# Get adapter into variable
 +$NIC1 = Get-VMNetworkAdapter -Name "​Management"​ -ManagementOS
 +# Set tag (to desired value)
 +Set-VMNetworkAdapterVlan -VMNetworkAdapter $NIC1 -Access -VlanId 121
 +Set adapter IP address, and you're good to go
windows/powershell_commands/nic_teaming.txt · Last modified: 2019/03/07 15:21 by tplecko