Two Virtual Switches on one physical interface - hyper-v 2019 core.

AdrianNow 1 Reputation point
2020-08-25T09:27:57.513+00:00

Hi everyone,

As I mentioned in a title, we're looking for some specific solution.

We'd like to share one physical interface in our host between two virtual switches which would have other vlan's ranges. First 1-2000 and the second 2001-4096.

Now we've got one physical interface (lacp on two sfp+), one vmswitch (1-4096 vlans) and few virtual interfaces (every has it's own vlan).

So instead of a one vmswitch should be two switches (first 1-2000, second 2001-4096)

Adrian

Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. TimCerling(ret) 1,156 Reputation points
    2020-08-25T13:34:39.223+00:00

    Two switches are not needed to accomplish what you are asking for. When you connect a VM to an External Virtual Switch (i.e. a virtual switch defined to a physical NIC), you connect that VM via a virtual NIC connected to the virtual switch. Simply define the virtual NIC on the VM to have the VLANs you want. A single NIC can have multiple VNICs each with different VLAN definitions.

    1 person found this answer helpful.
    0 comments No comments

  2. Anonymous
    2020-08-26T05:26:40.77+00:00

    Hi,
    You don't need two swithes as you set VLAN IDs in virtual NICs on VMs, not in virtual switches. In virtual switches you can only set VLAN for the Hyper-V host.
    20386-2020-08-26-131742.png

    Best Regards,
    Ian

    ----------

    Please remember to "Accept Answer" and upvote if the reply is helpful.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.