Home / Computer / Sample Class B IP Address and How to Subnetting it

Sample Class B IP Address and How to Subnetting it

The IP address (or Internet Protocol Address) is one of network protocols in the form of a computer address that aims to access content that exists within the Internet network. The function of the IP Address is as the address when transmitting data between hosts on the internet network. It makes the IP Address a universal communication system and has become a computer addressing method applied worldwide

In a computer network, the IP address of each connected host must be different. So, if on a computer network connected two computers, then both computers have their own "address". Another story if there is a computer on the network that has more than one Internet interface (eg using two Network Interface Cards, one LAN Card and one WLAN Card / Wi-Fi), then the computer must have two IP addresses, where each IP address is intended for an internet interface.

Addressing computers with IP addresses can not be done haphazardly. You will not see the same IP address on a computer network. The reason, if there is a twin IP address on a different host, there will be a conflict within the network. To prove, try doing how to check IP address on your computer with other computers connected on the same network. Then, equate the IP address on each computer and see what happens.

The IP Address itself is separated into two parts, ie the network (net ID) and host part (host ID). Net ID as a sign of identification of a network from another computer network, while the host ID as a sign identification host in a network. Thus, all hosts connected in the same network have the same net ID. Some of the initial bits in the IP Address are network bits or network numbers, while the rest are host bits. To distinguish the net ID and host ID, there is a sort of dividing line specified from the class division of IP address and subnetting done on a computer network.

The dividing line between net ID and host ID is not always fixed, depending on its network class. This is because the IP address is divided into five classes, namely class A, B, C, D, and E. The difference between each class is the size and number of hosts. IP address also need to be subnetting for usage of IP address in computer network become efficient. On this occasion, we will give an example of class B IP address and its subnetting. Here is the information

Definition of class IP Address B

Two bits in class B IP address are always set to "10" in binary numbers. So the first byte is always worth between 128-191 in the decimal number. The Net ID is the first 16 bits and the remaining 16 bits are the host ID. Thus, if any computer has an IP address 191.147.26.161, then its net ID = 191.147 and its host ID = 26.161. The IP address of this class has an IP range of 128.0.xxx.xxx to 191.155.xxx.xxx. If summed, then the IP address of this class will have 65.255 network number with the number of hosts per network that is about 65 thousand hosts. The bit in the IP address of this class can be described as follows:



n = bit network; h = bit host

Subnetting IP Address Class B

In the networking world, you must understand the name of subnetting. As we explained earlier, subnetting is done so that the usage of IP address on the computer network becomes efficient. At this time, we will give you an example of class B IP address and subnetting.

Now we will try to do subnetting on class B. The first thing you should know is the subnet mask that can be used for subnetting IP address class B is like the table below.

Subnet Mask Value of CIDR
255.255.128.0 / 17
255.255.192.0 / 18
255.255.224.0 / 19 19659016] 255.255.240.0 / 21
255.255.252.0 / 22
255.255.254.0 / 23
255.255.255.0 / 24
Subnet Mask Value of CIDR
255.255.255.128 / 25
255.255.255.192 / 26
255.255.255.224 / 27 [19659016] 255.255.255.240 / 28
255.255.255.248 / 29
We deliberately split the table into two, because the value of CIDR in both the tables have different subnetting techniques, especially for the octet used based on the subnet block. The subnetting technique for CIDR / 17 up to / 24 would be exactly the same as example of class C address we discussed earlier, only the subnet block is inserted directly into the third octet, not like Class C entered in the fourth octet . As for CIDR / 25 to / 30, the subnet block we will use is in the fourth octet, but after completion the third octet will run forward from 0, 1, 2, 3, and so on.

Ok, now we will give an example two problems to practice subnetting technique for class B IP address. And there are two ways we will give. Both of these problems use subnet mask with CIDR / 17 to / 24, that is 172.16.74.56/18 IP address, and IP address using CIDR / 25 to / 30 subnet mask 172.16.54.8/25.

Problem Analysis 1 : 172.16.74.56, Class B IP address with Subnet Mask / 18 means the binary serial number is 11111111.11111111.11000000.00000000 (255.255.192.0).

Calculation Problem 1 :

    1. Number of Subnets = 2 x where x is the number of binary numbers "1" in the last 2 octets. Thus, the number of subnets is 2 2 = 4 subnets
    2. Number of Hosts per Subnet = 2 y – 2, where y is the number of binary numbers "0" in 2 last octet. So the number of hosts per subnet is 2 14 – 2 = 16.382 hosts
    3. Block Subnet = 256 – 192 = 64. The next subnet is 64 + 64 = 128, and 128 + 64 = 192. So the complete subnet is 0, 64, 128, 192 .
    4. Host and broadcast addresses are valid. Let's make it in a table form to find out.
Address Subnet

172.16. 0.0

172.16. 64.0

First Host Address

Host Address Last

Address Broadcast

From the table above, it can be seen that the 172.16.74.56 IP address is located at the 172.16.64.0 subnet address, with the address range between 172.16.64.1 to 172.16.127.254 and has broadcast address 172.16 .127.255

Problem analysis 2 : 172.16.54.8, Class B IP address with Subnet Mask / 25, means the binary serial number is 11111111.11111111.11111111.10000000 (255.255.255.128).

Calculation Problem 2 :

  1. Number of Subnets = 2 9 = 512 subnet
  2. Number of Hosts per Subnet = 2 7 – 2 = 126 host
  3. Block Subnet = 256 – 128 = 128. So the complete is ( 0, 128 )
  4. Host and broadcast addresses are valid? Let's look at the table below.
Address Subnet 172.16. 0.0 172.16. 0.128 172.16.

172.16 54.0 172.16 255.128
First Host Address 172.16 0.1 172.16 0.129 172.16 1.1 172.16 54.1 ] 172.16 255.129
Host's Last Address 172.16. 0.126 172.16. 0.254 172.16 1,126 172.16. 54126 172.16. 255.254
Broadcast Address 19659015] 172.16 0.127 172.16. 0.255 172.16 1.127 172.16 54.127 172.16. 255.255

From the table above, it can be seen that 172.16.54.8 is located in the 172.16.54.0 subnet address, with the address range between 172.16.54.1 to 172.16.54.126 and has broadcast address 172.16.54.127.

The second way we will show still uses the IP address example in the first way, but using the least way different. We will take the first example. Since the IP address of the example is the class IP address B, then the host that will be the reference for the calculation is 8, so the count is / 18 + 8, so 18 + 8 = / 26 (number 8 is obtained from the 4th octet which amounts to 8)

Total CIDR

Total IP Address

/ 24

256

/ 25

128

/ 26

64

/ 27

32

/ 29

16

/ 30

4

Using the table above, we can know that the / 26 total IP the address is 64 that is between 172.16.0.0 – 172.16.63.255. Because in the example the IP address is 172.16.74.56, then the IP address is not included in the range of IP address. To find ip address 172.16.74.56 included in the range of IP address which, try you just sort the third octet, that is (0-63) (64-127). Well, meet deh 64 + 63 = 127 and meet 74 is in the range (64-127). This sort method can also be used to find the range of an IP address in a network address.

However, if we want to find out the subnetting of IP host 10.20.200.30/20, you want to ngurutin until you meet the range 200? Not so tired boss? wkwkwk. Let not tired, you better divide 200 with the total IP address it is 16 (/ 20 + 8 = / 26) and the results multiplied 16 as well. So it can be written as follows:

200: 16 = 12.5, the result is complied to 12. Then 12 x 16 = 192. Then 192 + 15 = 207 (192-207) so that the 200 hosts are in the ip range (192- 207).

OK, we proceed to the first example. Oh yes, keep in mind that this example is the IP address of class B. That is, it does not mean the total IP address is 64. Actually the total IP address is 64 x 256 = 16384. So / 18 has a total IP address of 16384. Let us write down the results of the calculations below.

Total IP Address: 16384
Network Address: 172.16.64.0
IP Address Beginning: 172.16.64.1
Final IP Address: 172.16.127.254
Address Broadcast: 172.16.127.255
Subnet mask: 256-64 = 192, to 255.255.192.0

All of our articles this time around the example of class B IP address and its subnetting. Hopefully you can understand this class B subnetting to enrich the insight surrounding networking.

Loading...

Check Also

How To Install Or Uninstall Notepad In Windows 10

The Notepad has been part of the Windows operating system for over three decades now. …