How to troubleshoot DHCP issues?
search cancel

How to troubleshoot DHCP issues?

book

Article ID: 373392

calendar_today

Updated On:

Products

VMware vSphere ESXi 8.0

Issue/Introduction

VMs are configured with DHCP for assigning dynamic ip addresses to Virtual machines that are connected to network.
Go to control panel - Network and Internet- network connections - right click and select IPV4 and click properties.

Environment

Questions to ask:

  • When did the problem start?
  • Was the DHCP server working previously, or has it never worked? If it worked previously, did anything change before the problem started.
  • 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?

Troubleshooting:

  • Ensure if the virtual machine is powered on and is connected to network.
  • Check if the VM is receiving DHCP ip or its displaying APIPA IP using ipconfig as shown in the below screenshot.

  • Validate if there is UDP port 67(for the server) and 68(for the client) connectivity successful between client VM and DHCP sever by the following command : telnet <ip-address> port number
  • If there are no connectivity issues on the above mentioned ports then check DORA process between the client and server.

How to validate DORA process?

  • Refer the below screenshot for one of the non-working scenarios, where only discover packet are sent but no response from DHCP server.

Resolution

Data path:

When DHCP server is a VM on a ESXI host

client vm vnic --> vm virtual switchport --> vm uplink ----physical network ---- DHCP uplink --> DHCP server virtual switchport --> DHCP server vnic - OS

When DHCP sever is a physical server

client vm vnic --> vm virtual switchport --> vm uplink ----physical network --- physical DHCP server

Few possible scenarios when the client does not receive DHCP IP are mentioned below:

  • Engage physical network team if only DHCP discover/request packets are sent out of the ESXi host where the client VM is residing and no response is received on the client VM.
  • Engage Broadcom support if the DHCP discover/request packets are not sent out of the ESXi host OR if the DHCP offer/acknowledgement packets are seen on the uplink but VM is unable to receive IP address.