free lab · CertCrack Packet Tracer Labs · All labs

Lab 2: IPv4 Addressing & Subnetting a Small LAN

CCNA domain: Domain 1 · Network Fundamentals (IPv4 addressing and subnetting)  ·  Difficulty: Beginner  ·  Time: ~25 minutes  ·  Devices: 1 router (2911), 1 switch (2960), 2 PCs

Subnetting stops being abstract the moment you have to type the addresses. CertCrack.com's lab office network starts as one block, 192.168.10.0/24, and you will split it into two /26 subnets — one for each side of the router — then address the router interfaces and both PCs, and prove the design with pings. A /26 gives you 64 addresses per subnet: the first is the network address, the last is the broadcast, and 62 are usable for hosts.

Your progress on this lab

0 of 5 tasks done — tick tasks off as you finish them; progress is saved in this browser.

What you need

Topology

PC0192.168.10.10/26SW12960R12911PC1192.168.10.70/26Fa0/1Fa0/24G0/0 · 192.168.10.1G0/1 · 192.168.10.65

R1 is the boundary between the two subnets, so it holds the first usable address of each: 192.168.10.1 for Subnet A (192.168.10.0/26, usable .1–.62, broadcast .63) and 192.168.10.65 for Subnet B (192.168.10.64/26, usable .65–.126, broadcast .127). Each PC uses its router interface as the default gateway. Subnets C (192.168.10.128/26) and D (192.168.10.192/26) exist in the plan but stay unassigned — room to grow.

DeviceInterfaceIP addressNotes
R1GigabitEthernet 0/0192.168.10.1 /26Gateway for Subnet A (mask 255.255.255.192)
R1GigabitEthernet 0/1192.168.10.65 /26Gateway for Subnet B (mask 255.255.255.192)
SW1FastEthernet 0/1—Link to PC0
SW1FastEthernet 0/24—Link up to R1 G0/0
PC0FastEthernet 0192.168.10.10 /26Gateway 192.168.10.1 — Subnet A
PC1FastEthernet 0192.168.10.70 /26Gateway 192.168.10.65 — Subnet B

Tasks

Build the topology first, then work through the tasks in order. Try each task from memory before you open the commands — that is how the skill sticks. Click Show commands only when you are stuck or to check your work.

Task 1 — Address R1's interface for Subnet A

Click R1 and open the CLI. Router interfaces are shut down by default, so every interface you configure also needs no shutdown — forgetting it is the number-one beginner fault. Configure G0/0 with Subnet A's gateway address and the /26 mask, then bring it up:

enable
configure terminal
interface gigabitEthernet 0/0
ip address 192.168.10.1 255.255.255.192
description Gateway - Subnet A
no shutdown
exit

Task 2 — Address R1's interface for Subnet B

Same pattern on G0/1, using the first usable address of the second /26 block. Notice the network changed under you: .65 belongs to the .64 network, not the .0 network — that single fact is what makes the two sides separate subnets even though they came from one /24.

interface gigabitEthernet 0/1
ip address 192.168.10.65 255.255.255.192
description Gateway - Subnet B
no shutdown
exit

Task 3 — Give PC0 a static address in Subnet A

Click PC0 → Desktop → IP Configuration, choose Static, and enter the values below. The default gateway must be an address inside PC0's own subnet — that is why it is R1's G0/0 address, .1, and not the far-side .65.

PC0 > Desktop > IP Configuration (Static):
IP Address:      192.168.10.10
Subnet Mask:     255.255.255.192
Default Gateway: 192.168.10.1

Task 4 — Give PC1 a static address in Subnet B and ping its gateway

Configure PC1 the same way with its Subnet B values, then open PC1's Command Prompt and ping the gateway. The first ping in a fresh topology sometimes loses one packet while ARP resolves the gateway's MAC address — run it twice before you suspect a fault.

PC1 > Desktop > IP Configuration (Static):
IP Address:      192.168.10.70
Subnet Mask:     255.255.255.192
Default Gateway: 192.168.10.65

PC1 > Desktop > Command Prompt:
ping 192.168.10.65

Task 5 — Test end to end across the router

Now the real test: from PC0's Command Prompt, ping PC1 through the router, then ping PC0's own gateway and PC1's gateway. Crossing subnets forces PC0 to use its default gateway — if the gateway address or mask is wrong anywhere, this is the test that finds it.

PC0 > Desktop > Command Prompt:
ping 192.168.10.70
ping 192.168.10.65

Verification

Run these checks from the device CLI (or a PC command prompt where noted). Your output should match the description — wording may vary slightly by Packet Tracer version.

Exam connection

IPv4 subnetting is the single most-tested skill in CCNA Domain 1: you are expected to carve a block into subnets, pick valid host addresses, and spot the wrong mask or gateway in a scenario — fast, and without a calculator. This lab makes you do it with real keystrokes. When the /26 math here feels slow, drill it with the free subnet calculator and subnetting practice tools, then measure yourself with the free 30-question CCNA practice sample and the CCNA 200-301 guidebook.

Turn lab skills into exam marks

Addressing plans, masks and gateways are guaranteed CCNA marks. Run the free sample and see how quickly you can work the same math under exam pressure.

Free CCNA SampleCCNA Guidebook

FAQ

Why does a /26 subnet have 62 usable hosts, not 64?

A /26 leaves 6 host bits, so 2^6 = 64 total addresses. The first address names the network itself (192.168.10.0) and the last is the broadcast address (192.168.10.63) — neither can be given to a host. 64 − 2 = 62 usable addresses, which is why gateways and PCs in this lab sit between .1 and .62.

Why must the default gateway be inside the PC's own subnet?

A host decides where to send a packet by comparing the destination with its own subnet. Anything outside is handed to the default gateway — but the host can only reach that gateway directly if the gateway is on the same local subnet. A gateway outside the subnet is unreachable by definition, which is why PC0 uses .1 and never .65.

What does up/up mean in show ip interface brief?

The first 'up' is the physical state — the interface is enabled and sees a live link. The second is the line protocol state — the data-link layer is working. Up/down usually means a cabling or far-end problem; administratively down means the interface is still shut down and needs no shutdown.

← Previous labLab 1: IOS Basics & Device Security Next lab →Lab 3: VLANs & 802.1Q Trunking

More free tools

Packet Tracer LabsAll 10 free CCNA hands-on labs Subnet CalculatorNetwork, broadcast & host ranges from any IP/CIDR Subnetting PracticeTimed subnet drills with worked solutions OSI Model QuizLearn the 7 layers and test yourself All Free ToolsThe CertCrack tools hub