Windows | Setting a VLan ID in the recovery environment

Windows | Setting a VLan ID in the recovery environment

Sometimes it’s possible to configure the recovery environment network adapter with a Vlan ID to connect to a switch that has ID tagging enabled.

The follow steps are dependent on the driver used to load the adapter. For Windows WinPE environments, this isn’t tested and is not supported; however, you may find the information useful.

FYI: Bonding network adapters in the Windows PE environment is also not supported and is not possible.

To set the Vlan ID tag on the adapter, try the steps below:

  1. Accessing the WinPE Registry:
    · Boot the WinPE recovery environment
    · Open the Powershell Prompt using the keystrokes ‘Alt-P’
    · Open Registry Editor: Run the command

regedit

Navigate to the Network Adapter Key: Navigate to the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4d36e972-e325-11ce-bfc1-08002be10318}.

Identify the NIC: Locate the subkey (e.g., 000x) corresponding to the network adapter you want to configure.

  1. Setting the VLAN ID:
    · Create a String Value: In the NIC’s subkey, create a new String Value named “VlanID”.
    · Set the VLAN ID: Set the Value data of the “VlanID” String Value to the desired VLAN ID (e.g., 100).

  1. Restarting the Network Adapter
    · Use netsh commands: Use the following commands to disable and then enable the network adapter:

netsh int set int ‘InterfaceName’ disabled

netsh int set int ‘InterfaceName’ enabled

(where ‘InterfaceName’ is the name of your network adapter)

  1. Test Connectivity: Test connectivity to resources on the VLAN to ensure it’s working correctly.