You have posted to the Windows Server Hyper-V forum. When you say you are creating a NAT switch, I assume you are talking about Hyper-V on Windows 10. Networking is one area where Hyper-V is slightly different on client than on server, so you would be better served by asking the client Hyper-V experts in their forum - https://learn.microsoft.com/en-us/answers/topics/windows-10-virtualization.html
Hyper-v natswitch no internet
Matt Oney
26
Reputation points
I created a hyper-v natswitch with powershell
New-VMSwitch –SwitchName “NAT-Switch” –SwitchType Internal –Verbose
Get-NetAdapter
New-NetIPAddress –IPAddress 192.168.200.1 -PrefixLength 24 -InterfaceIndex 60 –Verbose
New-NetNAT -Name "NATNetwork" -InternalIPInterfaceAddressPrefix 192.168.200.0/24 -Verbose
assigned a guest vm to the switch and gave it an ip address
but I can't get to the internet...
I can ping google.com from the guest vm
I'm not sure what else to try.
I've been looking at this for days...does anyone have any suggestions? I'd really appreciate it!!