Using Windows Server as a Network Router for communication across two Subnets

In this post we are going to look at setting up RRAS on a Windows Server’s in VMware, to allow communication between two subnets for RDP Remote Desktop Connections.

First we need to setup the RRAS Virtual Machine in VMWare. It’s going to need two virtual network interface cards, one connecting to my Workplace LAN’s 192.168.0.0 subnet and the other connecting to my Test LAN 10.0.0.0 subnet. These two nics will act as the bridge between the subnets on our RRAS virtual router.

RRAS two subnets

Once you have your RRAS virtual machine setup – make sure it has it’s two virtual NICS added into the settings of the Virtual Machine.

VMware settings

Boot the server up and configure the adapters IPV4 settings so one is on our 192.168.0.0 subnet and the other is on our 10.0.0.0 subnet –

Virtual nics

IPV4 settingsIPV4 Settings Enternet

Time to install your RAS box – using Server Manager install the Remote Access role on your RRAS Server.

Windows Server add roles

Remote access role

Once installed – Open Routing and Remote Access, right click RAS and click Configure and Enable Routing and Remote Access

RAS setup

Select Custom Configuration – then LAN Routing

Custom RAS config

RRAS Lan routing

RAS will now configure and the service will restart. Once it’s back up you should now see your RAS settings showing both your two virtual adapters and information concerning how many incoming and outgoing bytes have come in, routing tables etc.

RAS Lan routing General

RAS Routing table

RAS is now setup, nothing else is required on the RAS side of things.

Lastly for my setup – as shown in the diagram I also needed to setup a static route on my Workplace LAN router. The reason for this is based on the fact that my workstation in my Workplace LAN is connected directly to that router rather than my virtual RAS router.

So the aim here is to make it so any packets sourced by the workstation in my WorkPlace LAN  with a destination IP in my 10.0.0.0 subnet, are routed to the 192.168.0.178 NIC on my RAS box. Thus routing them into my 10.0.0.0 subnet.

Router static route

Now to test –

Remote connection two subnets

Success! –
Your two subnets can now communicate to eachother and you should now be good to remote onto any of the machines across your two subnets.

If you get the Remote Desktop RDP error shown below – An internal error has occurred

RDP Remote desktop error

Make sure your firewall settings in both your External LAN and your Internal LAN are allowing outbound/inbound Remote desktop connections on port 3389, out to any subnets on the network.

 


Thanks for reading – feel free to follow and stay updated 🙂  View sysadminguides’s profile on Facebook View GuidesSysadmin’s profile on Twitter View 115372466162675927272’s profile on Google+

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s