Coming to last class of subnetting, let’s take a look at subnetting of class A IP address.

We use subnet mask of a network to create subnets. Subnet mask is used to separate Network and Host portion of an IP address. In subnet mask all 1s are Network Bits and all 0s are Host bits. In subnetting we convert host bits into network bits. Or you can say convert 0s into 1s.

There are 3 classes that we can use while assigning IP Address: Class A, Class B and Class C. We can do subnetting for all those classes. So, let’s do it.

Subnetting Class A addresses

Let’s take a class A IP address first- We have 32-8=24 bits in which we can do subnetting.

There are 4 main things to consider in subnetting.

  • CIDR Value/ Subnet Mask,
  • No of Subnets
  • No of hosts per subnet
  • Range
  • Network Address and Broadcast address
  • Valid Range

Let’s take an example of First, check what will be network address of this IP Address. That will be (because in class-A one octet is reserved for networks and three for hosts.)

  • CIDR = 10 that means subnet Mask = How?

Write /10 in bits form,

11111111.11000000. 00000000.00000000

Now convert it into binary. That will be equal to Got it?

Use the same formulas that we applied in previous class.

  • For Number of subnets,

Number of subnets = 2^no of subnetted bits

In our case no of subnetted bits are 2. Why?

Because IP address that we are using here belongs to Class A and default CIDR Value of Class A is 8. We are using /10 here. That means No of subnetted bits = 10-8=2.

That means if we use /10 subnet mask (, it will create 2^2=4 sub-networks.

So, we will get 4 subnets from /10 but what about hosts?

Number of Hosts per Subnets = 2^No of non-subnetted bits (No of Zeros)

In our case, it is 2^6 x 2^8 x 2^8 = 2^22

Here, 6 bits are available for subnetting in 2nd octet; 8 bits are available in 3rd octet and 8 bits are available in 4th octet. So, total 22 bits are available for subnetting.

Means there will be 2^22 hosts in a subnet and there will be two subnets. That is lot of hosts.

  • Each subnet will start with an IP address and end at some IP address. After that, new subnet will start. IP addresses in a particular subnet will be its range.

We have two subnets, so first subnet will start from and will end at because there could be only 2^15 hosts (IP Addresses) in a subnet (2^7 from 3rd octet and 2^8 from 4th octet.)

So first range will be, –

Second range will be, –

Third range will be, –

And finally fourth range will be, –

I think you all know why we have taken It’s because fourth octet will be filled first then third and then second.

  • In each Range there will be a network address that will represent complete network for that subnet and there will be some broadcast address. Those addresses will always be first and last IP address of the range.

For first range:

Network Address:

Broadcast Address:

For second range:

Network Address:

Broadcast Address:

Same will be for the rest of the ranges. All the address in between the ranges can be used in our network, including addresses like It doesn’t matter if there is a zero in the end. Note that it is not network address of the range so we can use it in our network and communication will be successful.

  • Note that we cannot assign Network address and Broadcast address in our network. So valid range will be different from normal range. Valid range consists of IP addresses that we can assign in our network. So valid IP ranges will be, – – – –

We can assign IP Addresses from that range.

Valid Range will be No of hosts per network – 2. These are also called Valid Hosts.

That is how you can create sub-networks from a single network.

cisco ccna ebook


You can do this subnetting up to /30 in this class too; mean /30. Process is same. Only number of networks will be increased and no of hosts will be decreased.

Quick cheat applies for this class as it was in class A. Take a look, / 20

/20 mean In which octet subnet mask is being changed? 3rd octet, right? Now take only that octet. /20 mean in 3rd octet there are 4 subnetted bits and 4 bits are remained for hosts (for that octet only). Now do the subnetting. Only when writing the range, change the 4th octet to 0 and 255. – – – and so far. As you can see changes are being made in 3rd octet only. 4th octet is changing to 0 and 255 only.

Try one for / 22.

That was all you needed to know about Class-A Subnetting. If you want to practice your subnetting skills, visit here.