大网数据广告活动
Windows Server 管理

Troubleshooting guide for Dynamic Host Configuration Protocol (DHCP)

· 52CE 我爱测

This article introduces a troubleshooting guide for DHCP issues.

For any device (such as a computer or phone) to be able to operate in a network, it must be assigned an IP address. You can assign an IP address manually or automatically. The automatic assignment is handled by the DHCP service (Microsoft or third-party server).

In this article, we will discuss general troubleshooting steps for the Microsoft IPv4 DHCP client and server.

More information

The procedure for IPv4 address assignment usually involves three main components:

  • A DHCP client device that has to obtain an IP address

  • A DHCP service that provides IP addresses to the client based on specific settings

  • A DHCP relay agent /IP Helper to send DHCP broadcast requests to a different network segment

A DHCP client-to-server communication consists of three kinds of interaction between the two peers:

  • Broadcast-based DORA (Discover, Offer, Request, Acknowledgement). This process consists of the following steps:

    • The DHCP client sends a DHCP Discover broadcast request to all available DHCP servers within range.

    • A DHCP Offer broadcast response is received from the DHCP server, offering an available IP address lease.

    • The DHCP client broadcast Request asks for the offered IP address lease and the DHCP broadcast Acknowledgement at the end.

    • If the DHCP client and server are located in different logical network segments, a DHCP relay agent acts a forwarder, sending the DHCP broadcast packets back and forth between peers.

  • Unicast DHCP Renew requests: These are sent directly to the DHCP server from the DHCP client to renew the IP address assignment after 50 percent of the IP address lease time.

  • Rebind DHCP broadcast requests: These are made to any DHCP server within range of the client. These are sent after 87.5 percent of the IP address lease duration because this indicates that the directed unicast request didn’t work. As for the DORA process, this process involves a DHCP relay agent communication.

If a Microsoft DHCP client does not receive a valid DHCP IPv4 address, the client is likely configured to use an APIPA address. For more information, see the following Knowledge Base article: 220874 How to use automatic TCP/IP addressing without a DHCP server

All communication is done on UDP ports 67 and 68. For more information, see the following Knowledge Base article: 169289 DHCP (Dynamic Host Configuration Protocol) Basics.

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 5/26/2020
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。