-
Notifications
You must be signed in to change notification settings - Fork 129
dhcpcd expires lease when config file changes #482
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
Comments
Huh? dhcpcd will only release on rebind when NAKed by the server. |
dhcpcd --rebind eth0 After sending rebind command, we are getting DEL_ADDR followed by NEW_ADDR from netlink. |
How do you know dhcpcd is doing that? Can you post a debug log of dhcpcd showing what it does during a rebind please? |
I can see above DEL_ADDR followed by NEW_ADDR in ip monitor log after doing 'dhcpcd --rebind eth0' and looks like config is reloading but not sure what internally dhcpcd does. Please find the below dhcpcd log cat dhcpcd.log |
From your log: So now the question - why are you changing the config file? |
We do update user/admin configuration like hostname, domain name, and FQDN configurations in the dhcpcd.conf file, and to update the DHCP server for these updates, we triggering 'dhcpcd rebind' as this will reload the configuration and send update to dhcp server. |
Any option to trigger rebind without loosing ip address? |
The only option right now is to not change the config file. |
Currently, we do need to update in the conf file for manual configuration hostname/domain name and send updates to dhcp server, so rebind only the option. If not we will end up with not updating the current configuration to dhcp server and device will not have proper sync with server its connected. |
Why can't you set the hostname using the |
Hi Team,
We wanted to update the configuration details to the DHCP server like, hostname and domain name during the bootup with dhcpcd rebind. So Is there any way to trigger dhcpcd rebind without releasing existing IP to just update the details to DHCP server.?
curerently rebind will trigger DEL_ADDR followed by NEW_ADDR event.
Regards,
Sateesh R Patil
The text was updated successfully, but these errors were encountered: