Back to Gyanamguru Training Portal

Dynamic Host Configuration Protocol (DHCP) Simulation

Interactive 4-Step DORA Process (PC-1 Acquiring Address from DHCP Server)

Status: DORA Negotiation Step 1/4 -> DHCP DISCOVER (Broadcast) Initiated by Client PC.

Router Console - Local Gateway Router (Router_A)
Router_A> enable Router_A#
Router_A#

What is DHCP (Dynamic Host Configuration Protocol)?

Dynamic Host Configuration Protocol (DHCP) is a network management protocol operating at the Application Layer (UDP ports 67 for Server, 68 for Client). It automates the assignment of IP addresses, subnet masks, default gateways, DNS server addresses, and lease durations to end-user devices.

The 4-Step DORA Process Explained

APIPA (Automatic Private IP Addressing)

When a client fails to receive a DHCP response, operating systems like Windows fall back to an APIPA address within the range 169.254.0.1 to 169.254.255.254. Seeing a 169.254.x.x address indicates a complete DHCP server reachability or lease failure.

DHCP Relay Agent (ip helper-address)

Because DHCP Discover messages are Layer 2/3 broadcasts, routers do not forward them across subnets by default. When the DHCP server resides on a different network, the router interface facing the client must be configured with ip helper-address [DHCP_Server_IP] to convert incoming UDP broadcasts into targeted unicast packets routed directly to the remote DHCP Server.

Previous Lab (NAT/PAT) Next Lab (VLANs & Trunking)
×

DHCP Scenario Details

Active Mode: Local Router DHCP Server

IP Address Lease Matrix & DHCP Bindings

Device MAC Address Assigned IP Address Lease Type Status
PC-10050.56C0.0001192.168.1.100Automatic (DHCP)ACTIVE
PC-20050.56C0.0002192.168.1.101Automatic (DHCP)ACTIVE

Supported CLI Commands

Verification Commands: show ip dhcp binding, show ip dhcp pool, show running-config

Router DHCP Server Configuration Example:

  • ip dhcp excluded-address 192.168.1.1 192.168.1.9
  • ip dhcp pool LAN_POOL
  • network 192.168.1.0 255.255.255.0
  • default-router 192.168.1.1
  • dns-server 8.8.8.8