Your patience pays off, subletting allows you to create multiple logical networks that exist within
a single class A, B or C network.
If you do not subnet, you are only able to use one network from your class A, B or C network, which
is, well, pretty unrealistic.
So subnetwork is the process of designating some high order bits from the host part as part of the network
prefix and adjusting the subnet mask appropriately.
So this divides a network into smaller subnets, in other words, in order to subnet a network, extend
the natural mask with some of the high order bits from the host ID portion of the address in order to
create a sub network ID.
So I'll give you an example.
Let's take a classy network of one nine two one six eight dot zero, which has a natural mask of two
five 5.2, five 5.2 five 5.0.
You can create subnets by moving to bits from the host part to the network prefix.
Now, the last octet of the network mask starts with 11.
So this eight bit corresponds to one nine two in decimal form.
Now, the network ID is 26 bit in Ceyda notation, it's now a slash 26 subnetwork.
You can find the network prefix by a bit wise and operation between the IP address and the subnet mask.
The number of sub networks available and the number of possible hosts in a network may be readily calculated.
In our example, two bits were borrowed to create subnetwork.
Thus creating two to the power of two possible subnet.
You with me?
So now let's calculate the maximum number of hosts for each subnet.
In our example, 26 bits are used to define the network.
The remaining bits after the subnet bits are used for dressing hosts within a subnet.
So the host part of the IP address is six bit all zeros and the old ones values for the host ID are
not allowed in a subnetwork, right.
These two values are reserved for the network address and broadcast address, respectively.
So the maximum number of hosts which can be addressed in these sub networks is two to the power of six
minus two, which equals 60 to.
Excellent.
So as a result, the IP addresses of the devices in the subnetwork, one nine two one six eight two
one two eight 26 will be between one nine two one six eight, not two, not one to nine and one nine
two one six eight two one nine zero.