The Magical art of subnetting
What is subnetting?
A subnet, or subnetwork, is a logical subdivision of an IP network. The practice of dividing a network into two or more networks is called subnetting. Computers that belong to the same subnet are addressed with an identical group of its most-significant bits of their IP addresses
This results in the logical division of an IP address into two fields: the network number or routing prefix, and the rest field or host identifier. The rest field is an identifier for a specific host or network interface
The routing prefix may be expressed as the first address of a network, written in Classless Inter-Domain Routing notation, followed by a slash character, and ending with the bit-length of the prefix
First of all, memorise this table
Write down, all of the powers of 2, from 1 to 256,
Then do the same in reverse.
Then write /24 to /32 in the last row.

Say you get a question.
-
You have a network, 192.168.0.0/24, you need to have as least 4 networks with 50 hosts each, which four subnets are you going to choose?
-
Your subnet mask would need to be x.x.x.x/26
-
Take the whole network(Pie), cut into 4 pieces, each piece has 1/4th of the total networks of the initial subdivided networks.
Electric Meatball's Digital Garden HomeThe OSI Model
Linux Terminal Cheat Sheet
The TCP IP Model
Terminology📖