50 likes | 206 Views
This document provides an overview of the DHCP (Dynamic Host Configuration Protocol) client lifecycle, detailing the stages of discovery, offering, requesting, and acknowledging IP parameters from a DHCP server. It discusses how to configure DHCP settings, including enabling or disabling DHCP through NVRAM or default parameters. Additionally, it outlines how the DHCP client configures the TCP/IP protocol stack, renews leases, and updates the DNS server list. Essential API functions such as DhcpNowBound and lease management are also examined.
E N D
1 Discover 2 Offer 3 4 Request Acknowledge Auto-Configuration with DHCP DHCP Server NETWORK
Using Appconf.h Set APP_USE_NVRAM to 0 Set APP_IP_USE_DHCP to 1 Using NVRAM Set APP_USE_NVRAM to 0 Use the useDHCP datamember Enable or disable DHCP through the defaultParameters record defaultParams) or NVRAM (nvParams) Enabling the DHCP Client
After Enabling, the Client… • Configures the TCP/IP protocol stack with the correct IP address, subnet mask, and default gateway • Starts a background task that renews the lease whenever it is about to expire • Loads any DNS server acquired through DHCP into the list of known DNS servers • Calls DhcpNowBound()
DhcpNowBound() DhcpLostLease() Called when DHCP server acknowledges the client. IP Parameters accessible from within this function: IP Address Subnet Mask Default Gateway DHCP API • Called by lease renewal thread when Client loses IP address lease. • Used for “graceful” shutdown, however IP address cannot be re-used.