๐ Introduction to LAN (Local Area Network)
๐ Introduction to LAN (Local Area Network)
๐ง What is a LAN?
A LAN (Local Area Network) is a network that connects computers and devices within a limited area — such as a classroom, office, or building — to share data, files, and internet access.
In simple terms: A LAN connects your PCs, printers, and switches within the same location.
๐งฉ Key Characteristics of a LAN
| Feature | Description |
|---|---|
| Coverage | Small geographical area (e.g., one building or campus) |
| Speed | High speed (typically 100 Mbps to 10 Gbps) |
| Ownership | Usually owned and managed by one organization |
| Technology Used | Ethernet, Wi-Fi |
| Devices Involved | PCs, switches, routers, printers, access points |
๐ฅ️ Basic LAN Components
-
End Devices: PCs, laptops, printers — send and receive data.
-
Switches: Connect multiple devices within the LAN.
-
Routers: Connect LANs to other networks (like the Internet).
-
Cables: Ethernet cables (Cat5e/Cat6) for wired connections.
-
Wireless Access Points (optional): Connect wireless devices to the LAN.
๐ How LAN Communication Works
-
Devices in the LAN communicate using MAC addresses.
-
The switch forwards data only to the intended device.
-
Devices must be in the same IP network (subnet) to communicate directly.
-
You can verify connectivity using the ping command.
๐ก Real-World Examples
-
School or office computer labs
-
Home Wi-Fi networks
-
Company intranets
๐งฐ Hands-On Lab: Building a LAN in Cisco Packet Tracer
๐ฏ Goal:
To connect two PCs through a switch and verify communication using ping.
๐ง Lab Setup
| Device | Quantity | Description |
|---|---|---|
| PC | 2 | End devices |
| Switch | 1 | Network switch (e.g., Cisco 2960) |
| Ethernet Cable | 2 | Straight-through cables |
๐ช Step-by-Step Procedure
๐ฅ️ Step 1: Open Cisco Packet Tracer
-
Launch the Packet Tracer application.
-
In the bottom-left device toolbar, choose End Devices → drag two PCs to the workspace.
-
From Switches, drag one 2960 switch to the center.
๐ Step 2: Connect Devices
-
Select the Connections (lightning bolt icon).
-
Choose Copper Straight-Through Cable.
-
Connect:
-
PC0 → Switch (FastEthernet0/1)
-
PC1 → Switch (FastEthernet0/2)
-
⚙️ Step 3: Assign IP Addresses
-
Click PC0 → Desktop → IP Configuration
-
IP address:
192.168.1.1 -
Subnet mask:
255.255.255.0
-
-
Click PC1 → Desktop → IP Configuration
-
IP address:
192.168.1.2 -
Subnet mask:
255.255.255.0
-
(Leave default gateway empty — no router needed for LAN.)
๐ Step 4: Test Connectivity
-
Go to PC0 → Desktop → Command Prompt
-
Type:
-
You should see “Reply from 192.168.1.2: bytes=32 time<1ms”
๐ Success!
Your two PCs are now communicating through a LAN switch.
๐ง What You Learned
-
Devices on the same network (192.168.1.0/24) can communicate without a router.
-
A switch operates at Layer 2 (Data Link Layer) of the OSI model.
-
Each device must have a unique IP address.
-
The ping command verifies connectivity using ICMP.
๐งฉ Extended Challenge (Optional)
✅ Add:
-
A third PC
-
A printer
-
Assign each an IP (e.g., 192.168.1.3, 192.168.1.4)
Then test communication between all devices.
๐งพ Summary
| Concept | Key Takeaway |
|---|---|
| LAN | Connects local devices within a small area |
| Switch | Central device connecting PCs within LAN |
| IP Addressing | Must be unique and in same subnet |
| Ping | Tests communication between devices |
๐ฌ Closing Line for Students
“A LAN is the first step to understanding how the entire Internet works — if you can connect two PCs, you’ve already built the foundation of networking.”
Comments
Post a Comment