Subnet Mask Calculation and Supernetting Questions
Subnet Mask Calculation Questions (Classful Addressing)
1. A Class C network has an IP address 192.168.1.0. Find the subnet mask if 4 subnets are
required.
Solution:
- Class C default subnet mask: 255.255.255.0
- Required subnets: 4
- Formula: 2^n >= Number of subnets
Here, n = 2 (as 2^2 = 4).
- Borrow 2 bits from the host part:
Subnet mask = 255.255.255.192 (first 2 bits in last octet are borrowed).
2. For a Class B network (172.16.0.0), calculate the subnet mask to create 64 subnets.
Solution:
- Class B default subnet mask: 255.255.0.0
- Required subnets: 64
- Formula: 2^n >= Number of subnets
Here, n = 6 (as 2^6 = 64).
- Borrow 6 bits from the host part:
Subnet mask = 255.255.252.0.
3. A Class A network (10.0.0.0) requires 1000 subnets. Find the subnet mask.
Solution:
- Class A default subnet mask: 255.0.0.0
- Required subnets: 1000
- Formula: 2^n >= Number of subnets
Here, n = 10 (as 2^10 = 1024).
- Borrow 10 bits from the host part:
Subnet mask = 255.255.192.0.
4. How many subnets can be created in a Class C network (192.168.5.0) with subnet mask
255.255.255.224?
Solution:
- Class C default subnet mask: 255.255.255.0
- Given subnet mask: 255.255.255.224
- Borrowed bits: 3 (as 224 in binary is 11100000).
- Formula: 2^n = Number of subnets
Subnets = 2^3 = 8.
5. A Class C network (198.51.100.0) has a subnet mask of 255.255.255.240. How many hosts are
available per subnet?
Solution:
- Subnet mask: 255.255.255.240
- Number of host bits: 4 (as 240 in binary is 11110000, leaving 4 bits).
- Formula: (2^n) - 2 = Number of hosts per subnet
Hosts = (2^4) - 2 = 14.
Supernetting Questions (Class C Networks)
1. Combine four Class C networks (192.168.1.0, 192.168.2.0, 192.168.3.0, 192.168.4.0) into a
single supernet. Find the supernet mask.
Solution:
- Identify common prefix:
Networks: 192.168.1.0, 192.168.2.0, 192.168.3.0, 192.168.4.0
Binary representation shows common prefix length of 22 bits.
- Supernet mask = 255.255.252.0.
2. Determine the supernet mask for combining eight Class C networks from 200.100.0.0 to
200.100.7.0.
Solution:
- Identify common prefix:
Binary shows common prefix length of 21 bits.
- Supernet mask = 255.255.248.0.
3. Combine two Class C networks (203.0.113.0 and 203.0.114.0) into a single supernet. Find the
supernet mask.
Solution:
- Identify common prefix:
Binary shows common prefix length of 23 bits.
- Supernet mask = 255.255.254.0.
4. Combine 16 Class C networks starting from 198.51.100.0. What is the supernet mask?
Solution:
- Identify common prefix:
Binary shows common prefix length of 20 bits.
- Supernet mask = 255.255.240.0.
5. Calculate the number of addresses in a supernet combining four Class C networks.
Solution:
- Class C network has 256 addresses.
- Combining 4 networks:
Total addresses = 256 * 4 = 1024.