# Lab 01: Two PCs, One Switch

**Tool:** Cisco Packet Tracer

## Objective

Connect two PCs through a switch, assign static IPs, and verify connectivity with ping.

## Topology

![](https://cdn.hashnode.com/uploads/covers/6ad571ef0ec7f7da80f9fd86/e3f8b551-d889-489f-b780-862c4d31860f.png align="center")

| Link | Cable |

| PC1 to Switch | Copper straight-through |

| PC2 to Switch | Copper straight-through |

## Addressing

| Device | IP Address | Subnet Mask |

| PC1 | 192.168.0.1 | 255.255.255.0 |

| PC2 | 192.168.0.2 | 255.255.255.0 |

| MAC Address |

![](https://cdn.hashnode.com/uploads/covers/6ad571ef0ec7f7da80f9fd86/5902fd5e-b0db-488f-9835-9b9d52de2fcf.png align="center")

## Configuration

On each PC: Desktop > IP Configuration > Static, then enter the IP and mask. No gateway is needed because both PCs are on the same subnet. The switch runs on its default configuration.

## Verification

From PC1:

`ping 192.168.0.2`

![](https://cdn.hashnode.com/uploads/covers/6ad571ef0ec7f7da80f9fd86/8eb9f985-4632-4b49-a4d4-54e1b6570ab4.png align="center")

## Observations

*   PC1 (192.168.0.1) pinged PC2 (192.168.0.2) across the switch: 4 of 4 replies, 0% loss, round-trip times under 1 ms.
    
*   TTL=128 on all replies, the default for Packet Tracer PCs, which fits a single-switch lab with no router.
    
*   `ipconfig/all` returns "Invalid Command." The correct syntax is `ipconfig /all`, with a space.
    

## Takeaways

*   Devices on the same subnet communicate through a switch without a router.
    
*   Straight-through cable is used for PC to switch.
