ANDing with Default Subnet Mask to Find the Network Address of an IP Address

When you have an IP address, you can easily tell or detect the class of that IP address (For a brief summary, read IP(IPv4) Address Classes Cheat Sheet). And every IP address must be accompanied by a subnet mask (For a brief summary, read Default Subnet Masks Cheat Sheet) of that IP address class. But for any computer, the process is not such simple as you think. For any computer to determine the network of that IP address, it should need to AND the IP address and the subnet mask.

ANDing Equation:

  • 0 AND 0 = 0
  • 0 AND 1 = 0
  • 1 AND 0 = 0
  • 1 AND 1 = 1

Note: Remember when both the bits are 1 then the output is 1. Otherwise the output is 0.

Example:

An IP address is: 172.10.10.25

We have to find out the network address of that IP address. From the IP address 172.10.10.25, we could figure out the following information:

  • IP address: 172.10.10.25
  • Class: Class B
  • Network part: 172.10.10.25 [Red colored part]
  • Host Part: 172.10.10.25 [Blue colored part]
  • Default Subnet Mask: 255.255.0.0

To find out the network address of the IP address, we first have to convert the IP address and the default subnet mask into binary format and then have to AND both the binary format to get the network address. So, the calculation may look like the following:

 

Decimal Format

Binary Format
IP 172.10.10.25 10101100.00001010.00001010.00011001
Default
Subnet
255.255.0.0 11111111.11111111.00000000.00000000
AND 172.10.0.0 11111111.11111111.00000000.00000000

So the network address of the IP address 172.10.10.25 will be:

172.10.0.0 (11111111.11111111.00000000.00000000)

Here, Network part and Host part are marked with red and blue colored text.

To sum up, ANDing the default subnet mask with the IP address, allows the computer to figure out the network part of the IP address.

Solution: Default Subnet Masks

This page is the solution of the exercise Exercise: Default Subnet Masks. Our recommendation to try all the exercises form Exercise: Default Subnet Masks by yourself and then see the solution whether the answers are correct or wrong.

[Note: The tutorial Default Subnet Masks Cheat Sheet may be useful to do all the exercises easily. ]

[1] 172.16.78.4

Answer: 255.255.0.0

[2] 123.125.23.1

Answer: 255.0.0.0

[3] 33.58.45.98

Answer: 255.0.0.0

[4] 220.22.22.98

Answer: 255.255.255.0

[5] 75.251.51.200

Answer: 255.0.0.0

[6] 223.12.22.110

Answer: 255.255.255.0

[7] 77.70.12.3

Answer: 255.0.0.0

[8] 197.78.85.2

Answer: 255.255.255.0

[9] 122.125.99

Answer: 255.0.0.0

[10] 192.250.32.40

Answer: 255.255.0.0

[11] 1.1.1.99

Answer: 255.0.0.0

[12] 213.67.89.54

Answer: 255.255.0.0

[13] 99.100.100.101

Answer: 255.0.0.0

[14] 78.116.25.25

Answer: 255.0.0.0

[15] 27.200.125.151

Answer: 255.0.0.0

[16] 192.168.3.3

Answer: 255.255.255.0

[17] 172.65.87.90

Answer: 255.255.0.0

[18] 10.0.0.1

Answer: 255.0.0.0

[19] 218.35.50.0

Answer: 255.255.255.0

[20] 8.0.0.0

Answer: 255.0.0.0

[21] 200.125.100.20

Answer: 255.255.255.0

[22] 3.13.33.30

Answer: 255.0.0.0

[23] 95.51.12.36

Answer: 255.0.0.0

[24] 159.26.37.64

Answer: 255.255.0.0

[25] 45.89.87.21

Answer: 255.0.0.0

Exercise: Default Subnet Masks

In the tutorial Default Subnet Masks Cheat Sheet, we discuss about the default subnet mask of each IP address class. Here, we do some exercises which is based on default subnet masks.

[Note: The answers of these exercises could be found at the link of these exercises questions. Our recommendation to try these exercise yourself and then see the solution whether the answers are correct or wrong.]

[1] 172.16.78.4

Answer: ____________________

[2] 123.125.23.1

Answer: ____________________

[3] 33.58.45.98

Answer: ____________________

[4] 220.22.22.98

Answer: ____________________

[5] 75.251.51.200

Answer: ____________________

[6] 223.12.22.110

Answer: ____________________

[7] 77.70.12.3

Answer: ____________________

[8] 197.78.85.2

Answer: ____________________

[9] 122.125.99

Answer: ____________________

[10] 192.250.32.40

Answer: ____________________

[11] 1.1.1.99

Answer: ____________________

[12] 213.67.89.54

Answer: ____________________

[13] 99.100.100.101

Answer: ____________________

[14] 78.116.25.25

Answer: ____________________

[15] 27.200.125.151

Answer: ____________________

[16] 192.168.3.3

Answer: ____________________

[17] 172.65.87.90

Answer: ____________________

[18] 10.0.0.1

Answer: ____________________

[19] 218.35.50.0

Answer: ____________________

[20] 8.0.0.0

Answer: ____________________

[21] 200.125.100.20

Answer: ____________________

[22] 3.13.33.30

Answer: ____________________

[23] 95.51.12.36

Answer: ____________________

[24] 159.26.37.64

Answer: ____________________

[25] 45.89.87.21

Answer: ____________________

Solution: Default Subnet Masks

Follow the following link for the solutions of these exercises:

Solution: Default Subnet Masks

Solution: Host Identification

To do this tutorial, you may take help the cheat sheets: [1] IP(IPv4) Address Classes Cheat Sheet and [2] Host Identification Cheat Sheet.

Here, you will find all the answers / solutions of the exercise Exercise: Host Identification. The host part is identified by black highlighted color with white text.

[Note: All the solution is done using the cheat sheet tutorial: [1] IP(IPv4) Address Classes Cheat Sheet and [2] Host Identification Cheat Sheet.]

[1] 199.42.1.1  

[2] 165.25.168.112 

[3] 171.87.125.177 

[4] 99.128.89.99 

[5] 210.122.123.99 

[6] 24.85.94.99 

[7] 89.250.254.0 

[8] 18.95.15.35 

[9] 191.168.100.100 

[10] 33.98.84.41 

[11] 223.1.1.10 

[12] 15.59.58.15 

[13] 192.168.3.

[14] 77.95.0.0

[15] 33.30.30.3 

[16] 98.200.23.6 

[17] 75.53.15.59 

[18] 159.78.98.12 

[19] 95.77.155.56 

[20] 177.18.100.4 

[21] 15.0.0.2 

[22] 196.13.23.100 

[23] 148.17.18.47 

[24] 123.200.222.250 

Exercise: Host Identification

In the exercise Exercise: Network Portion Identification, we do some exercise about network identification. Hope, you do that successfully. In this exercise, we will try to identify the host part of some IP address.

To do this exercises, you may take help the cheat sheets: [1] IP(IPv4) Address Classes Cheat Sheet and [2] Host Identification Cheat Sheet.

[Note: All the answers of this exercises can be found through the bottom link of the exercises. Our recommendation is to do all the exercises yourself firstly and then check the solution whether the answers are correct or wrong.]

[1] 199.42.1.1

[2] 165.25.168.112

[3] 171.87.125.177

[4] 99.128.89.99

[5] 210.122.123.99

[6] 24.85.94.99

[7] 89.250.254.0

[8] 18.95.15.35

[9] 191.168.100.100

[10] 33.98.84.41

[11] 223.1.1.10

[12] 15.59.58.15

[13] 192.168.3.3

[14] 77.95.0.0

[15] 33.30.30.3

[16] 98.200.23.6

[17] 75.53.15.59

[18] 159.78.98.12

[19] 95.77.155.56

[20] 177.18.100.4

[21] 15.0.0.0

[22] 196.13.23.100

[23] 148.17.18.47

[24] 123.200.222.250

 

Solution:

The solution of the Exercise: Host Identification can be found in the following link:

Solution: Host Identification

Answer: Network Portion Identification

Here, you will find all the answers / solutions of the exercise Exercise: Network Portion Identification. The network part is identified by green highlight color.

[Note: All the solution is done using the cheat sheet tutorial: [1] IP(IPv4) Address Classes Cheat Sheet and [2] Network Identification Cheat Sheet]

    [1]            10.59.58.15

 

    [2]            192.168.3.3

 

    [3]            87.95.0.0

 

    [4]            133.33.33.33

 

    [5]            98.200.23.6

 

    [6]            199.42.1.1

 

    [7]            95.77.155.56

 

    [8]            177.18.100.4

 

    [9]            155.25.168.112

 

[10]            171.87.125.177

 

[11]           193.42.1.9

 

[12]            165.0.0.0

 

[13]            186.13.23.100

 

[14]            148.17.18.47

 

[15]            223.200.222.250

 

[16]            99.128.89.99

 

[17]            129.122.123.99

 

[18]            24.85.94.99

 

[19]           89.250.254.0

 

[20]            178.95.15.35

 

[21]            75.53.15.59

 

[22]            159.78.98.12

 

[23]            33.98.84.41

 

[24]            223.1.1.1

 

[25]            191.168.100.100

Exercise: Network Portion Identification

There are some IP address in the followings. We have to find out the network portion of each IP addresses.

To do this exercises, two cheats may be helpful. Those are:

  1. IP(IPv4) Address Classes Cheat Sheet
  2. Network Identification Cheat Sheet

[Note: The answers of this exercises are available at the end of the exercises. Our recommendation is to first try all the exercises by yourself and then see the solution whether your answers are correct or wrong.]

    [1]            10.59.58.15

 

    [2]            192.168.3.3

 

    [3]            87.95.0.0

 

    [4]            133.33.33.33

 

    [5]            98.200.23.6

 

    [6]            199.42.1.1

 

    [7]            95.77.155.56

 

    [8]            177.18.100.4

 

    [9]            155.25.168.112

 

[10]            171.87.125.177

 

[11]            193.42.1.9

 

[12]            165.0.0.0

 

[13]            186.13.23.100

 

[14]            148.17.18.47

 

[15]            223.200.222.250

 

[16]            99.128.89.99

 

[17]            120.122.123.99

 

[18]            24.85.94.99

 

[19]            89.250.254.0

 

[20]            178.95.15.35

 

[21]            75.53.15.59

 

[22]            159.78.98.12

 

[23]            33.98.84.41

 

[24]            223.1.1.1

 

[25]            191.168.100.100

 

 

Solution of Network Portion Identification:

Answer: Network Portion Identification

Cheat Sheet of Network Address and Host Address Part of an IP Address

In the cheat sheet IP(IPv4) Address Classes Cheat Sheet, you learn all the classes of IP address of IPv4. We already discussed that each class IP address has two parts: [a] Network part (sometimes called Net ID or Net part)  and [b] Host part (sometimes called Host ID or Host part). Below, a table is represented where Network part and host part is identified easily of each block of IP addresses classes.

Class A Network . Host . Host . Host
Class B Network . Network . Host . Host
Class C Network . Network . Network . Host

Note: This is the default Network part and host part of each class of IP address. So, before identifying any network part or host part of an IP address, you first have to identify the IP address class of the given address [Follow IP(IPv4) Address Classes Cheat Sheet for the IP address classes] and then apply the method of that table to determine the Network part or the host part of the IP address.

Exercise: Identification of IP Address Class

IP addresses are grouped into four classes. In the tutorials, Types of IP Addresses, Classes of IP Address, IP Address Classification we discusses about that. Now, here we will do some exercises based on our tutorials. These exercises are very helpful to make you expert to identify any IP address class.

Note: To do this exercise, you may take help from IP(IPv4) Address Classes Cheat Sheet. This cheat sheet is very helpful for identifying this type of IP addresses.

[The answers of this exercise, can be found in Answer: Identification of IP Address Class. Our recommendation, is to (1) Memorizing the cheat sheet of Identification of IP Address Class and (2) Doing all the exercise by yourself without seeing the answers. Then find out the answer scripts whether the answers are correct or wrong.]

Serial

IP Address

Class

[a]

49.143.234.14

Class ______________

[b]

218.100.43.26

Class ______________

[c]

150.101.120.97

Class ______________

[d]

202.55.147.10

Class ______________

[e]

95.0.21.90

Class ______________

[f]

203.12.234.66

Class ______________

[g]

203.16.214.174

Class ______________

[h]

59.167.241.0

Class ______________

[i]

150.101.120.177

Class ______________

[j]

173.199.80.0

Class ______________

[k]

192.231.203.24

Class ______________

[l]

202.6.74.0

Class ______________

[m]

249.233.58.95

Class ______________

[n]

172.16.34.65

Class ______________

[o]

192.168.3.3

Class ______________

[p]

225.56.98.5

Class ______________

[q]

125.7.150.0

Class ______________

[r]

33.0.0.33

Class ______________

[s]

199.0.0.0

Class ______________

[t]

117.85.69.99

Class ______________

[u]

127.0.0.0

Class ______________

[v]

223.255.255.0

Class ______________

[w]

299.299.0.0

Class ______________

[x]

55.102.77.77

Class ______________

[y]

171.2.199.31

Class ______________

[z]

220.45.98.0

Class ______________

Answer: Identification of IP Address Class Click the link for getting the answers of all these exercise of identification of IP address class.