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

Troubleshoot problems on the DHCP server

· 52CE 我爱测

Find out how to troubleshoot problems on the DHCP server and collect data.

[!div class="nextstepaction"] <a href="https://vsa.services.microsoft.com/v1.0/?partnerId=7d74cf73-5217-4008-833f-87a1a278f2cb&flowId=DMC&initialQuery=31806271" target='_blank'>Try our Virtual Agent</a> - It can help you quickly identify and fix common DHCP issues.

This article discusses how to troubleshoot problems that occur on the DHCP server.

Troubleshooting checklist

Check the following settings:

  • The DHCP server service is started and running. To check this setting, run the net start command, and look for DHCP Server.

  • The DHCP server is authorized. See Windows DHCP Server Authorization in Domain Joined Scenario.

  • Verify that IP address leases are available in the DHCP server scope for the subnet the DHCP client is on. To verify availability, see the statistic for the appropriate scope in the DHCP server management console.

  • Check whether any BAD_ADDRESS listings can be found in Address Leases.

  • Check whether any devices on the network have static IP addresses that haven't been excluded from the DHCP scope.

  • Verify that the DHCP server binds to at least one IP address, and that this IP address is within the subnet of the scopes from which IP addresses must be leased out, unless using DHCP relay. To do this verification, run the Get-DhcpServerv4Binding or Get-DhcpServerv6Binding cmdlet. Server connection bindings are configured in the DHCP server management console under IPv4 / IPv6 Advanced Properties.

  • Verify that only the DHCP server is listening on UDP port 67 and 68 by running the netstat -anb command. No other process or other services, such as WDS or PXE, should occupy these ports.

  • Verify that the DHCP server IPsec exemption is added if you're dealing with an IPsec-deployed environment.

  • Verify that the relay agent IP address can be pinged from the DHCP server.

  • Enumerate and check configured DHCP policies and filters.

Data collection

DHCP Server log

The DHCP Server debug logs provide more information about the IP address lease assignment and the DNS dynamic updates that are done by the DHCP server. These logs by default are located in %windir%\System32\Dhcp. For more information, see Analyze DHCP Server Log Files.

Network trace

A correlating network trace may indicate what the DHCP server was doing at the time that the event was logged. To create such a trace by using the Windows Troubleshooting Tools (TSS), follow the instructions at DHCP troubleshooting guidance - Data collection.

See also

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 09/27/2023
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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