VLSM Subnetting for CCNA: Design of 3 LANs and 2 WAN Links

VLSM (variable-length subnet mask) lets you fit each subnet to the number of hosts it needs. This lab starts from 192.168.10.0/24 and splits it across three LANs and two WAN links without wasting addresses. It is one of the most frequent CCNA exercises.

Exam domain: Network Fundamentals · Level: Intermediate · Updated on October 17, 2026 · 2 min read

Topology diagram “VLSM Subnetting for CCNA: Design of 3 LANs and 2 WAN Links” with 6 devices and 5 links
Topology: VLSM Subnetting for CCNA: Design of 3 LANs and 2 WAN Links

Edit this template Download .json

Learning objectives

Devices and addressing

DeviceTypeDetails
PC1PC / userLAN1 /25
192.168.10.10
R1RouterLAN1 192.168.10.0/25
G0/0 .1
G0/1 .225/30
R2RouterLAN2 192.168.10.128/26
G0/0 .129
G0/1 .226/30
G0/2 .229/30
PC2PC / userLAN2 /26
192.168.10.140
R3RouterLAN3 192.168.10.192/27
G0/1 .230/30
G0/0 .193
PC3PC / userLAN3 /27
192.168.10.200

Reference configuration (Cisco IOS)

R1

interface g0/0
 ip address 192.168.10.1 255.255.255.128
 no shutdown
interface g0/1
 ip address 192.168.10.225 255.255.255.252
 no shutdown
ip route 192.168.10.128 255.255.255.192 192.168.10.226
ip route 192.168.10.192 255.255.255.224 192.168.10.226

R2

interface g0/0
 ip address 192.168.10.129 255.255.255.192
 no shutdown
interface g0/1
 ip address 192.168.10.226 255.255.255.252
 no shutdown
interface g0/2
 ip address 192.168.10.229 255.255.255.252
 no shutdown
ip route 192.168.10.0 255.255.255.128 192.168.10.225
ip route 192.168.10.192 255.255.255.224 192.168.10.230

R3

interface g0/0
 ip address 192.168.10.193 255.255.255.224
 no shutdown
interface g0/1
 ip address 192.168.10.230 255.255.255.252
 no shutdown
ip route 0.0.0.0 0.0.0.0 192.168.10.229

Verification commands

CCNA exam tips

Assign the largest subnet first (100 hosts → /25), then the next one, and leave the /30s for last.

Usable hosts = 2^n − 2, where n is the number of host bits.

How to use this template

Press “Edit this template”: the editor opens with the topology loaded and ready to change (undo with Ctrl+Z). You can also copy the JSON and paste it into the editor with File ▸ Import JSON…. Then add devices, change IPs and export to PDF, PNG or SVG.

To practice, rebuild the topology in Cisco Packet Tracer, GNS3 or Cisco Modeling Labs and paste the reference configuration on each device. Addresses and names are examples: change them to create your own variants.

JSON template for the editor

This is the full diagram in JSON format. Paste it into the editor (File ▸ Import JSON…) or press the edit button to load it automatically.

Edit this template

Frequently asked questions

What is VLSM?

Using different-length masks inside the same network to fit each subnet to its real need.

Which mask do I need for 50 hosts?

A /26 (255.255.255.192), which gives 62 usable hosts.

CCNA and Cisco are registered trademarks of Cisco Systems, Inc. This site is independent, not affiliated with Cisco and does not provide official exam material: the templates are study examples.

More related pages