Experiment 07
Setting up a Basic Local Area Network (LAN) using Switches and Routers
Connect PCs, a server and a printer to switches and a router, configure IP addresses and default gateways, test with ping, and troubleshoot common faults.
Aim
To set up a basic local area network (LAN) using switches and a router, configure IP addresses and default gateways, and test and troubleshoot communication using ping.
Learning objectives
- Build a LAN topology with PCs, a server, a printer, switches and a router.
- Choose the correct cable type to connect devices.
- Configure IP address, subnet mask and default gateway on end devices.
- Explain the role of the switch (inside a LAN) and the router (between LANs).
- Use ping to test connectivity and interpret replies, time-outs and TTL.
- Find and fix common LAN faults.
Brief theory
- A LAN connects devices in a small area. Devices connect to a switch, which forwards frames between them using MAC addresses. A switch does not need an IP address to do this.
- Each device needs an IP address and a subnet mask. Devices whose addresses give the same network part (IP AND mask) are in the same network and can talk directly through the switch.
- To reach a different network, a device sends the packet to its default gateway, which is the router interface in its own network. The router looks up the destination network in its routing table and forwards the packet out of the correct interface. Each router reduces the TTL by 1.
- Cables: a copper straight-through cable connects unlike devices (PC–switch, switch–router). A copper cross-over cable connects like devices (switch–switch, PC–PC). Many modern ports detect this automatically (auto-MDIX), but in this lab, as in Cisco Packet Tracer, the correct cable must be chosen.
- Ping sends ICMP echo requests. “Reply from …” means success; “Request timed out” means no reply came back; “Destination host unreachable” means a router or the PC itself could not find a path.
This is an independent browser simulation of the Packet Tracer learning objectives. It is not Cisco Packet Tracer itself.
Instructions for students
Expected learning outcome
You will be able to build and configure a two-subnet LAN, test it with ping, explain the different roles of the switch and router, and troubleshoot common configuration and cabling faults.
Device configuration
Click a device or a link in the topology.
Command prompt
C:\>
Address plan
| Device | IP address | Subnet mask | Default gateway |
|---|
Router R1: Gi0/0 = 192.168.1.1/24 (LAN 1), Gi0/1 = 192.168.2.1/24 (LAN 2). Switches need no IP address.
Troubleshooting
Each scenario loads a working network with one fault. Find it with ping and the configuration panels, fix it, then ping again.
Observations
Readings fill in by themselves when you complete the guided steps in the simulation. They also appear under My observations beside the steps as you work. You can click any reading below and type your own.
| No. | What to observe | Expected result | Your observation | Status |
|---|
Result
A LAN of two subnets was set up using two switches and a router. Devices in the same subnet communicated through the switch, and devices in different subnets communicated through the router once default gateways were set.
Quiz
Choose one answer for each question, then press Check answers. Your score is also recorded in the Observations tab.