Guidance for troubleshooting DHCP - Windows Server (2024)

  • Article

Try our Virtual Agent - It can help you quickly identify and fix common DHCP issues.

Devices must be assigned an IP address to be able to operate in a network. You can assign an IP address manually or automatically. The automatic assignment is handled by the Dynamic Host Configuration Protocol (DHCP) service (Microsoft or third-party server).

DHCP is a standard protocol that's defined by RFC 1541 (which is superseded by RFC 2131). DHCP enables a server to dynamically distribute IP addressing and configuration information to clients. Usually, the DHCP server provides at least the following basic information to the client:

  • IP address
  • Subnet mask
  • Default gateway
  • Other information, such as Domain Name Service (DNS) server addresses and Windows Internet Name Service (WINS) server addresses. The system administrator configures the DHCP server by using the options that are parsed out to the client.

For more information, see DHCP Basics.

Troubleshooting checklist

Before you begin to troubleshoot, check the following items. These items can help you find the root cause of the problem.

  • When did the problem start?
  • Are there any error messages?
  • Was the DHCP server working previously, or has it never worked? If it worked previously, did anything change before the problem started. For example, was an update installed? Was a change made to the infrastructure?
  • Is the problem persistent or intermittent? If it is intermittent, when did it last occur?
  • Are address lease failures occurring for all clients or for only specific clients, such as a single-scope subnet?
  • Are there any clients on the same network subnet as the DHCP server?
  • If clients reside on the same network subnet, can they obtain IP addresses?
  • If clients are not on the same network subnet, are the routers or VLAN switches correctly configured to have DHCP relay agents (also known as IP Helpers)?
  • Is the DHCP server standalone or is it configured for high availability, such as split-scope or DHCP Failover?
  • Check the intermediate devices for features such as VRRP/HSRP, Dynamic ARP Inspection, or DHCP snooping that are known to cause problems.

Troubleshoot DHCP servers

For DHCP servers, check the following devices and 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 that the DHCP client is on. To do this, see the statistic for the appropriate scope in the DHCP server management console.
  • Check whether any BAD_ADDRESS listings can be found in the Address Leases section.
  • Check whether any devices on the network have static IP addresses that have not been excluded from the DHCP scope.
  • Verify that the IP address to which DHCP server is bound is within the subnet of the scopes from which IP addresses must be leased out. This is in case no relay agent is available. To do this, run the Get-DhcpServerv4Binding or Get-DhcpServerv6Binding cmdlet.
  • Verify that only the DHCP server is listening on UDP port 67 and 68. No other process or other services (such as WDS or PXE) should occupy these ports. To do this, run the netstat -anb command.
  • If you are dealing with an IPsec-deployed environment, verify that the DHCP server IPsec exemption is added.
  • Verify that the relay agent IP address can be pinged from the DHCP server.
  • Enumerate and check configured DHCP policies and filters.

Troubleshoot DHCP clients

For DHCP clients, check the following devices and settings:

  • Cables are connected and working.
  • MAC filtering is enabled on the switches to which the client is connected.
  • The network adapter is enabled.
  • The correct network adapter driver is installed and updated.
  • The DHCP Client service is started and running. To check this, run the net start command, and look for DHCP Client.
  • There is no firewall blocking ports 67 and 68 UDP on the client computer.

Using network trace to troubleshoot DHCP

Once you've confirmed the settings on both the DHCP client and server, you can use Wireshark to check whether the DHCP DORA process has completed successfully or if any packet drops are preventing DHCP clients from obtaining an IP address from the server.

Steps to collect a network trace

To troubleshoot DHCP issues using network traces, follow these steps:

  1. Install Wireshark on both the affected DHCP client and the DHCP server.

  2. Run Wireshark as administrator on both the client and server.

  3. Choose the network interface used for DHCP on both devices by double-clicking them in Wireshark.

  4. Start packet capture with Wireshark on both the client and server.

  5. Reproduce the issue. Trigger the DHCP issue (for example, run ipconfig /renew on the client). Wait for the failure scenario to occur.

  6. Stop the packet capture on both devices using the red button in Wireshark.

    Guidance for troubleshooting DHCP - Windows Server (1)

  7. Save the captured packets to a specified location by selecting File > Save As.

  8. Apply a DHCP filter to view DHCP transactions:

    • On the client capture, apply a display filter for "dhcp".

    • On the server capture, use the filter "dhcp.id == <Transaction ID>" to track the specific client transaction. You can get the transaction ID from the client-side capture and apply it in the filter on the server-side capture.

      Guidance for troubleshooting DHCP - Windows Server (2)

  9. Analyze DHCP transactions:

    • Check the client-side capture for all four DHCP packets (DISCOVER, OFFER, REQUEST, ACK). If all are present, the DORA process is likely successful.
    • If any packets are missing (for example, only DISCOVER packets are visible), it indicates a potential drop.
  10. Identify network drops. Look for these indicators of network drops:

    • Client capture shows DISCOVER packets, but server capture does not.
    • Client capture shows DISCOVER packets and server shows OFFER sent, but no OFFER seen on client.
    • Client capture shows DISCOVER, OFFER, and REQUEST, but server only shows DISCOVER and OFFER.
    • Client capture shows DISCOVER, OFFER, and REQUEST, but server shows all four packets completed (DISCOVER, OFFER, REQUEST, ACK) with no ACK seen on client.
  11. After drops are confirmed, involve the network team to investigate and resolve the drop issue.

These steps ensure thorough troubleshooting using Wireshark to pinpoint where DHCP communication breaks down, facilitating quicker resolution of DHCP configuration or network issues.

Third-party information disclaimer

The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these products.

Data collection

Before contacting Microsoft support, you can gather information about your issue.

Prerequisites

  1. TSS must be run by accounts with administrator privileges on the local system, and EULA must be accepted (once EULA is accepted, TSS won't prompt again).
  2. We recommend the local machine RemoteSigned PowerShell execution policy.

Note

If the current PowerShell execution policy doesn't allow running TSS, take the following actions:

  • Set the RemoteSigned execution policy for the process level by running the cmdlet PS C:\> Set-ExecutionPolicy -scope Process -ExecutionPolicy RemoteSigned.
  • To verify if the change takes effect, run the cmdlet PS C:\> Get-ExecutionPolicy -List.
  • Because the process level permissions only apply to the current PowerShell session, once the given PowerShell window in which TSS runs is closed, the assigned permission for the process level will also go back to the previously configured state.

Gather key information before contacting Microsoft support

  1. Download TSS on all nodes and unzip it in the C:\tss folder.

  2. Open the C:\tss folder from an elevated PowerShell command prompt.

  3. Start the traces on the client and the server by using the following cmdlets:

    • Client:

      TSS.ps1 -Scenario NET_DHCPcli
    • Server:

      TSS.ps1 -Scenario NET_DHCPsrv
  4. Accept the EULA if the traces are run for the first time on the server or the client.

  5. Allow recording (PSR or video).

  6. Reproduce the issue before entering Y.

    Note

    If you collect logs on both the client and the server, wait for this message on both nodes before reproducing the issue.

  7. Enter Y to finish the log collection after the issue is reproduced.

The traces will be stored in a zip file in the C:\MS_DATA folder, which can be uploaded to the workspace for analysis.

Reference

  • Troubleshooting guide for DHCP
  • Use automatic TCP/IP addressing without a DHCP server

Event logs

Check the System and DHCP Server service event logs (Applications and Services Logs > Microsoft > Windows > DHCP-Server) for reported issues that are related to the observed problem.

Depending on the kind of issue, an event is logged to one of the following event channels:

  • DHCP Server Operational Events
  • DHCP Server Administrative Events
  • DHCP Server System Events
  • DHCP Server Filter Notification Events
  • DHCP Server Audit Events

DHCP Server log

The DHCP Server service debug logs provide more information about the IP address lease assignment and the DNS dynamic updates that are done by the DHCP server. By default, these logs are located in %windir%\System32\Dhcp.

For more information, see Analyze DHCP Server Log Files.

Guidance for troubleshooting DHCP - Windows Server (2024)

FAQs

How would you troubleshoot DHCP server problems? ›

Using network trace to troubleshoot DHCP
  1. Check the client-side capture for all four DHCP packets (DISCOVER, OFFER, REQUEST, ACK). If all are present, the DORA process is likely successful.
  2. If any packets are missing (for example, only DISCOVER packets are visible), it indicates a potential drop.
Aug 9, 2024

How to check DHCP logs in Windows server? ›

To make sure the required logs are enabled, open Event Viewer ( eventvwr ) and check the logs under Applications and Services Logs > Microsoft > Windows > DHCP-Server. To enable a log, right-click on it and click Enable Log.

How to check DHCP service status in Windows? ›

To do this, you can use the Services console or the PowerShell command. To open the Services console, press Windows + R, type services. msc, and hit Enter. Then, look for the DHCP Server service and see if its status is Running.

What would cause DHCP to fail? ›

DHCP may fail to configure the client properly, either because DHCP could not communicate with a server, or because, although configuration responses were received, they were incorrect. Problems can also occur later in the life of a DHCP lease if the client cannot renew its IP addresses.

How do I resolve a DHCP conflict? ›

Turn off the DHCP client computer in conflict with the network device that has the static IP address. On the DHCP server, exclude the static IP address from the scope of the DHCP IP address range. Restart the DHCP client computer.

How to clear a bad address in DHCP? ›

To release the "bad addresses", log into your DHCP server, find the DHCP subnet in question, select all of the "BAD_ADDRESS" entries and delete them. The access-points should immediately reacquire an IP address and rejoin the controller.

How to test if your DHCP server is working? ›

The first step is to check if your DHCP server is running and listening on the appropriate network interface and port. You can use the netstat command on Linux or Windows to display the active connections and listening sockets on your system. Look for the UDP port 67, which is the default port for DHCP servers.

How can you monitor DHCP activity with Windows Server? ›

To monitor DHCP activity on Windows Server (Manager), just go to the DHCP Management Console. Right-click on your server, select "Enable DHCP Audit Logging." Afterwards, review the DHCP Server events in Event Viewer under "Applications and Services Logs" --> "Microsoft" --> "Windows" for pertinent information.

What is the command to check the DHCP server? ›

Open Command Prompt. Type netsh. At the netsh> command prompt, type dhcp. At the netsh dhcp> command prompt, type show server.

How to reboot a DHCP server? ›

To restart the DHCP service:
  1. Click Start, and then click Run.
  2. Type cmd, and then press ENTER.
  3. Type net start dhcpserver , and then press ENTER.
Dec 26, 2023

How to refresh a DHCP server? ›

Click Start->Run, type cmd and press Enter. Type ipconfig /release at the prompt window, press Enter, it will release the current IP configuration. Type ipconfig /renew at the prompt window, press Enter, wait for a while, the DHCP server will assign a new IP address for your computer.

How do I make sure DHCP is enabled? ›

To enable DHCP or change other TCP/IP settings
  1. Select Start , then select Settings > Network & Internet .
  2. Do one of the following: For a Wi-Fi network, select Wi-Fi > Manage known networks. ...
  3. Under IP assignment, select Edit.
  4. Under Edit IP settings, select Automatic (DHCP) or Manual. ...
  5. When you're done, select Save.

How would you troubleshoot a DHCP issue? ›

Check the following settings:
  1. The DHCP server service is started and running. ...
  2. The DHCP server is authorized. ...
  3. Verify that IP address leases are available in the DHCP server scope for the subnet the DHCP client is on. ...
  4. Check whether any BAD_ADDRESS listings can be found in Address Leases.
Sep 28, 2023

What causes bad address in DHCP server? ›

Bad ip address only happens when using a Microsoft DHCP server. The issue is that when an ap no longer can communicate with the controller, it will reboot, then the dhcp server will provide the same ip address but the ap responds asking for a new one. This makes the MS dhcp server mark the dhcp ip as bad.

What was the source of your DHCP error? ›

A DHCP error can be triggered by two things. The first reason can lie within the configuration on your computer or device that allows a DHCP server to assign it an IP. The second reason is the configuration of the DHCP server itself.

What program should you run to troubleshoot his DHCP problem from the client side? ›

What program should you run to troubleshoot his DHCP problem from the client side? You should run ipconfig, or more specifically ipconfig /release and then ipconfig /renew to get a new IP address if a DHCP server is available for Steven's Windows system. This typically resolves most DHCP client-side problems.

How do I fix failed to obtain an IP address from a DHCP server? ›

To work around this problem, do one of the following methods:
  1. Don't use IP addressing schemes that overlap.
  2. Run the following commands after you move the client to a new segment: Console Copy. Ipconfig /Release Ipconfig /Renew.
Dec 26, 2023

How to fix can't reach the DHCP server? ›

Fix: Unable to Contact your DHCP Server Error – 3 Useful Methods
  1. Solution 1: Update or Roll Back Your Network Driver.
  2. Solution 2: Run a Command in Command Prompt.
  3. Solution 3: Restart/Start Your DHCP Client Service.
  4. Bottom Line.
Jul 29, 2024

What is a result when the DHCP servers are not? ›

If DHCP servers are not operational then network devices work have IP addresses and wont be able to communicate unless they are configured with a static IP address.

Top Articles
I’m constantly counting my steps. Is it OCD?
Can You Retire On 300k? Is 300k Enough?
Katie Pavlich Bikini Photos
Gamevault Agent
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Free Atm For Emerald Card Near Me
Craigslist Mexico Cancun
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Doby's Funeral Home Obituaries
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Select Truck Greensboro
Things To Do In Atlanta Tomorrow Night
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Craigslist In Flagstaff
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Geometry Review Quiz 5 Answer Key
Walgreens Alma School And Dynamite
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Dmv In Anoka
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Pixel Combat Unblocked
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Rogold Extension
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Weekly Math Review Q4 3
Facebook Marketplace Marrero La
Nobodyhome.tv Reddit
Topos De Bolos Engraçados
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hampton In And Suites Near Me
Stoughton Commuter Rail Schedule
Bedbathandbeyond Flemington Nj
Free Carnival-themed Google Slides & PowerPoint templates
Otter Bustr
Selly Medaline
Latest Posts
Article information

Author: Carmelo Roob

Last Updated:

Views: 6655

Rating: 4.4 / 5 (45 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Carmelo Roob

Birthday: 1995-01-09

Address: Apt. 915 481 Sipes Cliff, New Gonzalobury, CO 80176

Phone: +6773780339780

Job: Sales Executive

Hobby: Gaming, Jogging, Rugby, Video gaming, Handball, Ice skating, Web surfing

Introduction: My name is Carmelo Roob, I am a modern, handsome, delightful, comfortable, attractive, vast, good person who loves writing and wants to share my knowledge and understanding with you.