
About Lesson
Dynamic Host Configuration Protocol (DHCP)
Explain how DHCP operates.
- The Dynamic Host Configuration Protocol (DHCP) for IPv4 service automates the assignment of IPv4 addresses, subnet masks, gateways, and other IPv4 networking parameters.
- DHCP is considered dynamic addressing compared to static addressing. Static addressing is manually entering IP address information.
- When a host connects to the network, the DHCP server is contacted, and an address is requested. The DHCP server chooses an address from a configured range of addresses called a pool and assigns (leases) it to the host.
- Many networks use both DHCP and static addressing. DHCP is used for general purpose hosts, such as end user devices. Static addressing is used for network devices, such as gateway routers, switches, servers, and printers.
Note: DHCP for IPv6 (DHCPv6) provides similar services for IPv6 clients. However, DHCPv6 does not provide a default gateway address. This can only be obtained dynamically from the Router Advertisement message of the router.
DHCP Operation
The DHCP Process:
- When an IPv4, DHCP-configured device boots up or connects to the network, the client broadcasts a DHCP discover (DHCPDISCOVER) message to identify any available DHCP servers on the network.
- A DHCP server replies with a DHCP offer (DHCPOFFER) message, which offers a lease to the client. (If a client receives more than one offer due to multiple DHCP servers on the network, it must choose one.)
- The client sends a DHCP request (DHCPREQUEST) message that identifies the explicit server and lease offer that the client is accepting.
- The server then returns a DHCP acknowledgment (DHCPACK) message that acknowledges to the client that the lease has been finalized.
- If the offer is no longer valid, then the selected server responds with a DHCP negative acknowledgment (DHCPNAK) message and the process must begin with a new DHCPDISCOVER message.
Note: DHCPv6 has a set of messages that is similar to those for DHCPv4. The DHCPv6 messages are SOLICIT, ADVERTISE, INFORMATION REQUEST, and REPLY.
Other related topics
Topic Title | Topic Objective |
---|---|
Application, Presentation, and Session | Explain how the functions of the application layer, presentation layer, and session layer work together to provide network services to end user applications. |
Peer-to-Peer | Explain how end user applications operate in a peer-to-peer network. |
Web and Email Protocols | Explain how web and email protocols operate. |
IP Addressing Services | Explain how DNS and DHCP operate. |
File Sharing Services | Explain how file transfer protocols operate. |
Other useful information
- Full CCNA Course
- CCNA Certificate Information
- 200-301 CCNA Exam Questions and Solutions
- 200-301 CCNA Exam Topics
Join the conversation