[opensuse] how to renew a dhcp lease with wicked?
I was just doing some tests wrt the questions Bjoern asked, and I cannot figure out how to renew/refresh a dhcp lease with wicked? -- Per Jessen, Zürich (0.2°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/18/2018 08:44 AM, Per Jessen wrote:
I was just doing some tests wrt the questions Bjoern asked, and I cannot figure out how to renew/refresh a dhcp lease with wicked?
From the man page, it looks like your are stuck with:
ifreload - checks whether a configuration has changed, and applies accordingly. To automatically re-apply changed sections of a configuration for specified interfaces, use wicked ifreload. This command performs necessary ifdown/ifup operations and attempts to apply detected differences. For additional, see the uses cases below. # wicked ifreload eth0 # wicked ifreload all There are 4 potential ifreload use cases: 1. Configuration unchanged ifreload does not touch specified interfaces. 2. Configuration changed performs ifdown followed by ifup with the new configuration on the specified interfaces. 3. Configuration deleted performs ifdown --delete in order to remove the specified interfaces. 4. New configuration added performs regular ifup on specified interfaces. **note:** 1. above. Looks like you will have to make some change or the reload will be ignored. Even though wickedd-dhcp4 (or -dhcp6) is what requests and renews the connection, man wickedd shows there are no user options to release/renew manually. (note the name of the systemd wicked daemon that does the handoff "wickedd-nanny" -- no kidding, it looks like it has taken all the direct control away from the user and dumbed it down to the point you can't force a release/renew the same way you can with dhcpcd) Before your question, I hadn't looked into wicked to see what was doable. -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 19/12/2018 10.02, David C. Rankin wrote:
On 12/18/2018 08:44 AM, Per Jessen wrote:
I was just doing some tests wrt the questions Bjoern asked, and I cannot figure out how to renew/refresh a dhcp lease with wicked?
...
**note:** 1. above. Looks like you will have to make some change or the reload will be ignored.
Even though wickedd-dhcp4 (or -dhcp6) is what requests and renews the connection, man wickedd shows there are no user options to release/renew manually. (note the name of the systemd wicked daemon that does the handoff "wickedd-nanny" -- no kidding, it looks like it has taken all the direct control away from the user and dumbed it down to the point you can't force a release/renew the same way you can with dhcpcd) Before your question, I hadn't looked into wicked to see what was doable.
Then I would try "rcnetwork restart". -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar)
David C. Rankin wrote:
On 12/18/2018 08:44 AM, Per Jessen wrote:
I was just doing some tests wrt the questions Bjoern asked, and I cannot figure out how to renew/refresh a dhcp lease with wicked?
From the man page, it looks like your are stuck with:
ifreload - checks whether a configuration has changed, and applies accordingly. To automatically re-apply changed sections of a configuration for specified interfaces, use wicked ifreload. This command performs necessary ifdown/ifup operations and attempts to apply detected differences.
I might try that, but by coincidence, the testbox is on nfs root, it might not work too well :-)
Before your question, I hadn't looked into wicked to see what was doable.
Ditto - I haven't had reason to fiddle with dhcp for quite some time. -- Per Jessen, Zürich (3.5°C) http://www.cloudsuisse.com/ - your owncloud, hosted in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Carlos E. R.
-
David C. Rankin
-
Per Jessen