How to Create an External Hyper-V Virtual Switch
Applies to: Windows Server 2019, 2022 and 2025.
An external switch connects VMs to a physical network adapter. Creating it can briefly interrupt host networking, especially during remote administration.
Hyper-V changes affect network and workload availability. Keep console access and tested VM backups. Visit networkmanager.info for managed Windows VPS services.
Prerequisites
- Maintain console access.
- Identify the correct physical adapter and VLAN design.
- Record host IP configuration.
- Confirm NIC teaming or SET requirements.
Procedure
Step 1: List adapters
Identify by name, status and MAC.
Get-NetAdapterStep 2: Review existing switches
Avoid binding conflicts.
Get-VMSwitchStep 3: Create external switch
Allow the management OS to share the adapter when intended.
New-VMSwitch -Name 'External-LAN' -NetAdapterName 'Ethernet 2' -AllowManagementOS $trueStep 4: Configure VLAN if required
Apply VLAN to the management adapter only from the approved design.
Step 5: Test host and VM paths
Confirm DNS, gateway and management access.
Verification
Inspect switch type and attached adapter.
Get-VMSwitch -Name 'External-LAN' | Format-List
Get-VMNetworkAdapter -ManagementOSRollback
Restore host networking through console. Remove-VMSwitch only after disconnecting or moving every VM adapter.
Operational notes
Never guess the adapter name in a remote-only session.
Official references
Explore Netcloud24 Canada.