Hyper-v natswitch no internet

Matt Oney 26 Reputation points
2020-07-27T20:59:09.207+00:00

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
enter image description here

but I can't get to the internet...
I can ping google.com from the guest vm
enter image description here

but I can't get to google.com
enter image description here

I'm not sure what else to try.

Ubuntu doesn't work either -
enter image description here

I've been looking at this for days...does anyone have any suggestions? I'd really appreciate it!!

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,538 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,364 questions
{count} vote

1 answer

Sort by: Most helpful
  1. TimCerling(ret) 1,156 Reputation points
    2020-07-28T13:17:27.647+00:00

    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

    0 comments No comments