question

MattOney-9817 avatar image
0 Votes"
MattOney-9817 asked Liang-9451 published

Hyper-v natswitch no internet

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][1]


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

but I can't get to google.com
![enter image description here][3]

I'm not sure what else to try.

Ubuntu doesn't work either -
![enter image description here][4]


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


windows-server-powershellwindows-server-hyper-v
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, I meet the same problem as you. Did you found any solution?

0 Votes 0 ·

Hi, I meet the same problem as you. Did you found any solution?

0 Votes 0 ·

1 Answer

TimCerling-5039 avatar image
0 Votes"
TimCerling-5039 answered

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://docs.microsoft.com/en-us/answers/topics/windows-10-virtualization.html

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.