When a bigger network is divided into smaller networks, in order to maintain security, then that is known as Subnetting. so, maintenance is easier for smaller networks.
Now, let’s talk about dividing a network into two parts:
so to divide a network into two parts, you need to choose one bit for each Subnet from the host ID part.
In the above diagram, there are two Subnets.
Note: It is a class C IP so, there are 24 bits in the network id part and 8 bits in the host id part.
- For Subnet-1:
The first bit which is chosen from the host id part is zero and the range will be from (193.1.2.00000000 till you get all 1’s in the host ID part i.e, 193.1.2.01111111) except for the first bit which is chosen zero for subnet id part.
Thus, the range of subnet-1:
184.108.40.206 to 220.127.116.11
- For Subnet-2:
The first bit chosen from the host id part is one and the range will be from (18.104.22.168000000 till you get all 1’s in the host ID part i.e, 22.214.171.12411111).
Thus, the range of subnet-2:
126.96.36.199 to 188.8.131.52
- To divide a network into four (22) parts you need to choose two bits from host id part for each subnet i.e, (00, 01, 10, 11).
- To divide a network into eight (23) parts you need to choose three bits from host id part for each subnet i.e, (000, 001, 010, 011, 100, 101, 110, 111) and so on.
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- Advantages and Disadvantages of Subnetting
- Difference between Subnetting and Supernetting
- Mathematics | Matrix Introduction
- Introduction of ER Model
- Mathematics | Introduction to Propositional Logic | Set 1
- Mathematics | Introduction of Set theory
- Mathematics | Introduction and types of Relations
- Introduction and IPv4 Datagram Header
- Introduction of Classful IP Addressing
- Introduction of Lexical Analysis
- Introduction to Syntax Analysis in Compiler Design
- Introduction of Firewall in Computer Network
- Mathematics | Introduction to Propositional Logic | Set 2
- Introduction of MAC Address in Computer Network
- Introduction of Sequential Circuits
- Introduction of Logic Gates
- Introduction of Object Code in Compiler Design
- Introduction of Theory of Computation
- Introduction of Compiler Design
- Introduction of Mobile Ad hoc Network (MANET)
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.