# No replies from DHCP requests

**URL:** <https://forums.freertos.org/t/no-replies-from-dhcp-requests/6742>\
**Category:** Kernel\
**Created:** [August 17, 2017, 8:38am UTC](https://forums.freertos.org/t/no-replies-from-dhcp-requests/6742 "2017-08-17T08:38:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [August 17, 2017, 8:38am UTC](https://forums.freertos.org/t/no-replies-from-dhcp-requests/6742/1 "2017-08-17T08:38:39Z")

</div>

**[stemora](https://sourceforge.net/u/stemora/)** wrote on [Thursday, August 17, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/9bbd2c42/#b932):

Hello there,  
I’m compiling FreeRTOS 9.0.0.0 + TCP 160919 for LPC1778.  
On the run of the board I send the DHSP request: sniffing with wireshark I see 3 DHCP requests and a number of ARP requests (?).  
No reply from the DHCP sever.

1003 68.228709 0.0.0.0 255.255.255.255 DHCP 309 DHCP Discover - Transaction ID 0x2ae6  
1022 81.701502 0.0.0.0 255.255.255.255 DHCP 309 DHCP Discover - Transaction ID 0x2ae7  
1029 91.951347 0.0.0.0 255.255.255.255 DHCP 309 DHCP Discover - Transaction ID 0x2ae8  
4979 122.497600 Metrohm\_10:15:11 Broadcast ARP 60 Gratuitous ARP for 0.0.0.0 (Request)  
8055 152.497153 Metrohm\_10:15:11 Broadcast ARP 60 Gratuitous ARP for 0.0.0.0 (Request)  
…

Frame 1003: 309 bytes on wire (2472 bits), 309 bytes captured (2472 bits) on interface 0  
Ethernet II, Src: Metrohm\_10:15:11 (00:12:13:10:15:11), Dst: Broadcast (ff:ff:ff:ff:ff:ff)  
Internet Protocol Version 4, Src: 0.0.0.0, Dst: 255.255.255.255  
User Datagram Protocol, Src Port: 68, Dst Port: 67  
Bootstrap Protocol (Discover)  
VSS-Monitoring ethernet trailer, Source Port: 12

Checking on the DHCP server we don’t see any request (?): possibile that the request is blocked by a switch ?  
If yes,why?  
My guess is that the package is not malformed … is it ?

Thanks

---

<div class="post-metadata">

**Author:** ![htibosch](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/htibosch/32/62_2.png) [@htibosch](https://forums.freertos.org/u/htibosch)\
**Post date:** [August 17, 2017, 3:30pm UTC](https://forums.freertos.org/t/no-replies-from-dhcp-requests/6742/2 "2017-08-17T15:30:57Z")

</div>

**[heinbali01](https://sourceforge.net/u/heinbali01/)** wrote on [Thursday, August 17, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/9bbd2c42/#282e):

Hi, I attached a simple DHCP conversation for comparison.

> possible that the request is blocked by a switch

Switches will recognise DHCP packets and they will let them through.

Have you defined `ipconfigUSE_DHCP_HOOK` in your project?  
If so, what does your implementation of `xApplicationDHCPHook()` look like?

What you can try is install a temporary DHCP-server on your laptop:

```
https://sourceforge.net/projects/dhcp-dns-server/files/Dual%20DHCP%20DNS%20Server/

```

and see if your devices will get an answer from this DHCP server.  
When that works, you are one step further.

Can you ping your DHCP server from your laptop?  
Or, more complicated to test, if you give a fixed IP-address to your device, can it ping to the DHCP server?

---

<div class="post-metadata">

**Author:** ![htibosch](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/htibosch/32/62_2.png) [@htibosch](https://forums.freertos.org/u/htibosch)\
**Post date:** [August 23, 2017, 4:57am UTC](https://forums.freertos.org/t/no-replies-from-dhcp-requests/6742/3 "2017-08-23T04:57:36Z")

</div>

**[heinbali01](https://sourceforge.net/u/heinbali01/)** wrote on [Wednesday, August 23, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/9bbd2c42/#b738):

Hi there, did you get any further with DHCP ?  
If not, can you attach a PCAP that shows the DHCP packets ?
