Jump to content

Recommended Posts

Posted

Hi All,

 

 

I have setup up a Hyper-V 2012 R2 test environment ( domain controller, DHCP , DNS + exchange ) in my live environment. My live environment IP range is 192.168.80.1 to 192.168.85.255 and I have assigned my test environment 195.168.80.1 IP range with different domain name. I want my test environment to talk to outside network without interfering my live environment.

 

Can some guide me how to do this so I can get internet connection to my test environment.

 

Thanks,

Sam

Posted

You need a router, a VM running a linux distro should do, connected to both networks. The default gateway on your router should be assigned to the default gateway of your 192.168 network. The VM's in your 195.168 network should have the 195.168 address of the router as their default gateway.

 

For simplicity you may want to NAT between the two networks.

Posted (edited)

195.168.80.1 is a Public IP address range, please forgive me if that's a typo.

 

You could set up a network up behind a router that's NAT'd to your production environment, this way you can test DHCP etc without it effecting your production environment.

 

Sorry @tmcd35 , was typing mine as you replied

Edited by Davit2005
  • Thanks 1
Posted

Thanks for your reply,

 

195.168.80.1 is a Public IP address range and yes it is a typo. My Hyper-V 2012 R2 server is in production environment and I have assigned 192.168.80.10 IP address, my test environment running within this server. I have crated a private virtual switch for my test setup.

 

So can you tell me where do I need to setup a router and how do I connect to the test setup?

 

Thanks,

Sam

Posted

If I'm reading correctly, you have assigned your VM network within the same range IP as your live network. This should be fine in isolation, but will cause issues if you have both connected to a WAN with whatever router is upstream, if there are any IP conflicts. DHCP will likely go nuts if the two networks join, as you'll have two separate broadcasts on that range.

 

For simplicity your VM network really needs to be on another range, behind a router using NAT. I'd move the range for the test environment e.g. put it on 192.168.1.0/24. You can then run the two side by side.

  • Thanks 1
Posted
Thanks for your reply,

 

195.168.80.1 is a Public IP address range and yes it is a typo. My Hyper-V 2012 R2 server is in production environment and I have assigned 192.168.80.10 IP address, my test environment running within this server. I have crated a private virtual switch for my test setup.

 

So can you tell me where do I need to setup a router and how do I connect to the test setup?

 

Thanks,

Sam

 

You need one virtual switch for external lan which you already have and one for internal lan (internal switch) Create a new linux virtual machine and install pfsense on it. It will have two network adapters. Set it up so the router wan ip is in the same ip range as your live network so it has internet access and set the the router lan ip on a different range say 192,168.110.1/24 All the lab vms should have the lab network adapter (internal).

  • Thanks 1
Posted

Hi Mark,

 

Installed RAS Connection Manager Administration Kit (CMAK) and under Remote Server Administration Tools and Remote Administration Tools > Remote Access Management Tools.

 

When I go to Routing and remote access to configure and enable routing and remote access, select NAT.. but "use this public interface to connect to the internet greyed out"

 

Nat.png

 

 

I'm using single nic that's why its greyed out?

 

 

Help please

 

Sam

 

 

MS

Posted

Dear all,

 

I have setup up a Hyper-V 2012 R2 test environment ( domain controller, DHCP , DNS + exchange ) within my live environment. My live environment IP range is 20.96.80.1 to 20.96.83.255 and test environment 50.96.80.1 to 50.96.83 255.

Created two virtual switches ( external and private ).

 

All the VM's within test environment connected to the private switch. Email, dns, DHCP works fine.

 

Created a another VM and installed RAS Connection Manager Administration Kit (CMAK) and Remote Server Administration Tools etc for routing. This VM has two Nic's and connected to the external switch. How do I configure this router (VM) so All the VM's connected to private switch in a test environment get internet access and talk to the outside world without causing any problem to my production network.

 

Never done this before so I need help.

 

Many thanks,

Sam

Posted

Your RAS VM needs one NIC connected to the external switch, and one to the private switch. Not both connected to the external. If you have followed the instructions in Marks post above then your VMs (email, dns, dhcp) need their default gateway changing to that of the ip address of the NIC on the RAS server that is connected to the private switch.

 

When following the instructions for the RAS server be sure to make sure you set it up for NAT.

  • Thanks 1
Posted
I have a similar problem in that I have an R2 server out in the wild. This server has 2 ip external IP addresses in Windows and they both work. I have turned DHCP off to do this. I then went to make a HyperV Ubuntu server and it seems that when I set the Virtual Router up, the whole server looses internet access to the Datacenter network. Any ideas?
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...