Skip to content

DHCP Renew using 0.0.0.0 as destination incorrectly #4499

Closed
@vito45h

Description

@vito45h

I am seeing that my ESP32 DHCP renewal is being sent to 0.0.0.0, below is a wireshark.
My DHCP server is Windows Server 2019.

Screenshot 2020-11-06 09 24 32

In the wireshark I see the renewal starting at 30 minutes (1800 seconds, time shown is duration between packets), but it is sent to 0.0.0.0 and therefore isn't making it to the DHCP server, then the retries happen until finally there is a request sent to 255.255.255.255, which gets an immediate ACK and renewal timer goes another 30 minutes and process repeats.

In the DHCP ACK I see the DHCP Server Identifier Option 54 is set correctly to 192.168.15.254.

I am using VS code and PlatformIO with an platformio.ini as follows:
[env:wifi]
platform = espressif32@2.0.0
;platform = espressif32@1.9.0
board = esp32dev
framework = arduino
lib_deps =
ArduinoJson
Time

Is there a way to review the dhcp.c code file that is being used here, and perhaps point me in the direction of a guide to recompile it(I'm thinking it's deep in the LWIP library), when I get it using the server IP?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions