-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DHCP options while the ESP is requesting a server #8223
Labels
waiting for feedback
Waiting on additional info. If it's not received, the issue may be closed.
Comments
DHCP client is configured there. Do you think you could propose a pull request on this repository ? |
@d-a-v I can try. |
Closed
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
waiting for feedback
Waiting on additional info. If it's not received, the issue may be closed.
Basic Infos
Platform
Settings in IDE
Problem Description
The ESP8266 is not sending the Client Identifier when it request a DHCP server.
Some routers-gateway-dhcp require this option to register the ESP's hostname into their DNS.
On devices with several network interfaces it prevents the DHCP to assign an new address per interface.
Can we amend the Client Identifier (option 61) to the DHCP query?
MCVE Sketch
// cf https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266mDNS/examples/mDNS_Web_Server/mDNS_Web_Server.ino
Debug Messages
VERSUS a right DHCP request:
As you can see, the default Client Identifier is:
OPTION: 61 ( 7) Client-identifier 01:{{macAddress}}
And the field should be optional:
https://datatracker.ietf.org/doc/html/rfc4361
The text was updated successfully, but these errors were encountered: