Thursday, April 18, 2013

VLAN Tricks with NICs - Teaming & Hyper-V in Windows Server 2012

How do I add Multiple VLAN's to my Windows 2012 Hyper-V server?

Turns out there there are 2 ways to do this.  The choice of which is better depends on your application of the VLANs
  1. Add another Team Interface and VLAN to your NIC Team
  2. Configure all VLANs within the Hyper-V Virtual Network Switch
According to the original post, for VM's to access VLAN's, it is recommended to use method 2.
I think, however, that Option 1 is the only workable option.  Especially for isolating Replication traffic.

Option 1 ) How to add another Team Interface and VLAN to a NIC Team?

To add a new Team Interface to an existing team, launch the NIC Teaming wizard from the Local Server page in Server Manager:
  1. Select your existing NIC Team in the “Teams” list box, and then select the “Team Interfaces” tab in the “Adapters and Interfaces” list box. Click on the Tasks menu and click Add Interface.

    NICTeamVLAN01
  2. In the New team interface dialog box, type the VLAN ID to assign to the new interface in the Specific VLAN field and click the OK button.

    NICTeamVLAN02
  3. You will now see two team interfaces associated with a single NIC team – the original team interface still operating in “default” mode and the new team interface that is assigned to a specific VLAN ID.

    NICTeamVLAN03
Alternatively, the Add-NetLbfoTeamNIC PowerShell 3.0 cmdlet can be used to configure a new team interface on an existing NIC team using the following command line
Add-NetLbfoTeamNIC -Team NetTeam01 -VlanID 56

    Thanks for this original post:
    http://blogs.technet.com/b/keithmayer/archive/2012/11/20/vlan-tricks-with-nic-teaming-in-windows-server-2012.aspx
    :
    Also, see How-to-blog/how-to-use-hyper-v-replicas-in-windows-server-2012/
    And Deploy Hyper-V Replica

    Also see How to configure your Switch for Teaming

    No comments: