Practice Exercise: Basic Computer Networking Lab: IPv4 Subnetting
Introduction
Welcome to the Basic Computer Networking lab designed to help future Site Reliability Engineers (SREs) become familiar and knowledgeable in subnetting IPv4 Class C addresses. Subnetting is a fundamental skill for understanding and managing IP networks. In this lab, you will practice subnetting IPv4 Class C networks through real-world scenarios and exercises.
Prerequisites
- Basic understanding of IP addresses and binary conversion.
- A calculator or tools to perform binary operations (optional).
Scenario
As a future SRE, you will often need to design and manage IP networks efficiently. Understanding how to subnet IPv4 Class C addresses is essential for optimizing network resources. In this lab, you will work on subnetting tasks within a practical scenario.
Step-by-Step Exercises with IPv4 Subnetting Answers
Exercise 1: Subnetting Basics
- Given the IP address
192.168.0.0/24
, subnet it into four equal subnets. Provide the subnet IDs and subnet masks.
Answer:
- Subnet 1: 192.168.0.0/26
- Subnet 2: 192.168.0.64/26
- Subnet 3: 192.168.0.128/26
- Subnet 4: 192.168.0.192/26
Exercise 2: VLSM (Variable Length Subnet Masking)
- Given the IP address
192.168.1.0/24
, subnet it to accommodate two subnets with 30 hosts in one and 10 hosts in the other. Provide the subnet IDs and subnet masks.
Answer:
- Subnet 1: 192.168.1.0/27
(30 hosts)
- Subnet 2: 192.168.1.32/28
(10 hosts)
Exercise 3: Subnetting with Borrowed Bits
- Given the IP address
192.168.2.0/24
, subnet it into eight subnets with equal size. Provide the subnet IDs and subnet masks.
Answer:
- Subnet 1: 192.168.2.0/27
- Subnet 2: 192.168.2.32/27
- Subnet 3: 192.168.2.64/27
- Subnet 4: 192.168.2.96/27
- Subnet 5: 192.168.2.128/27
- Subnet 6: 192.168.2.160/27
- Subnet 7: 192.168.2.192/27
- Subnet 8: 192.168.2.224/27
Exercise 4: Subnetting with Custom Mask
- Given the IP address
192.168.3.0/24
, subnet it into three subnets with custom subnet masks: one with 64 hosts, one with 32 hosts, and one with 128 hosts. Provide the subnet IDs and subnet masks.
Answer:
- Subnet 1: 192.168.3.0/26
(64 hosts)
- Subnet 2: 192.168.3.64/27
(32 hosts)
- Subnet 3: 192.168.3.96/25
(128 hosts)
Exercise 5: Subnetting Practice
- Given the IP address
192.168.4.0/24
, subnet it into six subnets with equal size. Provide the subnet IDs and subnet masks.
Answer:
- Subnet 1: 192.168.4.0/28
- Subnet 2: 192.168.4.16/28
- Subnet 3: 192.168.4.32/28
- Subnet 4: 192.168.4.48/28
- Subnet 5: 192.168.4.64/28
- Subnet 6: 192.168.4.80/28
Exercise 6: Subnetting for Network Design
- Given the IP address
192.168.5.0/24
, subnet it to create two subnets, one for IT department with 60 hosts, and one for HR department with 30 hosts. Provide the subnet IDs and subnet masks.
Answer:
- Subnet for IT: 192.168.5.0/26
(60 hosts)
- Subnet for HR: 192.168.5.64/27
(30 hosts)
Exercise 7: Subnetting with Variable Requirements
- Given the IP address
192.168.6.0/24
, subnet it to accommodate four subnets with varying host requirements: 12 hosts, 28 hosts, 8 hosts, and 52 hosts. Provide the subnet IDs and subnet masks.
Answer:
- Subnet 1: 192.168.6.0/28
(12 hosts)
- Subnet 2: 192.168.6.16/27
(28 hosts)
- Subnet 3: 192.168.6.48/29
(8 hosts)
- Subnet 4: 192.168.6.56/26
(52 hosts)
Exercise 8: Subnetting for Remote Offices
- Given the IP address
192.168.7.0/24
, subnet it to allocate subnets for three remote offices with 30 hosts each. Provide the subnet IDs and subnet masks.
Answer:
- Subnet for Office 1: 192.168.7.0/27
(30 hosts)
- Subnet for Office 2: 192.168.7.32/27
(30 hosts)
- Subnet for Office 3: 192.168.7.64/27
(30 hosts)
Exercise 9: Subnetting Challenge
- Given the IP address
192.168.8.0/24
, subnet it to create eight subnets, each with a different number of hosts (ranging from 5 to 25 hosts). Provide the subnet IDs and subnet masks.
Answer:
- Subnet 1: 192.168.8.0/29
(5 hosts)
- Subnet 2: 192.168.8.8/29
(5 hosts)
- Subnet 3: 192.168.8.16/28
(14 hosts)
- Subnet 4: 192.168.8.32/28
(14 hosts)
- Subnet 5: 192.168.8.48/28
(14 hosts)
- Subnet 6: 192.168.8.64/28
(14 hosts)
- Subnet 7: 192.168.8.80/29
(5 hosts)
- Subnet 8: 192.168.8.88/29
(5 hosts)
Exercise 10: Subnetting for Future Growth
- Given the IP address
192.168.9.0/24
, subnet it to allocate subnets for four departments, each with a different number of hosts (ranging from 10 to 50 hosts). Provide the subnet IDs and subnet masks.
Answer:
- Subnet for Dept A: 192.168.9.0/28
(10 hosts)
- Subnet for Dept B: 192.168.9.16/27
(30 hosts)
- Subnet for Dept C: 192.168.9.48/26
(62 hosts)
- Subnet for Dept D: 192.168.9.112/26
(62 hosts)
Feel free to use this Markdown file for your lab scenario, now including an introduction, prerequisites, scenario, and 10 practice exercises with answers provided in IPv4 subnetting. Adjust the details as needed to fit your specific requirements.