CCNA Notes

200-301 Exam Prep

Progress0/67

0% complete

Practice TestsNew
1Networking Devices2Interfaces And Cables3OSI Model and TCP/IP Suite4Intro to the CLI5Ethernet LAN Switching - Part 16Ethernet LAN Switching - Part 27IPv4 Addressing - Part 18IPv4 Addressing - Part 29Switch Interfaces10The IPv4 Header11Routing Fundamentals - Part 111Static Routing - Part 212Life of a Packet13Subnetting - Part 114Subnetting - Part 215Subnetting (VLSM) - Part 316VLANs - Part 117VLANs - Part 218VLANs - Part 319DTP / VTP20Spanning Tree Protocol - Part 121Spanning Tree Protocol - Part 222Rapid Spanning Tree Protocol23Etherchannel24Dynamic Routing25RIP / EIGRP26OSPF - Part 127OSPF - Part 228OSPF - Part 329First Hop Redundancy Protocol30TCP and UDP31IPv6 - Part 132IPv6 - Part 233IPv6 - Part 334Standard Access Control List35Extended Access Control List36CDP and LLDP37NTP - Network Time Protocol38DNS - Domain Name System39DHCP - Dynamic Host Configuration Protocol40SNMP - Simple Network Management Protocol41SYSLOG42SSH - Secure Shell43FTP and TFTP44NAT (Static) - Part 145NAT (Dynamic) - Part 246QoS (Voice VLAN) - Part 147QoS (Quality of Service) - Part 248Security Fundamentals49Port Security50DHCP Snooping51Dynamic ARP Inspection52LAN Architectures53WAN Architectures54Virtualization and Cloud - Part 154Virtualization (Containers) - Part 254Virtualization (VRF) - Part 355Wireless Fundamentals56Wireless Architectures57Wireless Security58Wireless Configuration59Introduction to Network Automation60JSON, XML, and YAML61REST APIs62Software Defined Networking63Ansible, Puppet, and Chef67CCNA Complete Cheatsheet
/DHCP - Dynamic Host Configuration Protocol
Topic 393 min read

DHCP - Dynamic Host Configuration Protocol

/
Tip: Select text to highlight or pin your reading position

39. DHCP (Dynamic Host Configuration Protocol)

THE PURPOSE OF DHCP

  • DHCP is used to allow HOSTS to automatically / dynamically learn various aspects of their NETWORK configuration; without MANUAL / STATIC configuration
  • It is an ESSENTIAL part of modern NETWORKS
    • When you connect a phone / laptop to WiFi, do you ask your NETWORK admin which IP ADDRESS, SUBNET MASK, DEFAULT GATEWAY, etc the phone / laptop should use ?
  • Typically used for CLIENT devices (workstations, phones, etc)
  • DEVICES (such as ROUTERS, SERVERS, etc) are usually MANUALLY configured
  • In small NETWORKS (such as Home NETWORKS), the ROUTER typically acts as the DHCP SERVER for HOSTS in the LAN
  • In LARGE NETWORKS, the DHCP SERVER is usually a Windows / Linux SERVER

BASIC FUNCTIONS OF DHCP

imageClick to enlarge

imageClick to enlarge

imageClick to enlarge

imageClick to enlarge

imageClick to enlarge

Note: ALL the IPs are the same because this is Jeremy’s Home ROUTER (it provides all these services)

Command ipconfig /release

imageClick to enlarge

imageClick to enlarge

Wireshark capture of the ipconfig /release mechanism

imageClick to enlarge

imageClick to enlarge


Command ipconfig /renew

imageClick to enlarge

Renewing Process has FOUR messages:

imageClick to enlarge

  1. DHCP DISCOVER
  • Are there any DHCP Servers in this NETWORK? I need an IP ADDRESS ?

imageClick to enlarge

NOTE the use of DHCP Reserved Ports 67 and 68

  1. DHCP OFFER:
  • How about THIS IP ADDRESS ?

imageClick to enlarge

  • The DHCP OFFER message can be either BROADCAST or UNICAST
  • NOTE OPTIONS at the bottom : Message Type, Server ID, Lease Time, Subnet, etc.
  1. DHCP REQUEST
  • I want to use the IP ADDRESS that was offered

imageClick to enlarge

  1. DHCP ACK
  • Okay! You may use THAT ADDRESS

imageClick to enlarge


DHCP RENEW PROCESS SUMMARY

imageClick to enlarge


DHCP RELAY

  • Some NETWORK engineers might choose to configure each ROUTER to act as the DHCP SERVER for its connected LANS
  • However, large enterprises often choose to use a CENTRALIZED DHCP SERVER
  • If the SERVER is centralized, it won’t receive the DHCP CLIENTS’ Broadcast DHCP messages
  • To FIX this, you can configure a ROUTER to act as a DHCP RELAY AGENT
  • The ROUTER will forward the clients’ Broadcast DHCP messages to the remote DHCP SERVER as a Unicast messages

imageClick to enlarge

imageClick to enlarge


CONFIGURING DHCP IN CISCO IOS

Commands for configuring DHCP SERVERS in Cisco IOS

imageClick to enlarge

Command show ip dhcp binding

imageClick to enlarge

imageClick to enlarge


DHCP RELAY AGENT CONFIGURATION IN IOS

imageClick to enlarge

RELAY AGENT MUST HAVE CONNECTIVITY WITH DHCP SERVER


DHCP CLIENT CONFIGURATION IN IOS

imageClick to enlarge


COMMANDS SUMMARY

imageClick to enlarge

PreviousDNS - Domain Name System
NextSNMP - Simple Network Management Protocol