I am trying to understand subnetting. I understand that you can take the 192.168.0.0/24
domain and break it into 2 subnets: 192.168.0.0/25
and 192.168.0.128/25
. What if I need to create 2 more subnets inside both of those above subnets?
What if I need to create 2 subnets, which have 2 more subnets inside them and each of those 2 subnets have 2 hosts. As per my calculation, this would be something like.
top 2 subnets:
192.168.0.0/25
and 192.168.0.128/25
subnets of 192.168.0.0/25
:
192.168.0.0/26 - 192.168.0.128/26
subnets of 192.168.0.128/25
:
192.168.0.128/26 - 192.168.0.192/26
hosts of 192.168.0.0/25
:
192.168.0.1/25 - 192.168.0.2/25
hosts of 192.168.0.128/25
:
192.168.0.129/25 - 192.168.0.130/25
hosts of 192.168.0.0/26
:
192.168.0.1/26 - 192.168.0.2/26
hosts of 192.168.0.128/26
:
192.168.0.129/26 - 192.168.0.130/26
hosts of 192.168.0.128/26
:
192.168.0.129/26 - 192.168.0.130/26
hosts of 192.168.0.192/26
:
192.168.0.193/26 - 192.168.0.194/26
The above doesn't seem right, I am moving down like a tree, however the subnet mask and IPs are being repeated, I am just adding 1 to /x
and making the IPs from there. Can anyone please tell me if this is correct?
The scenario I am trying to understand is similar to this, however I just want to add hosts on each level as well.