DHCP Client API - PowerPoint PPT Presentation

About This Presentation
Title:

DHCP Client API

Description:

DHCP Client API Auto-Configuration with DHCP Enabling the DHCP Client Using Appconf.h Set APP_USE_NVRAM to 0 Set APP_IP_USE_DHCP to 1 Using NVRAM Set APP_USE_NVRAM to ... – PowerPoint PPT presentation

Number of Views:35
Avg rating:3.0/5.0
Slides: 6
Provided by: AlWil6
Category:
Tags: api | dhcp | client | dhcp

less

Transcript and Presenter's Notes

Title: DHCP Client API


1
DHCP Client API
2
Auto-Configuration with DHCP
DHCP Server
NETWORK
3
Enabling the DHCP Client
  • 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)

4
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()

5
DHCP API
  • DhcpNowBound()
  • DhcpLostLease()
  • Called when DHCP server acknowledges the client.
  • IP Parameters accessible from within this
    function
  • IP Address
  • Subnet Mask
  • Default Gateway
  • Called by lease renewal thread when Client loses
    IP address lease.
  • Used for graceful shutdown, however IP address
    cannot be re-used.
Write a Comment
User Comments (0)
About PowerShow.com