Introduction
In this 4.3.7 lab: configure IP networks and subnets you will gain hands‑on experience designing and implementing IP addressing schemes, calculating subnet masks, and verifying connectivity across multiple network segments. This guide walks you through the essential concepts, step‑by‑step configuration commands, and the underlying scientific principles that make subnetting work. By the end of the lab you will be able to plan a scalable IP network, apply CIDR notation, and troubleshoot common addressing errors with confidence.
Steps
The lab is organized into a clear sequence of actions. Follow each step methodically and record your results in a lab notebook or digital worksheet.
-
Gather Required Tools
- A network simulation platform (e.g., Cisco Packet Tracer, GNS3, or EVE‑NG). - A text editor for drafting IP plans.
- Access to a command‑line interface (CLI) on virtual routers or switches.
-
Design the IP Addressing Scheme
- Determine the total number of subnets and hosts required. - Choose a suitable address block (e.g., 192.168.10.0/24). - Calculate subnet masks using binary conversion or the CIDR calculator.
- Document each subnet’s network address, broadcast address, and usable host range. 3. Create Virtual Devices
- Build the topology: a central router connected to three separate LAN segments.
- Assign each interface an IP address from the appropriate subnet.
-
Configure Subnet Masks
- On each router interface, enter the command
ip address <IP> <MASK>followed byno shutdown. - Verify the mask with
show ip interface brief.
- On each router interface, enter the command
-
Enable Routing Protocols (Optional)
- If the lab requires inter‑subnet communication, enable OSPF or RIP on the router.
- Advertise the connected networks using
network <network> <wildcard-mask> area 0.
-
Test Connectivity
- From a host in each LAN, ping the default gateway and a host in a different subnet.
- Use
show ip routeto confirm that routes are being learned or manually entered.
-
Document Findings - Record the chosen subnet mask, IP allocations, and any observed issues Most people skip this — try not to..
- Reflect on how the chosen mask affected the number of available hosts and subnets.
Scientific Explanation
Understanding the science behind subnetting helps you make informed decisions rather than relying on rote memorization. - Binary Foundations: An IP address consists of 32 bits, divided into network and host portions. Subnet masks also use 32 bits, where 1 indicates the network portion and 0 indicates host bits. Converting these binary strings to decimal yields the familiar dotted‑decimal notation.
- CIDR Notation: Classless Inter‑Domain Routing (CIDR) notation appends a slash followed by the number of network bits (e.g.,
/24). This compact representation tells you exactly how many bits are set to1in the mask. - Subnet Calculation: To create n subnets, you need to borrow n bits from the host portion. The new mask length becomes
original network bits + borrowed bits. To give you an idea, borrowing 3 bits from a/24network yields a/27mask (255.255.255.224). - Host Capacity: The number of usable hosts per subnet is
2^(host bits) – 2. The subtraction of 2 accounts for the reserved network and broadcast addresses. - Route Summarization: When multiple contiguous subnets exist, a router can advertise them as a single summary route, reducing routing table size and improving efficiency.
These concepts are rooted in binary mathematics and addressing hierarchies, which together enable scalable network design It's one of those things that adds up. Turns out it matters..
FAQ Q1: How do I choose the right subnet mask for a given number of subnets?
A: Identify the smallest power of two that is equal to or greater than the required subnets. Convert that exponent into the number of bits to borrow, then add it to the original network prefix length.
Q2: Why are the first and last addresses in each subnet reserved?
A: The lowest address represents the network address (all host bits set to 0) and the highest address is the broadcast address (all host bits set to 1). These cannot be assigned to hosts.
Q3: Can I use Variable Length Subnet Mask (VLSM) in this lab?
A: Yes. VLSM allows you to assign different mask lengths to different subnets, optimizing address space. Implement it by creating separate subnets with masks like /26, /27, and /28 as needed Most people skip this — try not to. Turns out it matters..
Q4: What command verifies that a router has learned a route from a neighboring router? A: Use show ip route on the router; look for entries that reference the neighbor’s IP address or a routing protocol process (e.g., OSPF) And it works..
Q5: Is it possible to have a subnet with only one usable host?
A: Technically, a /31 mask provides two addresses that can be used point‑to‑point, but traditional subnetting reserves the network and broadcast addresses, so a /30 mask is the smallest that yields two usable hosts It's one of those things that adds up..
Practical Lab Scenario: Designing a Hierarchical Addressing Plan
To solidify these concepts, consider a typical enterprise requirement: an organization has been allocated the 10.10.Day to day, 0. 0/16 block and must design an addressing scheme for three sites (HQ, Branch A, Branch B) with varying host counts, plus WAN links connecting them.
Step 1: Requirements Analysis
| Site / Link | Required Hosts | Calculated Host Bits | Prefix Length | Usable Hosts |
|---|---|---|---|---|
| HQ LAN | 500 | 9 (2^9 - 2 = 510) |
/23 | 510 |
| Branch A LAN | 200 | 8 (2^8 - 2 = 254) |
/24 | 254 |
| Branch B LAN | 50 | 6 (2^6 - 2 = 62) |
/26 | 62 |
| WAN Links (x2) | 2 (p2p) | 1 (2^1 = 2, RFC 3021) |
/31 | 2 |
Step 2: VLSM Allocation (Top-Down Approach)
We carve the 10.10.0.0/16 block starting with the largest subnet to minimize fragmentation Simple, but easy to overlook..
- HQ LAN (
/23):10.10.0.0/23
Range: 10.10.0.1 – 10.10.1.254 | Broadcast: 10.10.1.255 - Branch A LAN (
/24):10.10.2.0/24
Range: 10.10.2.1 – 10.10.2.254 | Broadcast: 10.10.2.255 - Branch B LAN (
/26):10.10.3.0/26
Range: 10.10.3.1 – 10.10.3.62 | Broadcast: 10.10.3.63 - WAN Link HQ–Branch A (
/31):10.10.3.64/31
Addresses: 10.10.3.64 / 10.10.3.65 - WAN Link HQ–Branch B (
/31):10.10.3.66/31
Addresses: 10.10.3.66 / 10.10.3.67
Remaining Space: 10.10.3.68/26 through 10.10.255.255 remains unallocated for future growth—a critical advantage of VLSM Worth keeping that in mind..
Step 3: Router Configuration Snippets (Cisco IOS)
HQ Router
interface GigabitEthernet0/0
description HQ_LAN
ip address 10.10.0.1 255.255.254.0 ! /23
no shutdown
interface Serial0/0/0
description WAN_to_BranchA
ip address 10.Even so, 10. But 3. Also, 64 255. Still, 255. 255.254 !
interface Serial0/0/1
description WAN_to_BranchB
ip address 10.66 255.3.255.255.10.254 !
router ospf 1
network 10.Think about it: 10. 0.0 0.0.1.255 area 0 ! Covers HQ /23
network 10.10.3.64 0.Day to day, 0. Plus, 0. 1 area 0 !
**Branch A Router**
```cisco
interface GigabitEthernet0/0
description BranchA_LAN
ip address 10.10.2.1 255.255.255.0 ! /24
no shutdown
interface Serial0/0/0
description WAN_to_HQ
ip address 10.10.3.65 255.So 255. 255.254 !
router ospf 1
network 10.On the flip side, 10. 2.Which means 0 0. 0.0.
**Branch B Router**
```cisco
interface GigabitEthernet0/0
description BranchB_LAN
ip address 10.10.3.1 255.255.255.192 ! /26
no shutdown
interface Serial0/0/0
description WAN_to_HQ
ip address 10.On top of that, 67 255. Think about it: 3. Which means 255. Consider this: 10. 255.254 !
router ospf 1
network 10.10.3.In real terms, 0 0. 0.That's why 0. 63 area 0
network 10.10.Which means 3. 66 0.But 0. 0.
### Key Takeaways and Best Practices
This example demonstrates several critical networking principles. That said, first, **VLSM enables efficient IP address utilization** by allowing subnets of varying sizes within the same network, eliminating the waste inherent in fixed-length subnetting. The hierarchical design mirrors the organization's structure—larger sites receive appropriately sized blocks, while point-to-point links use minimal address space via /31 subnets.
Second, **planning from largest to smallest subnets** prevents fragmentation and simplifies allocation. Had we started with Branch B's /26, we might have created gaps difficult to fill later with larger blocks.
Third, **documentation is essential**. Network diagrams showing subnet boundaries, purpose, and device assignments become invaluable for troubleshooting and expansion. Consider maintaining a centralized IP allocation table.
Finally, **leave headroom for growth**. Think about it: 10. 4.The remaining address space (`10.0/16` and beyond) provides flexibility for additional branches, VLAN extensions, or network segmentation without requiring renumbering.
### Conclusion
Effective IP addressing strategy balances current needs with future scalability. By understanding subnet fundamentals, leveraging VLSM for optimization, and implementing hierarchical designs, network administrators can create solid, efficient addressing schemes that serve organizations well into the future. The transition from IPv4's scarcity challenges to IPv6's abundance doesn't eliminate the need for good design—thoughtful planning remains the cornerstone of professional network architecture.