I am setting up a Hyper-V host on a Windows Server Core 2016 to host a bunch of testing VMs that need to be totally separated from the main network. That’s why I need the Route and Remote Access service enabled on server core to act as a NAT to provide Internet access to all these VMs.
Install the Remote Access Server Role
1. On Server Core console, type PowerShell to start.
2. Install Remote Access feature by
Then, type Restart-Computer to restart the computer.
3. Once rebooted, install Remote Access PowerShell module by:
No need to restart the computer.
4. Install the Routing feature by:
Type Restart-Computer to restart the computer.
Configure and enable Routing
It’s easier to use Remote Access Management Console on Windows 10 computer to configure and enable the routing feature. Download and install Remote Server Administration Tools for Windows 10 as Remote Access Manager is part of that toolkit.
Launch Remote Access Management Console and click Manage a Remote Server on the right Tasks list.
Once connected successfully, click DirectAccess and VPN on the left pane and Open RRAS Management under VPN on the right.
In Route and Remote Access, click Action and choose Configure and Enable Routing and Remote Access to launch the configuration wizard.
Select Network address translation (NAT) option from the list, and Next.
Select the NIC that has internet access to Provide internet and the private Virtual Switch for VMs as the Internal Network. If all go well as planned, you will be up and running in a few seconds.