Hi all
I've popped a question into the Powerhsell forum this morning, and realised it may have been more suitable in Hyper-V section due to the nature of the question. Apologies if dual posting is not the done thing.
My original question can be seen here: https://social.technet.microsoft.com/Forums/scriptcenter/en-US/5b12e416-ffc9-4391-b3f1-91fdb192f11a/hyperv-trunk-mode-to-vm-how-to-target-a-specific-virtual-nic-using-powershell?forum=winserverpowershell
Essentially, my question is around a VM that currently has 8 x vNIC's, but needs to communicate over 9 x vlans at present. I have attempted the following command in a test environment, but I can't see how this would comms over a specific vNIC; it looks like its a global command to the target VM:
Set-VMNetworkAdapterVlan -VMName test1 -Trunk -AllowedVlanIdList "1-5" -NativeVlanId 6
Is there a way to target a specific vNIC on a VM with the above command at all, or is there a better way to enable trunk mode to the intended VM please?
Thanks
Paul