• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 576
  • Last Modified:

Hyper-v 2012 - trunk with 3 VLAN's


I should configure 3 vSwitches in Hyper-V.  I'm able to define the VLAN inside a VM directly.
Bud instead of giving each Vm a VLAN Id I would like create 3 vSwitche with the VLAN ID. So I do only need to assign the Switch to the VM. So I can avoid to assign individually to each VM (we have 70 VM's) the VLAN.

Has anyone a solution or an idea?

Thanks for any help
  • 4
1 Solution
Cliff GaliherCommented:
That isn't really how hyper-v networking works, and isn't terribly scalable. But I suppose as a workaround (not one I'd recommend), you could use a smart switch and set an untagged VLAN ID to each port that connects to the physical NICs on each virtual switch. Since the v-switches are isolated by Hyper-v a d the upstream ports will be isolated by the physical switch  and the use of port-based VLANs, you'd get the same net effect.
How many network adapters you have on physical hyper-v server ?

I assume that you have 3 VLANS to work with acorss all 70 VMS and you have routing enabled between each VLAN

Now if you have two physical network cards on hyper-V connected to two ports on physical switch, you can do network port level VLAN truncking (all 3 VLAN IDs) on each port which allow you to pass all 3 VLANS traffic through that ports and u don't need to tag VLAN ID on each VM.
Network admins can do that for you
Hpoe that helps

humbbiAuthor Commented:

Sorry for the late answer, was on holoday.
I will make some tests today and tomorrow.
Then i let you know ...

Many thanks
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

humbbiAuthor Commented:

I have solved my Problem with SCVMM. There i can make different Subnets with VLANs.
1. step : Logical Switch
2. step:  Port Proifle
3. step:  Logical Switch
4. step:  Attache the swicth to the Hyper-V Hosts
5. step: Creat the VM

Hope you understand. Many thanks vor all the answers
humbbiAuthor Commented:
humbbiAuthor Commented:
more easyer with SCVMM
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now