Commit d89149

2026-10-15 05:57:16 Francesco: -/-
/dev/null .. writeups/pingmynetwork/ccna-vlsm-subnetting-lab.md
@@ 0,0 1,391 @@
+# CCNA-VLSM-Subnetting-LAB
+
+# VLSM Lab — Per-Device Write-Up
+
+Base block: 192.168.10.0/24
+
+Host requirements: LAN A = 50, LAN B = 25, LAN C = 10, LAN D = 5, WAN = 2
+
+---
+
+## R1
+
+### Role
+Edge router for the left side of the topology. Connects LAN A (SW1) and LAN B (SW2) to the WAN link toward R2.
+
+### Interfaces
+| Interface | Connects to | Subnet | IP address | Mask |
+|---|---|---|---|---|
+| GigabitEthernet0/0 | SW1 (LAN A) | 192.168.10.0/26 | 192.168.10.1 | 255.255.255.192 |
+| GigabitEthernet0/1 | SW2 (LAN B) | 192.168.10.64/27 | 192.168.10.65 | 255.255.255.224 |
+| GigabitEthernet0/0/0 | R2 Gi0/0/0 (WAN) | 192.168.10.120/30 | 192.168.10.121 | 255.255.255.252 |
+| Serial0/0/1 | — (unused) | — | — | — |
+
+### Configuration
+ enable
+ configure terminal
+ hostname R1
+
+ interface GigabitEthernet0/0
+ description LAN A - SW1
+ ip address 192.168.10.1 255.255.255.192
+ no shutdown
+
+ interface GigabitEthernet0/1
+ description LAN B - SW2
+ ip address 192.168.10.65 255.255.255.224
+ no shutdown
+
+ interface GigabitEthernet0/0/0
+ description WAN to R2
+ ip address 192.168.10.121 255.255.255.252
+ no shutdown
+
+ ! Option A - static routing
+ ip route 192.168.10.96 255.255.255.240 192.168.10.122
+ ip route 192.168.10.112 255.255.255.248 192.168.10.122
+
+ ! Option B - OSPF (use instead of static)
+ ! router ospf 1
+ ! network 192.168.10.0 0.0.0.63 area 0
+ ! network 192.168.10.64 0.0.0.31 area 0
+ ! network 192.168.10.120 0.0.0.3 area 0
+
+ end
+ write memory
+
+### Verification
+ show ip interface brief
+ show ip route
+ ping 192.168.10.122
+ ping 192.168.10.97
+ ping 192.168.10.113
+
+---
+
+## R2
+
+### Role
+Edge router for the right side of the topology. Connects LAN C (SW3) and LAN D (SW4) to the WAN link toward R1.
+
+### Interfaces
+| Interface | Connects to | Subnet | IP address | Mask |
+|---|---|---|---|---|
+| GigabitEthernet0/0 | SW3 (LAN C) | 192.168.10.96/28 | 192.168.10.97 | 255.255.255.240 |
+| GigabitEthernet0/1 | SW4 (LAN D) | 192.168.10.112/29 | 192.168.10.113 | 255.255.255.248 |
+| GigabitEthernet0/0/0 | R1 Gi0/0/0 (WAN) | 192.168.10.120/30 | 192.168.10.122 | 255.255.255.252 |
+| Serial0/0/1 | — (unused) | — | — | — |
+
+### Configuration
+ enable
+ configure terminal
+ hostname R2
+
+ interface GigabitEthernet0/0
+ description LAN C - SW3
+ ip address 192.168.10.97 255.255.255.240
+ no shutdown
+
+ interface GigabitEthernet0/1
+ description LAN D - SW4
+ ip address 192.168.10.113 255.255.255.248
+ no shutdown
+
+ interface GigabitEthernet0/0/0
+ description WAN to R1
+ ip address 192.168.10.122 255.255.255.252
+ no shutdown
+
+ ! Option A - static routing
+ ip route 192.168.10.0 255.255.255.192 192.168.10.121
+ ip route 192.168.10.64 255.255.255.224 192.168.10.121
+
+ ! Option B - OSPF (use instead of static)
+ ! router ospf 1
+ ! network 192.168.10.96 0.0.0.15 area 0
+ ! network 192.168.10.112 0.0.0.7 area 0
+ ! network 192.168.10.120 0.0.0.3 area 0
+
+ end
+ write memory
+
+### Verification
+ show ip interface brief
+ show ip route
+ ping 192.168.10.121
+ ping 192.168.10.1
+ ping 192.168.10.65
+
+---
+
+## SW1
+
+### Role
+Layer-2 access switch for LAN A. Connects PC1 to R1.
+
+### Interfaces
+| Interface | Connects to | Mode |
+|---|---|---|
+| GigabitEthernet0/1 | R1 Gi0/0 | Access (VLAN 1) |
+| FastEthernet0/1 | PC1 | Access (VLAN 1) |
+
+### Configuration
+No configuration required. The switch operates with default settings:
+- All ports in VLAN 1
+- Spanning-tree PVST running
+- Management SVI (Vlan1) left shutdown
+
+Optional (recommended for cleanliness):
+
+ enable
+ configure terminal
+ hostname SW1
+ interface range GigabitEthernet0/1, FastEthernet0/1
+ description Access ports - LAN A
+ switchport mode access
+ no shutdown
+ end
+ write memory
+
+### Verification
+ show interfaces status
+ show vlan brief
+ show mac address-table
+
+---
+
+## SW2
+
+### Role
+Layer-2 access switch for LAN B. Connects PC2 to R1.
+
+### Interfaces
+| Interface | Connects to | Mode |
+|---|---|---|
+| GigabitEthernet0/1 | R1 Gi0/1 | Access (VLAN 1) |
+| FastEthernet0/1 | PC2 | Access (VLAN 1) |
+
+### Configuration
+No configuration required. The switch operates with default settings:
+- All ports in VLAN 1
+- Spanning-tree PVST running
+- Management SVI (Vlan1) left shutdown
+
+Optional (recommended for cleanliness):
+
+ enable
+ configure terminal
+ hostname SW2
+ interface range GigabitEthernet0/1, FastEthernet0/1
+ description Access ports - LAN B
+ switchport mode access
+ no shutdown
+ end
+ write memory
+
+### Verification
+ show interfaces status
+ show vlan brief
+ show mac address-table
+
+---
+
+## SW3
+
+### Role
+Layer-2 access switch for LAN C. Connects PC3 to R2.
+
+### Interfaces
+| Interface | Connects to | Mode |
+|---|---|---|
+| GigabitEthernet0/1 | R2 Gi0/0 | Access (VLAN 1) |
+| FastEthernet0/1 | PC3 | Access (VLAN 1) |
+
+### Configuration
+No configuration required. The switch operates with default settings:
+- All ports in VLAN 1
+- Spanning-tree PVST running
+- Management SVI (Vlan1) left shutdown
+
+Optional (recommended for cleanliness):
+
+ enable
+ configure terminal
+ hostname SW3
+ interface range GigabitEthernet0/1, FastEthernet0/1
+ description Access ports - LAN C
+ switchport mode access
+ no shutdown
+ end
+ write memory
+
+### Verification
+ show interfaces status
+ show vlan brief
+ show mac address-table
+
+---
+
+## SW4
+
+### Role
+Layer-2 access switch for LAN D. Connects PC4 to R2.
+
+### Interfaces
+| Interface | Connects to | Mode |
+|---|---|---|
+| GigabitEthernet0/1 | R2 Gi0/1 | Access (VLAN 1) |
+| FastEthernet0/1 | PC4 | Access (VLAN 1) |
+
+### Configuration
+No configuration required. The switch operates with default settings:
+- All ports in VLAN 1
+- Spanning-tree PVST running
+- Management SVI (Vlan1) left shutdown
+
+Optional (recommended for cleanliness):
+
+ enable
+ configure terminal
+ hostname SW4
+ interface range GigabitEthernet0/1, FastEthernet0/1
+ description Access ports - LAN D
+ switchport mode access
+ no shutdown
+ end
+ write memory
+
+### Verification
+ show interfaces status
+ show vlan brief
+ show mac address-table
+
+---
+
+## PC1
+
+### Role
+Host on LAN A. Connected to SW1 FastEthernet0/1.
+
+### Addressing
+| Parameter | Value |
+|---|---|
+| IP address | 192.168.10.2 |
+| Subnet mask | 255.255.255.192 (/26) |
+| Default gateway | 192.168.10.1 (R1 Gi0/0) |
+
+### Configuration (Desktop > IP Configuration)
+ IP Address: 192.168.10.2
+ Subnet Mask: 255.255.255.192
+ Default Gateway: 192.168.10.1
+
+### Verification
+Open Command Prompt on PC1 and run:
+
+ ipconfig /all
+ ping 192.168.10.1
+ ping 192.168.10.66
+ ping 192.168.10.98
+ ping 192.168.10.114
+
+---
+
+## PC2
+
+### Role
+Host on LAN B. Connected to SW2 FastEthernet0/1.
+
+### Addressing
+| Parameter | Value |
+|---|---|
+| IP address | 192.168.10.66 |
+| Subnet mask | 255.255.255.224 (/27) |
+| Default gateway | 192.168.10.65 (R1 Gi0/1) |
+
+### Configuration (Desktop > IP Configuration)
+ IP Address: 192.168.10.66
+ Subnet Mask: 255.255.255.224
+ Default Gateway: 192.168.10.65
+
+### Verification
+Open Command Prompt on PC2 and run:
+
+ ipconfig /all
+ ping 192.168.10.65
+ ping 192.168.10.2
+ ping 192.168.10.98
+ ping 192.168.10.114
+
+---
+
+## PC3
+
+### Role
+Host on LAN C. Connected to SW3 FastEthernet0/1.
+
+### Addressing
+| Parameter | Value |
+|---|---|
+| IP address | 192.168.10.98 |
+| Subnet mask | 255.255.255.240 (/28) |
+| Default gateway | 192.168.10.97 (R2 Gi0/0) |
+
+### Configuration (Desktop > IP Configuration)
+ IP Address: 192.168.10.98
+ Subnet Mask: 255.255.255.240
+ Default Gateway: 192.168.10.97
+
+### Verification
+Open Command Prompt on PC3 and run:
+
+ ipconfig /all
+ ping 192.168.10.97
+ ping 192.168.10.2
+ ping 192.168.10.66
+ ping 192.168.10.114
+
+---
+
+## PC4
+
+### Role
+Host on LAN D. Connected to SW4 FastEthernet0/1.
+
+### Addressing
+| Parameter | Value |
+|---|---|
+| IP address | 192.168.10.114 |
+| Subnet mask | 255.255.255.248 (/29) |
+| Default gateway | 192.168.10.113 (R2 Gi0/1) |
+
+### Configuration (Desktop > IP Configuration)
+ IP Address: 192.168.10.114
+ Subnet Mask: 255.255.255.248
+ Default Gateway: 192.168.10.113
+
+### Verification
+Open Command Prompt on PC4 and run:
+
+ ipconfig /all
+ ping 192.168.10.113
+ ping 192.168.10.2
+ ping 192.168.10.66
+ ping 192.168.10.98
+
+---
+
+## Quick reference — all devices
+
+| Device | Type | Interface | IP / Mask | Gateway |
+|---|---|---|---|---|
+| R1 | Router | Gi0/0 | 192.168.10.1 /26 | — |
+| R1 | Router | Gi0/1 | 192.168.10.65 /27 | — |
+| R1 | Router | Gi0/0/0 | 192.168.10.121 /30 | — |
+| R2 | Router | Gi0/0 | 192.168.10.97 /28 | — |
+| R2 | Router | Gi0/1 | 192.168.10.113 /29 | — |
+| R2 | Router | Gi0/0/0 | 192.168.10.122 /30 | — |
+| PC1 | PC | NIC | 192.168.10.2 /26 | 192.168.10.1 |
+| PC2 | PC | NIC | 192.168.10.66 /27 | 192.168.10.65 |
+| PC3 | PC | NIC | 192.168.10.98 /28 | 192.168.10.97 |
+| PC4 | PC | NIC | 192.168.10.114 /29 | 192.168.10.113 |
+| SW1–SW4 | Switch | — | Layer-2 only, no IP | — |
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9