Hi,
We have set up 3 VMs running the latest Win10 x64 on a Windows 2008 R2 OS.
We have 3 different static IPs from different series connected to a firewall.
We are trying to link each IP to each of the VMs in order for them to be accessed from outside with the static IP assigned to them. Like each VM will have its separate static IP.
I have setup the VMs to bridged network. I have also properly mapped/routed the incoming static IPs to the local VM IPs in the firewall.
Three WANs connecting to the firewall then on Ethernet port used to connect the firewall to the Server.
But for some reason all the VMs are getting the same static IP instead of the ones that are assigned to them.
For example-
Static IPs
1.2.3.4
5.6.7.8
11.22.33.44
VM IPs
192.168.0.1
192.168.0.2
192.168.0.3
The static IPs are needed to be mapped individually to their respective VMs.
like 1.2.3.4 will me routed to 192.168.0.1 and 5.6.7.8 to 192.168.0.2
But for some reason all the VMs are getting the same IP aka 1.2.3.4
Can someone please help me figure this out? Assume that the three VMs are running websites:8080 and I am trying to give them their unique static IP so that people can access it from outside the network.
3 individual internet connects for 3 VMs
-
- Volunteer
- Posts: 5105
- Joined: 19. Sep 2009, 04:44
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Windows 10,7 and earlier
- Location: Sydney, Australia
Re: 3 individual internet connects for 3 VMs
That has very little to do with VirtualBox. That is done through the firewall/router, and you do it in exactly the same way on vms as you do with physical machines. Does your firewall support mapping a public IP to a private one?
How have you networked the vms to the router? They need to be bridged to the same physical network as the firewall so that the firewall can forward the traffic to the vm on the same network and the same IP subnet. A bridged vm should behave just like a physical machine on the LAN as far as networking is concerned.
How have you networked the vms to the router? They need to be bridged to the same physical network as the firewall so that the firewall can forward the traffic to the vm on the same network and the same IP subnet. A bridged vm should behave just like a physical machine on the LAN as far as networking is concerned.
Bill
Re: 3 individual internet connects for 3 VMs
Yes our firewall supports external ip mapping to local ip.
Internet (3 lines) ---> firewall ----> one Ethernet wire from the firewall to the physical machine.
Yes all VMs are on bridge mode and the ip configuration logically seems properly set.
Internet (3 lines) ---> firewall ----> one Ethernet wire from the firewall to the physical machine.
Yes all VMs are on bridge mode and the ip configuration logically seems properly set.
Last edited by socratis on 30. Apr 2019, 17:27, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
Reason: Removed unnecessary verbatim quote of the whole previous message.
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: 3 individual internet connects for 3 VMs
How? Does it do it based on the IP or the MAC address? And if it does it based on the IP, does it have to have a static IP table, i.e. W.X.Y.Z goes to ... where? And how?CPTL wrote:Yes our firewall supports external ip mapping to local ip.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
-
- Volunteer
- Posts: 5105
- Joined: 19. Sep 2009, 04:44
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Windows 10,7 and earlier
- Location: Sydney, Australia
Re: 3 individual internet connects for 3 VMs
They usually work at the IP address level.
Are the vms clones? If they are they will have the same MAC address. You will need to go to the settings of the vms, select Network then Advanced then click the rotate icon to get a new MAC.
Are the vms clones? If they are they will have the same MAC address. You will need to go to the settings of the vms, select Network then Advanced then click the rotate icon to get a new MAC.
Bill
Re: 3 individual internet connects for 3 VMs
The firewall has an option to map incoming WAN connections to local IP address. i.e:socratis wrote:How? Does it do it based on the IP or the MAC address? And if it does it based on the IP, does it have to have a static IP table, i.e. W.X.Y.Z goes to ... where? And how?
- q.w.e.r (external) -> 1.2.3.4 (local ip)
- r.t.y.u (external) -> 5.6.7.8 (local ip)
I shall try the method.BillG wrote:They usually work at the IP address level.
Are the vms clones? If they are they will have the same MAC address. You will need to go to the settings of the vms, select Network then Advanced then click the rotate icon to get a new MAC.
ALSO - is there a way that i can use IIS to route the external/public IPs to their respective VMs?
Last edited by socratis on 2. May 2019, 11:43, edited 1 time in total.
Reason: Fixed formatting.
Reason: Fixed formatting.
-
- Volunteer
- Posts: 5105
- Joined: 19. Sep 2009, 04:44
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Windows 10,7 and earlier
- Location: Sydney, Australia
Re: 3 individual internet connects for 3 VMs
If the vms all have the same MAC address, nothing can route traffic to them based on their IP addresses. The networking hardware works on MAC addresses, not IP addresses. IP addresses are only relevant at the IP stack level.
Why would you ask questions about IIS in this forum? Even in a general Windows forum, IIS questions are redirected to the specialist IIS forum. https://forums.iis.net/
Why would you ask questions about IIS in this forum? Even in a general Windows forum, IIS questions are redirected to the specialist IIS forum. https://forums.iis.net/
Bill