A
A
Alexander2017-05-12 16:45:26
PowerShell
Alexander, 2017-05-12 16:45:26

How to set up a trunk on a specific vSwitch in PowerShell?

6c88686b28194e27937c4c7d234a6ecd.jpeg
There is a fragment of the network such as in the figure. Hyper-V Created two internal switches VSW-1 and VSW-2 - both are connected to the virtual router R1. The question is how to make a port connected to R1 on a VSW-1 a trunk without touching another VSW-2 switch.
There is a command in PowerShell "Set-VMNetworkAdapterVlan -VMName R1 -Trunk -AllowedVlanIdList 1-100 -NativeVlanId 1" - this command makes ports on two switches connected to R1 a trunk.
I've been looking for how to do this since morning, but I can't find it, please tell me!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question