An open API service indexing awesome lists of open source software.

https://github.com/kill-ux/deep-in-net

Networking fundamentals project using Cisco Packet Tracer โ€” covers devices, (DHCP, DNS, HTTP/S, FTP), OSI model layers, routing, and multi-subnet architectures across 8 progressive exercises.
https://github.com/kill-ux/deep-in-net

cisco cisco-packet-tracer dhcp dns ftp http https layers osi protocols subnet

Last synced: 3 days ago
JSON representation

Networking fundamentals project using Cisco Packet Tracer โ€” covers devices, (DHCP, DNS, HTTP/S, FTP), OSI model layers, routing, and multi-subnet architectures across 8 progressive exercises.

Awesome Lists containing this project

README

          

# deep-in-net ๐ŸŒ

A hands-on networking project built with **Cisco Packet Tracer**, covering
foundational concepts in network design, device configuration, protocol
behavior, and the OSI model โ€” from simple peer-to-peer connections to
multi-subnet routed architectures.

![image](https://learn.zone01oujda.ma/api/content/root/01-edu_module/content/deep-in-net/pictures/serverRoomMeme.jpg)

---

## Table of Contents

1. [OSI Model](#osi-model)
2. [Cables](#cables)
3. [Devices](#devices)
4. [IP Addressing & Subnetting](#ip-addressing--subnetting)
5. [Protocols](#protocols)
6. [Routing](#routing)
7. [Exercises](#exercises)
8. [Bonus](#bonus)
9. [File Structure](#file-structure)

---

## OSI Model

The OSI model describes the 7 layers of network communication.
Every protocol and device maps to a specific layer.

```
Layer 7 โ€” Application โ†’ HTTP, HTTPS, FTP, DNS, DHCP
Layer 6 โ€” Presentation โ†’ TLS/SSL encryption
Layer 5 โ€” Session โ†’ session management
Layer 4 โ€” Transport โ†’ TCP, UDP (ports)
Layer 3 โ€” Network โ†’ IP, ICMP, ARP, Router
Layer 2 โ€” Data Link โ†’ MAC addresses, Switch, Frames
Layer 1 โ€” Physical โ†’ Cables, Hub, Bits
```

| Device | OSI Layer | Works with |
|--------|-----------|---------------|
| Hub | Layer 1 | Bits |
| Switch | Layer 2 | MAC addresses |
| Router | Layer 3 | IP addresses |

---

## Cables

### RJ-45 โ€” the 4 pins that matter

```
Pin 1 โ€” TX+ Pin 2 โ€” TXโˆ’ (Transmit)
Pin 3 โ€” RX+ Pin 6 โ€” RXโˆ’ (Receive)
```

TX on one side must connect to RX on the other.

### Port types

| Type | Device | Transmits on | Receives on |
| ----- | -------------------- | ------------ | ----------- |
| MDI | PC, Laptop , Router | 1 & 2 | 3 & 6 |
| MDI-X | Switch, Hub | 3 & 6 | 1 & 2 |

### The rule

```
MDI โ†โ†’ MDI-X โ†’ Straight-through (opposite types, swap in device)
MDI โ†โ†’ MDI โ†’ Crossover (same type, cable does the swap)
MDI-X โ†โ†’ MDI-X โ†’ Crossover (same type, cable does the swap)
```

### Straight-through

```
PC (MDI) Switch (MDI-X)
TX+ pin1 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ pin1 RX+
TXโˆ’ pin2 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ pin2 RXโˆ’
RX+ pin3 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ pin3 TX+
RXโˆ’ pin6 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ pin6 TXโˆ’
```

### Crossover pinout

```
PC A (MDI) PC B (MDI)
TX+ pin1 โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ pin3 RX+
TXโˆ’ pin2 โ”€โ”€โ”€โ”€โ•ฎโ”€โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ pin6 RXโˆ’
RX+ pin3 โ”€โ”€โ”€โ”€โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ pin1 TX+
RXโˆ’ pin6 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ pin2 TXโˆ’
```

### Reference

| Connection | Cable |
| --------------- | ---------------------- |
| PC โ†’ Switch | Straight-through |
| PC โ†’ Router | Crossover |
| PC โ†’ PC | Crossover |
| Switch โ†’ Switch | Crossover |
| Switch โ†’ Router | Straight-through |
| Modern devices | Either (Auto-MDI/MDIX) |

---

## Devices

### Hub โ€” Layer 1

Dumb repeater โ€” any signal received is copied to ALL other ports.

```
PC-A sends to PC-C โ†’ hub floods to PC-B, PC-C, PC-D
PC-B and PC-D must discard it โ†’ waste + collisions
```

- Half-duplex: send OR receive, never both
- One shared collision domain for all devices
- Uses CSMA/CD to handle collisions

### Switch โ€” Layer 2

Learns MAC addresses and forwards frames only to the correct port.

```
PC-A sends to PC-C โ†’ switch sends ONLY to PC-C
PC-B and PC-D hear nothing โ†’ efficient + private
```

- Full-duplex: send AND receive simultaneously
- Each port is its own collision domain
- Builds MAC address table from source MACs of incoming frames

### Router โ€” Layer 3

Connects different networks and forwards packets based on destination IP.

```
Switch โ†’ connects devices INSIDE one network
Router โ†’ connects DIFFERENT networks together
```

Packet forwarding:
```
1. Packet arrives with destination IP
2. Router checks routing table (longest prefix match)
3. Decrements TTL by 1
4. Rewrites MAC address (src=router, dst=next hop)
5. Forwards out correct interface
```

IP address never changes hop to hop. MAC address changes at every hop.

---

## IP Addressing & Subnetting

### Subnet formula

```
Block size = 2^(32 - prefix)
Usable IPs = block size - 2
Network = floor(IP รท block size) ร— block size
Broadcast = network + block size - 1
```

### Example โ€” 111.111.111.83/29

```
Step 1: 32 - 29 = 3 host bits โ†’ 2ยณ = 8 (block size)
Step 2: 83 รท 8 = 10.375
Step 3: drop decimal โ†’ 10
Step 4: 10 ร— 8 = 80 โ† network address
Step 5: 80 + 8 - 1 = 87 โ† broadcast

111.111.111.80 โ†’ network (reserved)
111.111.111.81 โ†’ host โœ“
111.111.111.82 โ†’ host โœ“
111.111.111.83 โ†’ host โœ“ โ† your IP
111.111.111.84 โ†’ host โœ“
111.111.111.85 โ†’ host โœ“
111.111.111.86 โ†’ host โœ“
111.111.111.87 โ†’ broadcast (reserved)
```

### Common subnet reference

```
Prefix Mask Block Usable
/24 255.255.255.0 256 254
/26 255.255.255.192 64 62
/27 255.255.255.224 32 30
/28 255.255.255.240 16 14
/29 255.255.255.248 8 6
/30 255.255.255.252 4 2
/32 255.255.255.255 1 1
```

---

## Protocols

### Protocol & Port Reference

| Protocol | Port | Transport | Layer | Purpose |
|----------|-------|-----------|-------|----------------------------|
| DHCP | 67/68 | UDP | L7 | Automatic IP assignment |
| DNS | 53 | UDP/TCP | L7 | Name โ†’ IP resolution |
| HTTP | 80 | TCP | L7 | Web (unencrypted) |
| HTTPS | 443 | TCP | L7 | Web (TLS encrypted) |
| FTP | 20/21 | TCP | L7 | File transfer |
| RIP | 520 | UDP | L7 | Dynamic routing |
| ARP | โ€” | โ€” | L2/3 | IP โ†’ MAC resolution |
| ICMP | โ€” | IP proto | L3 | Ping, traceroute, errors |
| OSPF | โ€” | IP 89 | L3 | Dynamic routing enterprise |

### TCP vs UDP

```
TCP โ†’ reliable, ordered, connection-oriented
confirms every packet โ†’ HTTP, HTTPS, FTP

UDP โ†’ fast, no guarantee, connectionless
fire and forget โ†’ DHCP, DNS, RIP
```

### ARP

Converts IP โ†’ MAC before any frame can be sent.

```
PC checks ARP cache โ†’ not found
PC broadcasts: "Who has 192.168.1.20?" (FF:FF:FF:FF:FF:FF)
Target replies: "I do โ€” AA:BB:CC:DD:EE:FF" (unicast)
PC stores in ARP cache โ†’ sends frame
```

```
Same subnet โ†’ ARP for destination IP
Other subnet โ†’ ARP for default gateway IP
```

### ICMP

Used for testing and error reporting. Not for data transfer.

```
Type 0 Echo Reply โ†’ ping response
Type 8 Echo Request โ†’ ping request
Type 3 Destination Unreachable โ†’ cannot reach host
Type 11 Time Exceeded โ†’ TTL = 0 (traceroute)
```

### DHCP

DORA handshake:
```
D โ€” DISCOVER broadcast "I need an IP" src=0.0.0.0
O โ€” OFFER reply "I offer 192.168.1.10"
R โ€” REQUEST broadcast "I accept 192.168.1.10"
A โ€” ACKNOWLEDGE reply "It's yours"
```

Assigns: IP, subnet mask, gateway, DNS server, lease time.

### DNS

Record types:
```
A domain โ†’ IPv4 main address record
CNAME alias โ†’ name www โ†’ domain (alias)
MX domain โ†’ mail email routing
PTR IP โ†’ domain reverse lookup
TXT domain โ†’ text SPF, DKIM, verification
```

In Exercise 3:
```
deep-in-net.local โ†’ 192.168.1.99 A record
deep-in-net.com โ†’ deep-in-net.local CNAME record
```

### FTP

```
Port 21 โ†’ control (commands)
Port 20 โ†’ data (file transfer)

Permissions: R read W write D delete N rename L list
RWDNL = full access
```

### HTTP & HTTPS

```
HTTP โ†’ plain text port 80 insecure
HTTPS โ†’ TLS encrypted port 443 secure
```

TLS handshake:
```
1. Client Hello โ†’ supported versions + ciphers
2. Server Hello โ†’ chosen cipher + certificate
3. Verify cert โ†’ check CA, domain, expiry
4. Key exchange โ†’ encrypted pre-master secret
5. Session key โ†’ both sides derive same key independently
6. Finished โ†’ tunnel confirmed, data flows
```

### RIP

```
Type: Distance Vector | Metric: hop count | Max: 15 | Port: UDP 520

router rip
version 2
network 192.168.1.0
no auto-summary
```

### OSPF

```
Type: Link State | Metric: bandwidth cost | Max: unlimited | Port: IP 89

router ospf 1
network 192.168.1.0 0.0.0.255 area 0
```

Note: OSPF uses wildcard masks โ€” inverse of subnet mask.
255.255.255.0 โ†’ 0.0.0.255 | 255.255.255.252 โ†’ 0.0.0.3

---

## Routing

### Static vs Dynamic

```
Static โ†’ admin adds routes manually, simple, no overhead
does not adapt if link fails

Dynamic โ†’ routers share routes automatically (RIP or OSPF)
adapts when topology changes
```

### Default Gateway

IP of the router interface on the device's local subnet.
Used to forward packets destined outside the local network.

### Serial โ€” DCE and DTE

```
DCE โ†’ provides clock signal (ISP side in real life)
DTE โ†’ receives clock (customer router)
```

In Packet Tracer: clock icon = DCE โ†’ must configure clock rate.

```
clock rate 64000 = 64 Kbps
no shutdown = turn interface ON (all interfaces OFF by default)
```

---

## Exercises

### Exercise 1 โ€” Direct PC Communication

**Topology:** 3 pairs of PCs connected directly.

**Cable:** Crossover โ€” PC to PC = MDI to MDI = same type โ†’ cable must swap TXโ†”RX.

**IP addresses from topology:**

```
Pair 1 โ€” /24 subnet:
PC1: 192.168.1.4/24 mask 255.255.255.0
PC0: 192.168.1.3/24 mask 255.255.255.0

Pair 2 โ€” /29 subnet (block of 8):
PC3: 192.168.13.83/29 mask 255.255.255.248
PC2: 192.168.13.81/29 mask 255.255.255.248
Block check: 83 รท 8 = 10 โ†’ 10ร—8=80 (network), 87 (broadcast)
Both .81 and .83 are in range 80โ€“87 โœ“

Pair 3 โ€” /29 subnet:
PC5: 129.168.13.249/29 mask 255.255.255.248
PC4: 192.168.13.254/29 mask 255.255.255.248
```

**Steps:**
```
1. Place two PCs
2. Connect with crossover cable
3. Click PC โ†’ Desktop โ†’ IP Configuration โ†’ Static
4. Enter IP and mask (no gateway needed โ€” direct connection)
5. Repeat for each pair
```

**Verify:**
```
PC0> ping 192.168.1.4 โ†’ reply โœ“
PC2> ping 192.168.13.83 โ†’ reply โœ“
```

---

### Exercise 2 โ€” Switch vs Hub

**Topology:** 5 PCs on 2960-24TT switch | 5 PCs on hub.

**IP addresses:**
```
Switch group โ€” /29 subnet (block 8):
S-PC1 to S-PC5: 193.168.1.1/29 to 193.168.1.5/29
mask: 255.255.255.248

Hub group โ€” /27 subnet (block 32):
H-PC1 to H-PC5: 193.168.1.193/27 to 193.168.1.197/27
mask: 255.255.255.224
```

**Steps:**
```
1. Place 2960-24TT switch and a hub separately
2. Connect each PC with straight-through cable (PC=MDI โ†’ Switch/Hub=MDI-X)
3. Assign static IPs to each PC (same subnet per group)
4. No gateway needed โ€” all same subnet
```

**Behavior difference:**
```
Switch โ†’ unicast to correct port only
Hub โ†’ floods to ALL ports, others discard
```

**Verify:**
```
S-PC1> ping 193.168.1.5 โ†’ reply โœ“
H-PC1> ping 193.168.1.197 โ†’ reply โœ“
```

---

### Exercise 3 โ€” Network Services

**Topology:** 4 servers + 6 PCs on one 2960-24TT switch.

**Server static IPs:**

| Server | IP | Mask | Service |
|-------------|---------------|---------------|----------------------|
| HTTP SERVER | 192.168.1.99 | 255.255.255.0 | HTTPS only |
| FTP SERVER | 192.168.1.100 | 255.255.255.0 | File transfer |
| DNS SERVER | 192.168.1.101 | 255.255.255.0 | Name resolution |
| DHCP SERVER | 192.168.1.102 | 255.255.255.0 | IP assignment |

**PCs:** receive IPs automatically from DHCP (range starts at 192.168.1.7/24).

**Steps:**

1 โ€” Set static IPs on all 4 servers:
```
Click server โ†’ Desktop โ†’ IP Configuration โ†’ Static
IP: as table above | Mask: 255.255.255.0 | DNS: 192.168.1.101
```

2 โ€” Configure DHCP server:
```
Click DHCP server โ†’ Services โ†’ DHCP โ†’ ON
Default gateway: 192.168.1.1
DNS server: 192.168.1.101
Start IP: 192.168.1.7
Subnet mask: 255.255.255.0
```

3 โ€” Configure HTTPS server:
```
Click HTTP server โ†’ Services โ†’ HTTP โ†’ OFF
Click HTTP server โ†’ Services โ†’ HTTPS โ†’ ON
Edit index.html โ†’ add hello message
```

4 โ€” Configure DNS server:
```
Click DNS server โ†’ Services โ†’ DNS โ†’ ON
Add: deep-in-net.local A 192.168.1.99
Add: deep-in-net.com CNAME deep-in-net.local
```

5 โ€” Configure FTP server:
```
Click FTP server โ†’ Services โ†’ FTP โ†’ ON
Add user: deepinnet / deepinnet / RWDNL
```

6 โ€” Set PCs to DHCP:
```
Click PC โ†’ Desktop โ†’ IP Configuration โ†’ DHCP
PC receives IP automatically
```

**Verify:**
```
PC> ping 192.168.1.99 โ†’ server reachable โœ“
PC> browser โ†’ https://deep-in-net.com โ†’ hello page โœ“
PC> ftp 192.168.1.100 โ†’ login deepinnet โ†’ access โœ“
```

---

### Exercise 4 โ€” Router Basics

**Topology:** PC0 โ”€โ”€ Router1 (1841) โ”€โ”€ PC1

**IP addresses:**
```
PC0: 192.168.1.2/30 gateway 192.168.1.1
PC1: 192.168.2.2/30 gateway 192.168.2.1
Router1: Fa0/0 = 192.168.1.1/30 (toward PC0)
Fa0/1 = 192.168.2.1/30 (toward PC1)
```

**Steps:**
```
Router1> enable
Router1# configure terminal

interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.252
no shutdown

interface FastEthernet0/1
ip address 192.168.2.1 255.255.255.252
no shutdown

end
write memory
```

Set on PCs:
```
PC0: IP 192.168.1.2 mask 255.255.255.252 gateway 192.168.1.1
PC1: IP 192.168.2.2 mask 255.255.255.252 gateway 192.168.2.1
```

**Verify:**
```
PC0> ping 192.168.2.2 โ†’ reply โœ“
PC1> ping 192.168.1.2 โ†’ reply โœ“
```

---

### Exercise 5 โ€” Two Subnets via Router

**Topology:** Switch0 โ”€โ”€ Router0 (2911) โ”€โ”€ Switch1

**IP addresses:**
```
Subnet 1 โ€” /29 (block 8):
PC0โ€“PC4: 192.168.1.2 to 192.168.1.6/29
Router0 Gi0/0: 192.168.1.1/29 mask 255.255.255.248

Subnet 2 โ€” /27 (block 32):
PC5โ€“PC9: 192.168.1.194 to 192.168.1.198/27
Router0 Gi0/1: 192.168.1.193/27 mask 255.255.255.224
```

**Steps:**
```
Router0> enable
Router0# configure terminal

interface GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.248
no shutdown

interface GigabitEthernet0/1
ip address 192.168.1.193 255.255.255.224
no shutdown

end
write memory
```

Set on PCs:
```
Subnet1 PCs: mask 255.255.255.248 gateway 192.168.1.1
Subnet2 PCs: mask 255.255.255.224 gateway 192.168.1.193
```

**Verify:**
```
PC0> ping 192.168.1.194 โ†’ cross-subnet โœ“
PC5> ping 192.168.1.2 โ†’ cross-subnet โœ“
```

---

### Exercise 6 โ€” Static Routing

**Topology:** PC0 โ”€โ”€ Router0 โ”€โ”€serialโ”€โ”€ Router1 โ”€โ”€ PC2

**IP addresses:**
```
PC0: 192.168.1.2/24 gateway 192.168.1.1
PC2: 192.168.2.2/24 gateway 192.168.2.1

Router0: Fa0/0 = 192.168.1.1/24 (toward PC0)
Se0/0/0 = 10.10.0.1/30 (toward Router1) DCE

Router1: Se0/0/0 = 10.10.0.2/30 (toward Router0) DTE
Fa0/0 = 192.168.2.1/24 (toward PC2)
```

**Steps:**

Router0 (DCE โ€” clock icon):
```
enable
configure terminal

interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
no shutdown

interface Serial0/0/0
ip address 10.10.0.1 255.255.255.252
clock rate 64000
no shutdown

ip route 192.168.2.0 255.255.255.0 10.10.0.2
end
write memory
```

Router1 (DTE):
```
enable
configure terminal

interface FastEthernet0/0
ip address 192.168.2.1 255.255.255.0
no shutdown

interface Serial0/0/0
ip address 10.10.0.2 255.255.255.252
no shutdown

ip route 192.168.1.0 255.255.255.0 10.10.0.1
end
write memory
```

**Verify:**
```
PC0> ping 192.168.2.2 โ†’ reply โœ“
PC2> ping 192.168.1.2 โ†’ reply โœ“
Router0# show ip route โ†’ S 192.168.2.0 via 10.10.0.2 โœ“
```

---

### Exercise 7 โ€” Multi-device Routing

**Topology:** PC0โ€“PC4 on Switch0 โ”€โ”€ Router0 โ”€โ”€serialโ”€โ”€ Router2 โ”€โ”€ Switch1 โ”€โ”€ Laptop0, PC5โ€“PC7

**IP addresses:**
```
Subnet 1: 192.168.1.0/24
PC0โ€“PC4: 192.168.1.2โ€“192.168.1.6/24
Router0 Fa0/0: 192.168.1.1/24

Serial: 10.10.0.0/30
Router0 Se0/0/0: 10.10.0.1/30 (DCE)
Router2 Se0/0/0: 10.10.0.2/30 (DTE)

Subnet 2: 192.168.2.0/24
Laptop0, PC5โ€“PC7: 192.168.2.2โ€“192.168.2.5/24
Router2 Fa0/0: 192.168.2.1/24
```

**Steps:**

Router0 (DCE):
```
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
interface Serial0/0/0
ip address 10.10.0.1 255.255.255.252
clock rate 64000
no shutdown
ip route 192.168.2.0 255.255.255.0 10.10.0.2
```

Router2 (DTE):
```
interface Serial0/0/0
ip address 10.10.0.2 255.255.255.252
no shutdown
interface FastEthernet0/0
ip address 192.168.2.1 255.255.255.0
no shutdown
ip route 192.168.1.0 255.255.255.0 10.10.0.1
```

**Verify:**
```
PC0> ping 192.168.2.2 โ†’ reply โœ“
Laptop0> ping 192.168.1.2 โ†’ reply โœ“
```

---

### Exercise 8 โ€” Three-Subnet Full Mesh

**Topology:** 3 routers, 3 switches, 3 subnets, 2 DHCP servers.

**IP addresses:**
```
Subnet 1: 192.168.1.0/26 (block 64, usable .1โ€“.62)
PC0โ€“PC4 + DHCP1 on Switch0
Router0 Gi0/0: 192.168.1.1/26 mask 255.255.255.192

Serial link 1 (Router0 โ†” Router2): 10.10.0.0/30
Router0 Se0/0/0: 10.10.0.1/30 (DCE)
Router2 Se0/0/0: 10.10.0.2/30

Serial link 2 (Router2 โ†” Router1): 10.10.1.0/30
Router2 Se0/0/1: 10.10.1.2/30
Router1 Se0/0/0: 10.10.1.1/30

Subnet 2: 192.168.2.0/24
DHCP2, Laptop0, PC5โ€“PC7 on Switch3
Router1 Fa0/0: 192.168.2.1/24 mask 255.255.255.0

Subnet 3: 192.168.3.160/28 (block 16, usable .161โ€“.174)
PC8, PC9, PC710, DHCP2(1) on Switch2
Router2 Fa0/0: 192.168.3.161/28 mask 255.255.255.240
```

**Steps:**

Router0:
```
interface GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.192
no shutdown
interface Serial0/0/0
ip address 10.10.0.1 255.255.255.252
clock rate 64000
no shutdown
ip route 192.168.2.0 255.255.255.0 10.10.0.2
ip route 192.168.3.160 255.255.255.240 10.10.0.2
```

Router2:
```
interface Serial0/0/0
ip address 10.10.0.2 255.255.255.252
no shutdown
interface Serial0/0/1
ip address 10.10.1.2 255.255.255.252
no shutdown
interface FastEthernet0/0
ip address 192.168.3.161 255.255.255.240
no shutdown
ip route 192.168.1.0 255.255.255.192 10.10.0.1
ip route 192.168.2.0 255.255.255.0 10.10.1.1
```

Router1:
```
interface Serial0/0/0
ip address 10.10.1.1 255.255.255.252
no shutdown
interface FastEthernet0/0
ip address 192.168.2.1 255.255.255.0
no shutdown
ip route 192.168.1.0 255.255.255.192 10.10.1.2
ip route 192.168.3.160 255.255.255.240 10.10.1.2
```

**Verify:**
```
PC0> ping 192.168.2.2 โ†’ subnet1 โ†’ subnet2 โœ“
PC0> ping 192.168.3.162 โ†’ subnet1 โ†’ subnet3 โœ“
PC5> ping 192.168.3.162 โ†’ subnet2 โ†’ subnet3 โœ“
Router0# show ip route โ†’ all 3 subnets present โœ“
```
---

## File Structure

```
deep-in-net/
โ”œโ”€โ”€ ex01.pkt direct PC pairs (crossover)
โ”œโ”€โ”€ ex02.pkt switch vs hub
โ”œโ”€โ”€ ex03.pkt DHCP, DNS, HTTPS, FTP servers
โ”œโ”€โ”€ ex04.pkt basic router
โ”œโ”€โ”€ ex05.pkt two subnets via router
โ”œโ”€โ”€ ex06.pkt static routing two routers
โ”œโ”€โ”€ ex07.pkt multi-device routing
โ”œโ”€โ”€ ex08.pkt three-subnet full mesh
โ””โ”€โ”€ README.md this file
```

---

> "Networking plays a critical role in various IT specialties,
> and is particularly essential for cloud and DevOps engineering.
> Be curious and never stop searching!"