🖥️

Configuring a Computer Network with DHCP

May 16, 2025

Setting Up a Computer Network with a Dedicated DHCP Server

Introduction

  • Tutorial on setting up a computer network using a dedicated DHCP server.
  • Using Cisco Packet Tracer for the configuration.

Environment Setup

  • Components needed:
    • Router: Using the Cisco 2911 model.
    • Switches: Two switches for this tutorial.
    • Server: Dedicated DHCP server.
    • Computers: Multiple PCs to connect to the network.

Step-by-Step Configuration

1. Setting Up Components

  • Router: Start with the 2911 router.
  • Switches: Add two switches to the layout.
  • Server: Rename the server to "DHCP".
  • Computers: Add several PCs for connection.
  • Connections: Use automatic connections for simplicity.

2. Configuring Switches

  • Switch 0 IP Address: 192.168.10.10 (D0)
  • Switch 1 IP Address: 192.168.20.10 (D1)

3. Configuring the Server

  • Server IP Address: 192.168.10.2
  • Default Gateway: 192.168.10.10
  • DHCP Pool Configuration:
    • Switch 1 Settings:
      • Name: "Switch 1"
      • Starting IP Address: 192.168.10.3
      • Maximum Users: 20
    • Switch 2 Settings:
      • Name: "Switch 2"
      • Starting IP Address: 192.168.20.2

4. Configuring the Router

  • Access the router's CLI (Command Line Interface).
  • Configure interfaces for the switches:
    • For Switch 1 (G0/0): 192.168.10.1
    • For Switch 2 (G0/1): 192.168.20.1
  • Set the IP helper address to the DHCP server's IP (192.168.10.2).
  • Save the configuration using do write memory.

5. Configuring PCs

  • Each PC should be set to use DHCP for IP configuration.
  • Ensure that PCs receive unique IP addresses from the DHCP server.

6. Testing the Network

  • Use ping commands to test connectivity:
    • Test from PC1 to other devices.
    • Confirm successful communication with the DHCP server.

7. Simulation and Packet Analysis

  • In simulation mode, observe packet headers and ensure proper communication.
  • Switch back to real-time to see IP address assignments in action.

Conclusion

  • Summary of configuring a network with multiple switches and computers using a static DHCP server.
  • Instructions on expanding the network with additional switches by following similar configuration steps.