Lab Handout Solution # 01 Roll - No: 22sw076
Lab Handout Solution # 01 Roll - No: 22sw076
OBJECTIVES
#. Of
# Topic CLO Taxonomy level
Lectures
To become familiar with subnetting concepts.
1 3 1,2 C3, P5
TASK:1
Use the following information and the previous examples to answer the following subnet-related
questions
A company has applied for and received a Class C network address of 197.15.22.0.
The physical network is to be divided into 4 subnets, which will be interconnected by
routers. At least 25 hosts will be needed per subnet. A Class C custom subnet mask
needs to be used and a router is needed between the subnets to route packets from
one subnet to another. Determine the number of bits that need to be borrowed from
the host portion of the network address and the number of bits that will be left for
host addresses.
Solution:
Fill in the following table and answer the following questions:
Subnet Subnet Bits Subnet Bits Host Bits Subnet/ho Use?
No. Borrowed Decimal and Possible st Decimal
Binary Subnet No. Binary Range
Value Values(Range)
(5 Bits )
0 subnet 000 0 00001 – 11111 0 -31 Network Address
1st 001 1 00001 – 11111 32 -63 To create Hosts
subnet
2nd 010 2 00001 – 11111 64 – 95 To create Hosts
subnet
3rd 011 3 00001 – 11111 96 – 127 To create Hosts
subnet
4th 100 4 00001 – 11111 128 – 159 To create Hosts
subnet
5th 101 5 00001 – 11111 160 – 191 To create Hosts
subnet
6th 110 6 00001 – 11111 192 – 223 To create Hosts
subnet
7th 111 7 00001 – 11111 224 – 254 Broadcast Address
subnet
Use the table just developed to help answer the following questions:
3. What is the binary equivalent of the Class C network address in the scenario?
- For the address `197.15.22.0`, the binary form is
`11000101.00001111.00010110.00000000`.
4. How many high-order bits were borrowed from the host bits in the fourth octet?
- Three bits were borrowed from the host portion.
5. What subnet mask must be used? Show the subnet mask in decimal and binary.
- The subnet mask in binary: `11111111.11111111.11111111.11100000`
- Decimal: `255.255.255.224`
6. What is the maximum number of subnets that can be created with this subnet
mask?
- \ (2^3 = 8\) subnets.
7. What is the maximum number of usable subnets that can be created with this
mask?
- Generally, 6 subnets are usable (excluding the first and last for network and
broadcast).
8. How many bits were left in the fourth octet for host IDs?
- Five bits remain for host IDs.
9. How many hosts per subnet can be defined with this subnet mask?
- \ (2^5 - 2 = 30\) hosts per subnet (excluding network and broadcast addresses).
10. What is the maximum number of hosts that can be defined for all subnets with this
scenario?
- \ (6 \times 30 = 180\) hosts.