# Free Class B Subnetting Tutorials, How to subnet Class B network, IPv4 address subnetting

This lesson is only a part of a series of IPv4 subnetting lessons. All the basic concepts about subnetting are explained in Class C Subnetting Tutorial - Part 1 lesson. You must visit Class C Subnetting Tutorial - Part 1 lesson to understand the basic concepts of subnetting. Please visit below links in order to learn IPv4 subnetting completely.

### Class B 4-bit subnetting tutorial

If we add four bits to the network part from host part in the third octet, for a Class B network, the default subnet mask 255.255.0.0 is changed to 255.255.240.0. The four bits added to the network part from the host part, in the third octet, can have sixteen possible values. Those sixteen possible values are 0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, 1000, 1001, 1010, 1011, 1100, 1101, 1110 and 1111.

That means, we get sixteen subnets if we do a 4-bit subnetting for a Class B network.

SN No Description Binaries Decimal

The network 172.16.0.0 is divided into sixteen subnets, each subnet has 4,096 total IPv4 addresses and 4,094 usable IPv4 addresses (two IPv4 addresses are used in each subnet to represent the network address and the directed broadcast address). The subnet mask to use for 4-bit subnetting for a Class B network is 255.255.240.0.

Class B Subnetting can be summerized as below.

0 255.255.0.0 /16 1 65534
1 255.255.128.0 /17 2 32766
2 255.255.192.0 /18 4 16382
3 255.255.224.0 /19 8 8190
4 255.255.240.0 /20 16 4094
5 255.255.248.0 /21 32 2046
6 255.255.252.0 /22 64 1022
7 255.255.254.0 /23 128 510
8 255.255.255.0 /24 256 254
9 255.255.255.128 /25 512 126
10 255.255.255.192 /26 1024 62
11 255.255.255.224 /27 2048 30
12 255.255.255.240 /28 4096 14
13 255.255.255.248 /29 8192 6
14 255.255.255.252 /30 16384 2

If you practice previous lesson examples and the above example in this lesson, you can clearly understand how to subnet a Class B network. Try to practice and find yourself the network address, usable IPv4 address range and the directed broadcast address of remaining 5-bit and 6-bit, 7-bit, 8-bit, 9-bit, 10-bit, 11-bit, 12-bit, 13-bit and 14-bit Class B subnets.

In this Class B Subnetting tutorial Part - 2, you have learned how perform a Class B 4 bit Subnetting. To view Class A Subnetting Tutorials - Part 1, Click "Next".