Link to home
Start Free TrialLog in
Avatar of Jan Vojtech Vanicek
Jan Vojtech VanicekFlag for Czechia

asked on

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

Hi experts!
I have to reformulate my another question. (https://www.experts-exchange.com/questions/28476043/VLAN-aware-VM-in-Hyper-V-2008-R2.html?anchorAnswerId=40196676#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
Avatar of Mahesh
Mahesh
Flag of India image

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
Avatar of Jan Vojtech Vanicek

ASKER

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
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
Physical machine can handle it... Kerio Control, Mikrotik and others can handle VLAN trunk connected directly to NIC
ASKER CERTIFIED SOLUTION
Avatar of Svet Paperov
Svet Paperov
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial