Blame

5a2f42 Francesco 2026-10-15 05:58:24
1
# CCNA Lab — VLSM Subnetting Excercise Write-Up
2
4bb10f Francesco 2026-10-15 05:58:42
3
Writeups for https://www.pingmynetwork.com
d89149 Francesco 2026-10-15 05:57:16
4
5
Base block: 192.168.10.0/24
6
7
Host requirements: LAN A = 50, LAN B = 25, LAN C = 10, LAN D = 5, WAN = 2
8
9
---
10
11
## R1
12
13
### Role
14
Edge router for the left side of the topology. Connects LAN A (SW1) and LAN B (SW2) to the WAN link toward R2.
15
16
### Interfaces
17
| Interface | Connects to | Subnet | IP address | Mask |
18
|---|---|---|---|---|
19
| GigabitEthernet0/0 | SW1 (LAN A) | 192.168.10.0/26 | 192.168.10.1 | 255.255.255.192 |
20
| GigabitEthernet0/1 | SW2 (LAN B) | 192.168.10.64/27 | 192.168.10.65 | 255.255.255.224 |
21
| GigabitEthernet0/0/0 | R2 Gi0/0/0 (WAN) | 192.168.10.120/30 | 192.168.10.121 | 255.255.255.252 |
22
| Serial0/0/1 | — (unused) | — | — | — |
23
24
### Configuration
25
enable
26
configure terminal
27
hostname R1
28
29
interface GigabitEthernet0/0
30
description LAN A - SW1
31
ip address 192.168.10.1 255.255.255.192
32
no shutdown
33
34
interface GigabitEthernet0/1
35
description LAN B - SW2
36
ip address 192.168.10.65 255.255.255.224
37
no shutdown
38
39
interface GigabitEthernet0/0/0
40
description WAN to R2
41
ip address 192.168.10.121 255.255.255.252
42
no shutdown
43
44
! Option A - static routing
45
ip route 192.168.10.96 255.255.255.240 192.168.10.122
46
ip route 192.168.10.112 255.255.255.248 192.168.10.122
47
48
! Option B - OSPF (use instead of static)
49
! router ospf 1
50
! network 192.168.10.0 0.0.0.63 area 0
51
! network 192.168.10.64 0.0.0.31 area 0
52
! network 192.168.10.120 0.0.0.3 area 0
53
54
end
55
write memory
56
57
### Verification
58
show ip interface brief
59
show ip route
60
ping 192.168.10.122
61
ping 192.168.10.97
62
ping 192.168.10.113
63
64
---
65
66
## R2
67
68
### Role
69
Edge router for the right side of the topology. Connects LAN C (SW3) and LAN D (SW4) to the WAN link toward R1.
70
71
### Interfaces
72
| Interface | Connects to | Subnet | IP address | Mask |
73
|---|---|---|---|---|
74
| GigabitEthernet0/0 | SW3 (LAN C) | 192.168.10.96/28 | 192.168.10.97 | 255.255.255.240 |
75
| GigabitEthernet0/1 | SW4 (LAN D) | 192.168.10.112/29 | 192.168.10.113 | 255.255.255.248 |
76
| GigabitEthernet0/0/0 | R1 Gi0/0/0 (WAN) | 192.168.10.120/30 | 192.168.10.122 | 255.255.255.252 |
77
| Serial0/0/1 | — (unused) | — | — | — |
78
79
### Configuration
80
enable
81
configure terminal
82
hostname R2
83
84
interface GigabitEthernet0/0
85
description LAN C - SW3
86
ip address 192.168.10.97 255.255.255.240
87
no shutdown
88
89
interface GigabitEthernet0/1
90
description LAN D - SW4
91
ip address 192.168.10.113 255.255.255.248
92
no shutdown
93
94
interface GigabitEthernet0/0/0
95
description WAN to R1
96
ip address 192.168.10.122 255.255.255.252
97
no shutdown
98
99
! Option A - static routing
100
ip route 192.168.10.0 255.255.255.192 192.168.10.121
101
ip route 192.168.10.64 255.255.255.224 192.168.10.121
102
103
! Option B - OSPF (use instead of static)
104
! router ospf 1
105
! network 192.168.10.96 0.0.0.15 area 0
106
! network 192.168.10.112 0.0.0.7 area 0
107
! network 192.168.10.120 0.0.0.3 area 0
108
109
end
110
write memory
111
112
### Verification
113
show ip interface brief
114
show ip route
115
ping 192.168.10.121
116
ping 192.168.10.1
117
ping 192.168.10.65
118
119
---
120
121
## SW1
122
123
### Role
124
Layer-2 access switch for LAN A. Connects PC1 to R1.
125
126
### Interfaces
127
| Interface | Connects to | Mode |
128
|---|---|---|
129
| GigabitEthernet0/1 | R1 Gi0/0 | Access (VLAN 1) |
130
| FastEthernet0/1 | PC1 | Access (VLAN 1) |
131
132
### Configuration
133
No configuration required. The switch operates with default settings:
134
- All ports in VLAN 1
135
- Spanning-tree PVST running
136
- Management SVI (Vlan1) left shutdown
137
138
Optional (recommended for cleanliness):
139
140
enable
141
configure terminal
142
hostname SW1
143
interface range GigabitEthernet0/1, FastEthernet0/1
144
description Access ports - LAN A
145
switchport mode access
146
no shutdown
147
end
148
write memory
149
150
### Verification
151
show interfaces status
152
show vlan brief
153
show mac address-table
154
155
---
156
157
## SW2
158
159
### Role
160
Layer-2 access switch for LAN B. Connects PC2 to R1.
161
162
### Interfaces
163
| Interface | Connects to | Mode |
164
|---|---|---|
165
| GigabitEthernet0/1 | R1 Gi0/1 | Access (VLAN 1) |
166
| FastEthernet0/1 | PC2 | Access (VLAN 1) |
167
168
### Configuration
169
No configuration required. The switch operates with default settings:
170
- All ports in VLAN 1
171
- Spanning-tree PVST running
172
- Management SVI (Vlan1) left shutdown
173
174
Optional (recommended for cleanliness):
175
176
enable
177
configure terminal
178
hostname SW2
179
interface range GigabitEthernet0/1, FastEthernet0/1
180
description Access ports - LAN B
181
switchport mode access
182
no shutdown
183
end
184
write memory
185
186
### Verification
187
show interfaces status
188
show vlan brief
189
show mac address-table
190
191
---
192
193
## SW3
194
195
### Role
196
Layer-2 access switch for LAN C. Connects PC3 to R2.
197
198
### Interfaces
199
| Interface | Connects to | Mode |
200
|---|---|---|
201
| GigabitEthernet0/1 | R2 Gi0/0 | Access (VLAN 1) |
202
| FastEthernet0/1 | PC3 | Access (VLAN 1) |
203
204
### Configuration
205
No configuration required. The switch operates with default settings:
206
- All ports in VLAN 1
207
- Spanning-tree PVST running
208
- Management SVI (Vlan1) left shutdown
209
210
Optional (recommended for cleanliness):
211
212
enable
213
configure terminal
214
hostname SW3
215
interface range GigabitEthernet0/1, FastEthernet0/1
216
description Access ports - LAN C
217
switchport mode access
218
no shutdown
219
end
220
write memory
221
222
### Verification
223
show interfaces status
224
show vlan brief
225
show mac address-table
226
227
---
228
229
## SW4
230
231
### Role
232
Layer-2 access switch for LAN D. Connects PC4 to R2.
233
234
### Interfaces
235
| Interface | Connects to | Mode |
236
|---|---|---|
237
| GigabitEthernet0/1 | R2 Gi0/1 | Access (VLAN 1) |
238
| FastEthernet0/1 | PC4 | Access (VLAN 1) |
239
240
### Configuration
241
No configuration required. The switch operates with default settings:
242
- All ports in VLAN 1
243
- Spanning-tree PVST running
244
- Management SVI (Vlan1) left shutdown
245
246
Optional (recommended for cleanliness):
247
248
enable
249
configure terminal
250
hostname SW4
251
interface range GigabitEthernet0/1, FastEthernet0/1
252
description Access ports - LAN D
253
switchport mode access
254
no shutdown
255
end
256
write memory
257
258
### Verification
259
show interfaces status
260
show vlan brief
261
show mac address-table
262
263
---
264
265
## PC1
266
267
### Role
268
Host on LAN A. Connected to SW1 FastEthernet0/1.
269
270
### Addressing
271
| Parameter | Value |
272
|---|---|
273
| IP address | 192.168.10.2 |
274
| Subnet mask | 255.255.255.192 (/26) |
275
| Default gateway | 192.168.10.1 (R1 Gi0/0) |
276
277
### Configuration (Desktop > IP Configuration)
278
IP Address: 192.168.10.2
279
Subnet Mask: 255.255.255.192
280
Default Gateway: 192.168.10.1
281
282
### Verification
283
Open Command Prompt on PC1 and run:
284
285
ipconfig /all
286
ping 192.168.10.1
287
ping 192.168.10.66
288
ping 192.168.10.98
289
ping 192.168.10.114
290
291
---
292
293
## PC2
294
295
### Role
296
Host on LAN B. Connected to SW2 FastEthernet0/1.
297
298
### Addressing
299
| Parameter | Value |
300
|---|---|
301
| IP address | 192.168.10.66 |
302
| Subnet mask | 255.255.255.224 (/27) |
303
| Default gateway | 192.168.10.65 (R1 Gi0/1) |
304
305
### Configuration (Desktop > IP Configuration)
306
IP Address: 192.168.10.66
307
Subnet Mask: 255.255.255.224
308
Default Gateway: 192.168.10.65
309
310
### Verification
311
Open Command Prompt on PC2 and run:
312
313
ipconfig /all
314
ping 192.168.10.65
315
ping 192.168.10.2
316
ping 192.168.10.98
317
ping 192.168.10.114
318
319
---
320
321
## PC3
322
323
### Role
324
Host on LAN C. Connected to SW3 FastEthernet0/1.
325
326
### Addressing
327
| Parameter | Value |
328
|---|---|
329
| IP address | 192.168.10.98 |
330
| Subnet mask | 255.255.255.240 (/28) |
331
| Default gateway | 192.168.10.97 (R2 Gi0/0) |
332
333
### Configuration (Desktop > IP Configuration)
334
IP Address: 192.168.10.98
335
Subnet Mask: 255.255.255.240
336
Default Gateway: 192.168.10.97
337
338
### Verification
339
Open Command Prompt on PC3 and run:
340
341
ipconfig /all
342
ping 192.168.10.97
343
ping 192.168.10.2
344
ping 192.168.10.66
345
ping 192.168.10.114
346
347
---
348
349
## PC4
350
351
### Role
352
Host on LAN D. Connected to SW4 FastEthernet0/1.
353
354
### Addressing
355
| Parameter | Value |
356
|---|---|
357
| IP address | 192.168.10.114 |
358
| Subnet mask | 255.255.255.248 (/29) |
359
| Default gateway | 192.168.10.113 (R2 Gi0/1) |
360
361
### Configuration (Desktop > IP Configuration)
362
IP Address: 192.168.10.114
363
Subnet Mask: 255.255.255.248
364
Default Gateway: 192.168.10.113
365
366
### Verification
367
Open Command Prompt on PC4 and run:
368
369
ipconfig /all
370
ping 192.168.10.113
371
ping 192.168.10.2
372
ping 192.168.10.66
373
ping 192.168.10.98
374
375
---
376
377
## Quick reference — all devices
378
379
| Device | Type | Interface | IP / Mask | Gateway |
380
|---|---|---|---|---|
381
| R1 | Router | Gi0/0 | 192.168.10.1 /26 | — |
382
| R1 | Router | Gi0/1 | 192.168.10.65 /27 | — |
383
| R1 | Router | Gi0/0/0 | 192.168.10.121 /30 | — |
384
| R2 | Router | Gi0/0 | 192.168.10.97 /28 | — |
385
| R2 | Router | Gi0/1 | 192.168.10.113 /29 | — |
386
| R2 | Router | Gi0/0/0 | 192.168.10.122 /30 | — |
387
| PC1 | PC | NIC | 192.168.10.2 /26 | 192.168.10.1 |
388
| PC2 | PC | NIC | 192.168.10.66 /27 | 192.168.10.65 |
389
| PC3 | PC | NIC | 192.168.10.98 /28 | 192.168.10.97 |
390
| PC4 | PC | NIC | 192.168.10.114 /29 | 192.168.10.113 |
391
| SW1–SW4 | Switch | — | Layer-2 only, no IP | — |