Sunday, November 21, 2021

Hyper-V NAT network setup using the default switch

This was the easiest guide to use the default virtual switch to enable NAT for the VMs to download patches from the internet without adding more IP addresses to your network. Basically steps are: 1. Start Powershell as administrator 2. PS C:\WINDOWS\system32> Get-NetAdapter 3. "Extract the ifIndex for the Hyper-V Virtual Ethernet Adapter. In my case it was 28" 4. PS C:\WINDOWS\system32> New-NetIPAddress -IPAddress -PrefixLength 24 -InterfaceIndex 28 5. PS C:\WINDOWS\system32>New-NetNat -Name NAT -InternalIPInterfaceAddressPrefix 6. After that, go to the VM and assign a static IP address to the VM as with subnet mask as and gateway as DNS settings can be

No comments:

Installing ubutun on old intel macbookpro

After gettting a new last of the intel macbook air, I decided to install ubuntu on my older mac. The setup was fairly simple after download...