How to pass VLAN trunk to VM in Hyper-V 2008 R2

Hi experts!
I have to reformulate my another question. (

It is possible in Hyper-V 2008 R2 to pass VLAN trunk to the VM?

I need to pass 20+ VLANs to my virtual router...

In Hyper-V 2012 R2 it is possible, I need some equivalent to that:
Jan Vojtech VanicekIT SpecialistAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

As long as you tag VM NIC with proper VLAN ID under VM settings \ networking in hyper-v console, your VM can talk to external network with trunk port
No special configuration is required for that.
You need to ensure that trunk port is correctly configured from network end
Jan Vojtech VanicekIT SpecialistAuthor Commented:
Ok, how do you get 20 VLANs to the VM? Maybe Im missing something...
Not sure if understand your query

All you need to do is create trunk (merge) on physical switch port for all those 20 VLANS so that switch port will pass tarffic between those VLANS.
Now assign required VLAN out of 20 to VM network in hyper-v VM settings and that VM should talk to any VLAN out of 20
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Jan Vojtech VanicekIT SpecialistAuthor Commented:
You mean I can use one of 20 VLANs with one VM. My question is to use 20 VLANs with one VM. VM is VLAN aware, it is router, which can route among them, now it is physical, i need to transform it to virtual.
U can,t assign multiple VLANs to either VM or physical server.

When you do trunk, you need to tag perticular VALN ID to VM so that it can tell trunk port that I have traffic from perticular VLAN segment and trunk port will then pass tarffic to appropriate VLANs
Jan Vojtech VanicekIT SpecialistAuthor Commented:
Physical machine can handle it... Kerio Control, Mikrotik and others can handle VLAN trunk connected directly to NIC
Svet PaperovIT ManagerCommented:
Short answer: you cannot do it in 2008 R2. The virtual switch supports VLAN trunk mode but the virtual adapter does not – it can be in access mode only. VLAN adapter trunking is a new feature in Hyper-V 2012.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

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.