Answered Hyper-V 2012 VLANs

  • Friday, February 01, 2013 5:59 AM
     
     

    Hi:

    I just purchased (4) HP DL385p Gen8 servers, loaded all four with Windows 2012 Datacenter and have the network setup as listed below.  I have the HyperV role setup on the 1st server and I am trying to get one VM working as desired.  I'd like when I change the VLAN ID on the Guest VM NIC from 100 to 110 (or other VLANs we have) that it changes IP addresses and passes traffic, I am having trouble getting this to work.  I have a 2008R2 6 node Hyper-V cluster working as specified, only difference is the ability to use "VLAN Promiscuious" - apparently HP doesn't have a compliant version of the HP Network Configuration Utility for Server 2012 and they recommended we use the Server 2012 Built in NIC teaming.

    Networks:

    NIC 1:  PRIVATE  (Heartbeat non-routable)

    NIC 2:  PUBLIC (HOST MGMT)

    NIC3:  EXTERNAL1

    NIC4:  EXTERNAL2

    TEAM: Both NIC 3 & 4 - (VM NETWORK)

    I have Port Channel setup on the Cisco Switch and the modes for where both External 1 & 2 terminate to the Cisco Switch in Trunk Mode.

    Help!

    -Stangride

All Replies

  • Friday, February 01, 2013 2:58 PM
     
     

     I'd like when I change the VLAN ID on the Guest VM NIC from 100 to 110 (or other VLANs we have) that it changes IP addresses and passes traffic, I am having trouble getting this to work. 

    I'm not surprised you are having problems getting this to work.  It is not designed to work that way.  VLAN ID assignment and IP address assignment are mutually exclusive events.  You could write a script to change them both at the same time, but changing VLAN ID will have absolutely no impact on IP address, or vice-versa.

    .:|:.:|:. tim

  • Friday, February 01, 2013 7:42 PM
     
     
    My question is why are you switching between VLANs? And can you instead create two different NICs vs having to change the ip on a single nic all the time?
  • Saturday, February 02, 2013 8:34 PM
     
     
    I plan to setup my cluster similarly using a port channel between two Cisco switches that trunk all VLANs between each other and on the port channel. I assume you know you need different IP schemes for each VLAN if you are routing between them at the switch. Changing the VLAN tag on the VM has nothing to do with the IP scheme are already indicated. I suppose you could use DHCP reservations for each VLAN but that's a bit overkill.
  • Saturday, February 02, 2013 8:39 PM
     
     

    On your router You will have to have Virtual adapaters with an IP assigned to it in the correct subnet and the VLAN tag of course. Also note if you are running a full clustered enviroment with iscsi SANs, you should have a different switch for iscsi traffic.

  • Sunday, February 03, 2013 1:39 AM
     
     Answered

    All:

    I was able to get this to work as desired.  To be clear, we segment our network with VLAN's (Imagine that!) and is why we have some VM's on one vlan and some on others.  Once a VM is set to a specific VLAN, it doesn't change all of the time.

    We have an HP Core Switch that has all of our VLAN's defined, each VLAN has an IP address "The Gateway for that subnet" and an IP Helper address for DHCP to work.

    Then, we have Cisco Switches where we have all four server ethernet interfaces terminating to.  Ethernet interfaces on the server (3 & 4) are configured as a NIC Team on Server 2012 using mode "Switch Independent", Load Balancing "Hyper-V Port" and Standby Adapter set to "None - both active".  Where these terminate to on the Cisco Switch, say port 7 & 8 are set with a Port-Channel Group with mode Trunk. 

    This setup allows the IP address to be Dynamically assigned on a VM Guest by setting the VLAN ID on the VM Guest Settings>Network Adapter page.

    Tim:

    So, by changing the VLAN ID does have an impact on which IP address gets assigned here.

    Thanks,

    Stangride



    • Marked As Answer by stangride Sunday, February 03, 2013 1:39 AM
    • Edited by stangride Sunday, February 03, 2013 1:41 AM
    • Edited by stangride Sunday, February 03, 2013 1:41 AM
    •  
  • Monday, February 04, 2013 1:57 AM
    Moderator
     
     

    Hi,

    Thanks for sharing your experience!

    You experience and solution can help other community members facing similar problems.

    Thanks for your contribution to Windows Server Forum!

    Have a nice day!

    Lawrence

    TechNet Community Support