Can anyone explain or give me some example for the reason why we start subneting using the largest subnets first? What are consequences of opposite approach?
|
migrated from stackoverflow.com Apr 12 '10 at 0:45
|
This is a most extreme example. Subnet 10.0.0.0 /8 for 2 networks with 2 hosts each.
Imagine what would have happened if you had picked those two in the middle. My calculator works differently than others I have seen. You tell it the starting point i.e. 10.0.0.0 /8 or 192.168.1.0 /24, and the number and size of the networks you want like this
|
||||
|
|
|
It is not a fixed rule, you can start subneting using the smallest subnet first or any order you like. However, with variable length subnet masks (VLSM) starting by the largest is easier to manage and support future modifications. Starting by the largest is more space efficient, since you can borrow more bits for the smaller subnets. Since you can only subnet an address range at certain locations, you will have problems matching some addresses. Consider this: 1st split == 128 spaces Every time you split you get less space. Imagine you need 2 subnets, one for 70 pcs and another for 3. You will make a better use of your addressing space starting by the biggest one first. It is the most compact way |
|||
|
|
|
You want to subnet in such a way that you have the largest block of addresses available when done. I have a subnet calculator, and as an example, I took 192.168.1.0 /24, and told it I wanted 2 networks of 30 hosts, and 1 network of 10 hosts. Here is the output:
An explanation of the above
The Max Hosts includes the network number and the directed broadcast, so for example, if you have 32 max, then only 30 are able to be assigned. |
||||
|
|
|
Maybe it's not a fixed rule, but I remember, when learning for CCNA and practicing in Packet Tracer, I've got error when set up smaller subnet first. |
|||
|
|