Dear Genius,
I want to use virtual box as multiple site like there are different subnet like detail given below.
Site A: using Internal adapter
IP : 192.168.100.1
Subnet : 255.255.255.0
Site B: using Internal adapter
IP : 192.168.102.1
Subnet : 255.255.255.0
Site C: using Internal adapter
IP : 192.168.103.1
Subnet : 255.255.255.0
Site D: using Internal adapter
IP : 192.168.104.1
Subnet : 255.255.255.0
is it possible like all guest installed on subnet mention above can share data. keep in mind that are separate like different site in MPLS-VPN with different subnet. but i want to use virutalbox as MPLS-VPN testing lab.
Virutal Router on Virutalbox
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: Virutal Router on Virutalbox
Enable IP routing in your VM, and set the GW address of the other VM as the IP address of your router VM in the same internal network.
How to enable IP routing exactly will depend on your OS, but you will find *a lot* of guides on how to do it on google for any OS.
How to enable IP routing exactly will depend on your OS, but you will find *a lot* of guides on how to do it on google for any OS.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
-
BillG
- Volunteer
- Posts: 5106
- Joined: 19. Sep 2009, 04:44
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows 10,7 and earlier
- Location: Sydney, Australia
Re: Virutal Router on Virutalbox
Note that to really keep traffic for the sites separate you would need to put them in different internal networks as well as different subnets. In VirtualBox you do that by using a different name for each internal network. You would also need 4 NICs in your vm router - one for each site. eg
192.168.100.x dg 192.168.100.1
|
192.168.100.1 dg blank
router vm
192.168.102.1 dg blank
|
192.168.102.x dg 192.168.102.1
and so on for the other networks/subnets.
192.168.100.x dg 192.168.100.1
|
192.168.100.1 dg blank
router vm
192.168.102.1 dg blank
|
192.168.102.x dg 192.168.102.1
and so on for the other networks/subnets.
Bill