Worksheet: Connecting Two Computers with an Ethernet Cable
Objective
Learn how to connect two computers using an Ethernet cable for file sharing and communication.
Section 1: Required Materials
1. Two computers (Laptop or Desktop)
2. An Ethernet crossover cable (or a standard Ethernet cable if both computers support Auto-MDIX)
3. Network interface cards (NIC) installed on both computers
4. Basic knowledge of network settings
Section 2: Steps to Connect Two Computers
Step 1: Connecting the Ethernet Cable
Plug one end of the Ethernet cable into the LAN (Ethernet) port of the first computer.
Plug the other end into the LAN port of the second computer.
Step 2: Configuring IP Addresses (Manual Method)
1. Open Control Panel > Network and Sharing Center on both computers.
2. Click on Change adapter settings on the left panel.
3. Right-click on Ethernet and select Properties.
4. Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
5. Assign static IP addresses:
o Computer 1:
IP Address: 192.168.1.1
Subnet Mask: 255.255.255.0
Default Gateway: Leave blank
o Computer 2:
IP Address: 192.168.1.2
Subnet Mask: 255.255.255.0
Default Gateway: Leave blank
6. Click OK and close all windows.
Step 3: Testing the Connection
Open Command Prompt (cmd) on Computer 1.
Type: ping 192.168.1.2 and press Enter.
If replies are received, the connection is successful.
Repeat the test from Computer 2 by pinging 192.168.1.1.
Section 3: File Sharing Between Computers
Enabling File Sharing
1. Open Control Panel > Network and Sharing Center.
2. Click Advanced sharing settings.
3. Turn on Network Discovery and File and Printer Sharing.
Sharing a Folder
1. Right-click on a folder you want to share and select Properties.
2. Go to the Sharing tab and click Advanced Sharing.
3. Check Share this folder and click OK.
4. The folder can now be accessed from the second computer.
Section 4: Questions & Exercises
1. What type of Ethernet cable is used to connect two computers directly?
2. Why do we assign static IP addresses to both computers?
3. What command is used to check if two computers are connected?
4. What settings must be enabled to share files between two computers?
5. Try setting up file sharing on your computers and write down any issues you faced.