VMware Cloud Community
qwerty1805
Contributor
Contributor

how to set up to 2 different networks with ESXI 5.1?

Hi,

I have installed ESXI 5.1 with Vsphere client in worstation 9.

I have crated 7 VM’s with servers 2008 R2 installed with the domaine name “example.com”and and they are in the network range 192.168.1. ...

They are all connected to the Internet.

Let’s say one one of these VM’s is called “test1” and is a Domain Controller for the domain “example.com”.

Now, I need to create an other VM called “test2” but on a totally different network with the ip address 10.1.1.1. but it has to be a domain controller on the same  domain  as above “example.com”.

The questions are:

How can I set up the network for “test2” to be on another network range than 192.168.1 ...?

How can I set up “test2” to get the ip address 10.1.1.1 and being able to communicate with “test1”?

Thank you for your help

Reply
0 Kudos
5 Replies
a_p_
Leadership
Leadership

Like in a physical environment, you need to provide proper routing between the two subnets. Either by setting up a (virtual) router or - if this is sufficient for you - by configuring static routes in your VMs.

André

Reply
0 Kudos
qwerty1805
Contributor
Contributor

Thank you for the answer.

I don't have any router at home, I only have a 3g broadband connection  on my mobile.


Can I do it virtually on the vsphere client?

Reply
0 Kudos
a_p_
Leadership
Leadership

You could create a second vSwitch (without uplinks) for the 10.x network and install a router/firewall VM (e.g. pfSense), connect this to both vSwitches and route the traffic.

André

Reply
0 Kudos
qwerty1805
Contributor
Contributor

Thank you for the answer and for your time.

I'm downloading pfSense and will do my best to set it up.

I will post later the result.

Reply
0 Kudos
qwerty1805
Contributor
Contributor

Hi, I have installed Pfsense but it's not working.

My configuration :

ESXI networking

ESXI networking.JPG

Pfsense Dashboard

pfsence dashboard.jpg

pfsense gateway

pfsense gateway.jpg

pfsense static routes

pfsense static routes.jpg

My goal is to have the Vswitch 0 communicates with the Vswitch1.Vswitch has a virtual machines that will have the ip address 10.1.1.1

The  2 Switches have to be on 2 different networks.

192.168.172.153 displayed in the Pfsense dahsboard gateway is one of my VM,NCDC1,on the Vswitch 0.

Thank you for your help

Reply
0 Kudos