How to setup Hyper-V vlans on Windows 11 and Server 2022 using SET (Switch Embedded Teaming)

3 min read 1 year ago
Published on Aug 08, 2024 This response is partially generated with the help of AI. It may contain inaccuracies.

Table of Contents

Introduction

This tutorial will guide you through the process of setting up Hyper-V VLANs on Windows 11 and Server 2022 using Switch Embedded Teaming (SET). This configuration enhances network performance and simplifies network management. By the end of this guide, you will have a fully functional Hyper-V VLAN setup that leverages SET for better efficiency.

Step 1: Enable Hyper-V on Windows 11 or Server 2022

  1. Open Windows Features

    • Right-click on the Start menu and select "Apps and Features."
    • Click on "Optional features" and then select "More Windows features."
  2. Install Hyper-V

    • In the Windows Features dialog, check the box for "Hyper-V."
    • Ensure both "Hyper-V Management Tools" and "Hyper-V Platform" are selected.
    • Click "OK" and restart your system if prompted.
  3. Verify Hyper-V Installation

    • Open PowerShell as an administrator and run the following command:
      Get-WindowsFeature -Name Hyper-V
      
    • Ensure that the Hyper-V feature is installed and running.

Step 2: Configure Switch Embedded Teaming

  1. Open Hyper-V Manager

    • Search for "Hyper-V Manager" in the Start menu and open it.
  2. Create a Virtual Switch

    • In the Hyper-V Manager, click on "Virtual Switch Manager."
    • Select "New virtual network switch" and choose "External" for network connectivity.
    • Name your switch and select the appropriate physical network adapter.
  3. Enable Switch Embedded Teaming

    • In the Virtual Switch properties, check the box for “Enable Switch Embedded Teaming."
    • Click "OK" to save your settings.
  4. Assign VLAN IDs

    • Go back to your virtual switch and select it.
    • Click on "Advanced Features" and enter the VLAN ID you want to assign.
    • Click "OK" to apply the changes.

Step 3: Create and Configure a Virtual Machine

  1. Create a New Virtual Machine

    • In Hyper-V Manager, click on "New" and select "Virtual Machine."
    • Follow the prompts to set up the VM, including memory allocation and storage.
  2. Connect Virtual Machine to the Virtual Switch

    • When configuring the network adapter for the VM, connect it to the virtual switch you created earlier.
    • Ensure that the VLAN ID matches the one assigned in the switch settings.
  3. Finish VM Setup

    • Complete the virtual machine setup by installing the operating system and any required applications.

Step 4: Test Your VLAN Configuration

  1. Start the Virtual Machine

    • Select your VM in Hyper-V Manager and click "Start."
  2. Check Network Connectivity

    • Log in to the VM and open a command prompt.
    • Use the following command to check the IP configuration:
      ipconfig
      
    • Verify that the VM has received an IP address from the appropriate VLAN.
  3. Ping Other Devices

    • Test connectivity to other devices within the same VLAN to ensure proper configuration.

Conclusion

In this tutorial, you learned how to set up Hyper-V VLANs on Windows 11 and Server 2022 using Switch Embedded Teaming. You enabled Hyper-V, configured the virtual switch with SET, created a virtual machine, and tested the VLAN setup. By following these steps, you can enhance your network's performance and manageability. For further reading, consider visiting the blog post linked in the video description for more insights on Switch Embedded Teaming.