Connecting different subnets
Posted: 17. Apr 2020, 21:45
Hi everyone,
I'm teaching myself working with Domain Controllers and to test it I wanted to set up a small "business environment" in VirtualBox.
I created different subnets for each department. Now I want every host to be able to connect to the DC (for Active Directory, DHCP, etc). I would think that in the real world, switches would take care of this, but I can't really find an option to do this.
I created the subnets on the 192.168.0.0 /23 network, and every subnet has the /27 prefix. But I can't get them to connect to eachother.
For example:
Domain controller IP: 192.168.0.1
Random host IP: 192.168.1.40
If I just enter this they won't be able to connect cause afaik I need switched to be able to connect between different subnets. But is there a way to do this in virtualbox?
I used an online calculator to calculate the subnets:
Subnet Name Needed Size Allocated Size Address Mask Dec Mask Assignable Range Broadcast
A 16 30 192.168.0.0 /27 255.255.255.224 192.168.0.1 - 192.168.0.30 192.168.0.31
B 16 30 192.168.0.32 /27 255.255.255.224 192.168.0.33 - 192.168.0.62 192.168.0.63
C 16 30 192.168.0.64 /27 255.255.255.224 192.168.0.65 - 192.168.0.94 192.168.0.95
D 16 30 192.168.0.96 /27 255.255.255.224 192.168.0.97 - 192.168.0.126 192.168.0.127
E 16 30 192.168.0.128 /27 255.255.255.224 192.168.0.129 - 192.168.0.158 192.168.0.159
F 16 30 192.168.0.160 /27 255.255.255.224 192.168.0.161 - 192.168.0.190 192.168.0.191
G 16 30 192.168.0.192 /27 255.255.255.224 192.168.0.193 - 192.168.0.222 192.168.0.223
H 16 30 192.168.0.224 /27 255.255.255.224 192.168.0.225 - 192.168.0.254 192.168.0.255
I 16 30 192.168.1.0 /27 255.255.255.224 192.168.1.1 - 192.168.1.30 192.168.1.31
J 16 30 192.168.1.32 /27 255.255.255.224 192.168.1.33 - 192.168.1.62 192.168.1.63
K 16 30 192.168.1.64 /27 255.255.255.224 192.168.1.65 - 192.168.1.94 192.168.1.95
Does anyone have an idea on how to achieve my idea?
Thanks in advance.
I'm teaching myself working with Domain Controllers and to test it I wanted to set up a small "business environment" in VirtualBox.
I created different subnets for each department. Now I want every host to be able to connect to the DC (for Active Directory, DHCP, etc). I would think that in the real world, switches would take care of this, but I can't really find an option to do this.
I created the subnets on the 192.168.0.0 /23 network, and every subnet has the /27 prefix. But I can't get them to connect to eachother.
For example:
Domain controller IP: 192.168.0.1
Random host IP: 192.168.1.40
If I just enter this they won't be able to connect cause afaik I need switched to be able to connect between different subnets. But is there a way to do this in virtualbox?
I used an online calculator to calculate the subnets:
Subnet Name Needed Size Allocated Size Address Mask Dec Mask Assignable Range Broadcast
A 16 30 192.168.0.0 /27 255.255.255.224 192.168.0.1 - 192.168.0.30 192.168.0.31
B 16 30 192.168.0.32 /27 255.255.255.224 192.168.0.33 - 192.168.0.62 192.168.0.63
C 16 30 192.168.0.64 /27 255.255.255.224 192.168.0.65 - 192.168.0.94 192.168.0.95
D 16 30 192.168.0.96 /27 255.255.255.224 192.168.0.97 - 192.168.0.126 192.168.0.127
E 16 30 192.168.0.128 /27 255.255.255.224 192.168.0.129 - 192.168.0.158 192.168.0.159
F 16 30 192.168.0.160 /27 255.255.255.224 192.168.0.161 - 192.168.0.190 192.168.0.191
G 16 30 192.168.0.192 /27 255.255.255.224 192.168.0.193 - 192.168.0.222 192.168.0.223
H 16 30 192.168.0.224 /27 255.255.255.224 192.168.0.225 - 192.168.0.254 192.168.0.255
I 16 30 192.168.1.0 /27 255.255.255.224 192.168.1.1 - 192.168.1.30 192.168.1.31
J 16 30 192.168.1.32 /27 255.255.255.224 192.168.1.33 - 192.168.1.62 192.168.1.63
K 16 30 192.168.1.64 /27 255.255.255.224 192.168.1.65 - 192.168.1.94 192.168.1.95
Does anyone have an idea on how to achieve my idea?
Thanks in advance.