Hyper-v - Ubuntu 20.04 - Checkpoint VPN - NAT not working

New Contributor

Hi all,


I follow this guide https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/setup-nat-network to setup a NAT


My commands should be

New-VMSwitch -SwitchName "NATSwitch" -SwitchType Internal
New-NetIPAddress -IPAddress -PrefixLength 24 -InterfaceIndex 74
New-NetNat -Name NATNetwork -InternalIPInterfaceAddressPrefix

Then in VM settings, I choose the "Virtual switch" = NATSwitch

Then in Ubuntu I configure the network as

IP =
Default gw:


But in my VM, the network is unconnected (even I start VPN or not)


What I am wrong? please help

1 Reply

Still not able to connect by using NAT but using the adapter Internet Connection Sharing feature can resolve it. This is just a workaround, I have to do it everytime I connect to VPN