Calculating subnet made easy
How to calculate subnet mask of a prefix To calculate subnet mask of any prefix we need to know the number of network bits and host bits Let us take example of a prefix and understand In this instance let us take example of /18 and calculate As said let us first know the number of network bits and number of host bits Host bits: To calculate network bits let us substract the prefix from 32( why 32 ..please continue to read) 32-18=14 Let us calculate host bits Network bits: To calculate host bits let us substract the network bits(18) from 32 32-14=18 Now the real part comes we need to place the network bits and host bits in their appropriate positions Host bits are indicated by 1's and network bits are indicated by 0's First in binary form the ones and 0's are placed from left to right Let us keep the host bits 18 1's in the first positions i.e from left This is the binary form of /18 111111111.11111111.11000000.00000000 When this binary form is c...