HOW TO CALCULATE IP ADDRESS, SUBNET MASK AND NET ID
SUBNETTING CONCEPT
Subnetting is a material that comes out a lot in the CCNA exam with a variety of questions. It is also a scourge for students or instructors who are completing the CCNA 1 curriculum for the CNAP (Cisco Networking Academy Program) program. To explain about subnetting, I usually use some illustrations and analogies that we are familiar with around us. I wrote this article intentionally for colleagues who are studying networking, who are preparing to take the CCNA exam, and who are taking CCNA 1 training.
Actually what is subnetting and why should it be done? this question can be answered with the analogy of a road. The street named Taylor swift consists of several houses numbered 01-08, with house number 08 being the house of the Head of the RT who has the task of announcing any information to all houses in the Jl. Taylor Swift.
When there are more houses in the area, of course, it is likely to cause confusion and congestion. Because of that, then another arrangement was made, alleys were made, the houses that entered the alleys were given a new house number, each alley had its own RT head. So that this will solve congestion, efficiency and optimization of transportation, and each gang has its own privilege in managing its territory. So draw a new region like below:
This concept is actually the concept of subnetting. On the one hand, it wants to simplify management, for example an office wants to divide work into 3 divisions with each division having 15 computers (hosts). On the other hand, it is also for optimization and efficiency of network work, because traffic lanes are not concentrated in one large network, but are divided into several aisles. The first analogy is Jl Taylor swift. with houses around it can be applied to networks such as NETWORK ADDRESS (street name) and HOST ADDRESS (house number). Meanwhile, the Head of the RT is played by BROADCAST ADDRESS (192.168.1.255), who is in charge of sending messages to all hosts on the network.
Still following the analogy of the path above, we apply it to network subnetting as shown below. Gang is SUBNET, each subnet has HOST ADDRESS and BROADCAST ADDRESS.
So what is a SUBNET MASK? The subnetmask is used to read how we divide roads and alleys, or divide networks and hosts. Which address serves as a SUBNET, which one is the HOST and which one is BROADCAST. We can know all that from the SUBNET MASK. The Taylor swift street without gangs that I showed at the beginning can be understood as using the SUBNET MASK DEFAULT, or in other words it can also be said that the Network has no subnets (Roads without Gangs). The DEFAULT SUBNET MASK for each IP Address Class is as follows:
CLASS OKTET PERTAMA SUBNET MAS DEFAULT PRIVATE ADDRESS
A 1-127 255.0.0.0 10.0.0.0-10.255.255.255
B 128-191 255.255.0.0 172.16.0.0-172.31.255.255
C 192-223 255.255.255.0 192.168.0.0-192.168.255.255
Subnetting Calculation
After understanding the concept of Subnetting well. This time it's time for you to learn the technique of calculating subnetting. Subnetting calculations can be done in two ways, a relatively slow binary method and a faster special method. Essentially all questions about subnetting will revolve around four issues: Number of Subnets, Number of Hosts per Subnet, Subnet Blocks, and Host-Broadcast Addresses.
Writing the IP address generally is 192.168.1.2. But sometimes it is written as 192.168.1.2/24, what does this mean? This means that the IP address is 192.168.1.2 with a subnet mask of 255.255.255.0. How can it be like that? Yes, /24 is taken from calculating that the 24 bit subnet mask is shrouded with binary 1. Or in other words, the subnet mask is: 111111111.11111111.11111111.00000000 (255.255.255.0). This concept is called CIDR (Classless Inter-Domain Routing) which was first introduced in 1992 by IEFT.
The next question is what Subnet Mask can be used to do subnetting? This is answered with the table below:
Subnet Mask CIDR value Subnet Mask CIDR value
255.128.0.0 /9 255.255.240.0 /20
255.192.0.0 /10 255.255.248.0 /21
255.224.0.0 /11 255.255.252.0 /22
255.240.0.0 /12 255.255.254.0 /23
255.248.0.0 /13 255.255.255.0 /24
255.252.0.0 /14 255.255.255.128 /25
255.254.0.0 /15 255.255.255.192 /26
255.255.0.0 /16 255.255.255.224 /27
255.255.128.0 /17 255.255.255.240 /28
255.255.192.0 /18 255.255.255.248 /29
255.255.224.0 /19 255.255.255.252 /30
SUBNETTING ON IP ADDRESS CLASS C
Ok, now let's just practice. What kind of subnetting happens with a NETWORK ADDRESS 192.168.1.0/26 ?
Analysis: 192.168.1.0 means class C with Subnet Mask /26 means 11111111.11111111.11111111.11000000 (255.255.255.192).
Calculation: As I mentioned earlier all questions about subnetting will center on 4 things, number of subnets, number of hosts per subnet, subnet blocks, valid host and broadcast addresses. So we finish in such order:
- Number of Subnets = 2x, where x is the number of binaries 1 in the last octet of the subnet mask (2 last octets for class B, and the last 3 octets for class A). So the number of subnets is 22 = 4 subnets
- Number of Hosts per Subnet = 2y – 2, where y is the reciprocal of x, which is the number of 0 binaries in the last octet of the subnet. So the number of hosts per subnet is 26 – 2 = 62 hosts
- Subnet block = 256 – 192 (last octet value of subnet mask) = 64. The next subnet is 64 + 64 = 128, and 128+64=192. So the complete subnets are 0, 64, 128, 192.
- How about host address and valid broadcast? We immediately create the table. For the record, the first host is 1 number after the subnet, and broadcast is 1 number before the next subnet.
- Number of Subnets = 2x, where x is the number of binaries 1 in the last 2 octets. So the number of subnets is 22 = 4 subnets
- Number of Hosts per Subnet = 2y – 2, where y is the reciprocal of x, which is the number of 0 binaries in the last 2 octets. So the number of hosts per subnet is 214 – 2 = 16,382 hosts
- Block Subnet = 256 – 192 = 64. The next subnet is 64 + 64 = 128, and 128+64=192. So the complete subnets are 0, 64, 128, 192.
- Valid host and broadcast addresses?
- Number of Subnets = 28 = 256 subnets
- Number of Hosts per Subnet = 216 – 2 = 65534 hosts
- Subnet Block = 256 – 255 = 1. So the complete subnet is: 0.1,2,3,4, etc.
- Valid host and broadcast addresses?
Komentar
Posting Komentar