Skip to content
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

Why received dhcp REQUEST before dhcp DISCOVER? #9

Open
bakdop opened this issue May 21, 2023 · 1 comment
Open

Why received dhcp REQUEST before dhcp DISCOVER? #9

bakdop opened this issue May 21, 2023 · 1 comment
Labels
good first issue Good for newcomers

Comments

@bakdop
Copy link

bakdop commented May 21, 2023

When I run dhcp_test, my dhcp server always receive two dhcp REQUEST packets before dhcp DISCOVER, dose it means that we shoud consider that case and do nothing before a valid dhcp DISCOVER? or there might be something going wrong in my code? It seems that I haven't edited anything related to that.

@EricLee543
Copy link
Member

The dhclient will attempt to reacquire the previously assigned IP within a certain time period. This is why it skips the DISCOVER phase. If you want to debug the DISCOVER phase, you can assign a different IP address than the one previously assigned, and dhclient will resend the DISCOVER packet. Ultimately, your goal is to ensure that the correct IP can be assigned. It is a feature of dhclient. Not a bug.

@EricLee543 EricLee543 reopened this May 21, 2023
@EricLee543 EricLee543 added the good first issue Good for newcomers label May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants