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

Hi experts!
I have to reformulate my another question. (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2008/Q_28476043.html#a40196676)

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:
http://serverfault.com/questions/518489/send-trunk-directly-to-vm-in-hyperv-2012
LVL 6
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.

MaheshArchitectCommented:
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
0
Jan Vojtech VanicekIT SpecialistAuthor Commented:
Ok, how do you get 20 VLANs to the VM? Maybe Im missing something...
0
MaheshArchitectCommented:
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
0
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.
0
MaheshArchitectCommented:
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
0
Jan Vojtech VanicekIT SpecialistAuthor Commented:
Physical machine can handle it... Kerio Control, Mikrotik and others can handle VLAN trunk connected directly to NIC
0
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.
0

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
Virtualization

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.