Variable Length Subnet Mask (VLSM)

(Rahul A) #21

Hi Rene,

Shouldn’t be for 600 hosts, 3 blocks would suffice? 256*3
Instead of taking 4 blocks in above solution?


(Lazaros Agapides) #22

Hello Rahul

If you were to use three separate subnets to accommodate 600 hosts then you could create them, but they would still be separate subnets. For example, you could use

That would give you 256*3 = 768 IP addresses.

However, you would still have three SEPARATE subnets each requiring a network address, a broadcast address and a default gateway. You would also require routing to communicate between the subnets. For example, a host at needs to go through a router to reach

If you want to create ONE large subnet, you must find the smallest subnet that will accommodate at least 600 hosts.

a subnet mask of or /24 gives you 255 IPs
a subnet mask of or /23 gives you 512 IPs
a subnet mask of or /22 gives you 1024 IPs

Notice that the sizes of the subnets always double in size so you go from 512 to 1024 addresses. There is no whole subnet that gives you 768 hosts (256*3).

A subnet mask of or /22 which gives you 1024 IPs is equivalent to the merging of FOUR /24 subnets.

I hope this has been helpful!


(Pradeep M) #23

It seems like simple by troubling my head!
Is and a same networks or different networks?
( network accommodates hosts from to
similarly accommodates from to

Thanks in advance !


(Lazaros Agapides) #24

Hello Pradeep

These are two different subnets yes, because they are defined with differing sizes. However you cannot use both in the same network because they overlap. All subnets used in a single network must not overlap.

I hope this has been helpful!