Hi,
I'm trying to figure out how to configure a vswitch with multiple VLANs for VMs. I have an external switch configure but can only set it for one VLAN ID.. How can I add more? would I create an internal vswitch to add more VLANs?
Thanks.
Dan
Hi,
I'm trying to figure out how to configure a vswitch with multiple VLANs for VMs. I have an external switch configure but can only set it for one VLAN ID.. How can I add more? would I create an internal vswitch to add more VLANs?
Thanks.
Dan
Hey @Dan-Wages ,
You would configure the VLAN identifier on the properties of the network adapter of the VM, not the virtual switch. Right-click on the VM in the Hyper-V console, and choose settings. Select the network adapter, and enable virtual LAN identification. Then enter the appropriate VLAN ID for that network adapter.
If you had four VMs, you could assign a VLAN ID of '2' to the network adapter of two VMs, and VLAN ID of '4' to the network adapter of the other two VMs. They could all be connected to the same virtual switch. The switch will limit traffic to the appropriate VLAN.
The VLAN ID setting on the properties of the virtual switch is for assigning a VLAN ID to management traffic, not VM traffic.
Hope this helps,
Mike Rodrick
Edutainer, ITProTV
**if the post above has answered the question, please mark the topic as solved.
Thanks Mike, so if the port is flipped to trunk instead of a specific VLAN wont I lose access to the host. Would I then assign the vswitch - (MGMT OS checked) to that VLAN before flipping the port to truck?
Hey @Dan-Wages ,
You're welcome!
I'm not sure I understand the flipping of the port to trunk, I'll have to check with Ronne (he's my go to Cisco guy).
Maybe this will help. The Hyper-V switch uses VLAN ID 1 as a default. (So don't use this ID for your VLANs, it will cause problems) So anything that isn't tagged with a specific VLAN ID is basically on VLAN 1.. Untagged traffic can still flow through the vSwitch. So if you unassigned a VLAN ID on a network adapter of a VM, it would basically default to VLAN 1 and still have access to the vSwitch.
Setting the VLAN ID on the switch is just used to isolate administrative traffic. Makes it more difficult for a VM to intercept or sniff the administrative traffic.
Mike Rodrick
Edutainer, ITProTV
**if the post above has answered the question, please mark the topic as solved.