Hyper V VM Running DHCP for multiple VLANs
Posted on 2015-01-12
I am testing a Hyper V Guest config and here is the outcome that I need to achieve.
I have Server 2012 R2 running DHCP. The DHCP has two scopes configured on it: 192.168.1.x/24 for the data (untagged) VLAN and 10.0.1.x/24 for the voice (tagged) VLAN. I can get DHCP from the data VLAN but no requests are sent to the second scope as is the behavior of a physical DHCP server.
One Virtual Network switch which run on a 2 NIC team
The VM DHCP sever has two virtual network adapter network adapters (I originally tried it on one NIC and could never get it working)
The physical switch (HP 1910-8G-POE for my lab) connecting to the server is using two ports, both configured as trunks with untagged data VLAN and tagged voice VLAN. The switch is running an IP helper to direct all secondary subnet clients to the DHCP server address.
Thus far I have tried everything I could find on the internet including adding a second virtual NIC in the server and tagging on and untagging the other then configuring the physical switch to match on it's trunk ports. I have also run the powershell command: Set-VMNetworkAdapterVlan -Trunk -VMName "MyVM" -AllowedVlandIdList "10" -NativeLandId 1
I can communicate on both VLAN from a client device on either subnet but the DHCP requests will not be answered on any VLAN other that the untagged VLAN. When I run the Powershell command listed above communication of both subnets stops altogether on the VM DHCP server.
Any thoughts from anyone on this? Has anyone encountered this and overcome it?