This guide explains how to create a NAT network in Hyper-V on Windows Server 2022, and how to configure an Ubuntu VM and a Windows VM with static IP addresses on this network.
-
Open a PowerShell session as an administrator.
-
Create an internal virtual switch named "NAT":