I have a MS server 2008 R2 with Hyper V as a role with a VM that needs to allow tagged traffic from the VM through to my network. I found instruction for 2012 PowerShell commands as noted below:
however these commands don't work in 2008 R2. can you help with the commands to allow all tagged traffic through?
To see the list of adapters and assignment, use the following script:
Get-VMNetworkAdapter -VMName <C9800-name>
Note To rename the adapter name, use the following command:
Rename-VMNetworkAdapter -VMName <C9800-name> -Name '<C9800-adapter-name>' -NewName 'Eth1' Here, Eth1 is the adapter name.
To configure Ethernet1 (data port/management) as Trunk, with Native VLAN id as 0, use the following script:
Set-VMNetworkAdapterVlan -VMName “C9800” -VMNetworkAdapterName Eth1 -Trunk -AllowedVlanIdList “1-4000” -NativeVlanId 0
To configure Ethernet0 (serial port) as access or untagged, use the following script:
Set-VMNetworkAdapterVlan -VMName “C9800” -VMNetworkAdapterName Eth0 -Untagged