Description

Customer had an issue where some of the customers were not getting the ip address from the DHCP server . The issue was found on the DHCP server end , as we monitored the packet drops on the SRX and could see the discover message being sent from the client side , but not receiving packets from the server end.

Symptoms

DHCP not working , end users not getting the IP

Solution

To troubleshoot DHCP please collect and analyse bellow data

  • Monitor live packet drops on the SRX for the server and the client messages
  • Capture the DHCP packets on the SRX

https://www.juniper.net/documentation/us/en/software/junos/cli-reference/topics/ref/command/monitor-traffic.html


  • DHCP traceoptions :

set system services dhcp traceoptions file dhcp.log size 50m files 10

set system services dhcp traceoptions level all

set system services dhcp traceoptions flag all

 

set system processes dhcp-service traceoptions file dhcp-services.log size 50m files 10

set system processes dhcp-service traceoptions level all

set system processes dhcp-service traceoptions flag all

 

Please disable traceoptions once you are done as they are consuming system resources and should be used only for troubleshooting.

 

Modification History

2025-07-03 : Article Created