R: I: R: Persistent static IP, via CLI
Igor Pellegrini
Sat Dec 19 17:07:35 2020
Da: Roy Marples <roy@xxxxxxxxxxxx>
Inviato: sabato 19 dicembre 2020 17:47
A: Igor Pellegrini <kairos_@xxxxxxx>; dhcpcd-discuss@xxxxxxxxxxxx <dhcpcd-discuss@xxxxxxxxxxxx>
Oggetto: Re: I: R: Persistent static IP, via CLI
On 19/12/2020 16:06, Igor Pellegrini wrote:
>> Ooh, so the config is retained after reboot, but is not being written in the conf file.
>
> No it literally means when dhcpcd exit [..]
># If persisent is not given you will not see the ip address you had earlier [..]
>In call cases, the lease file where all this was obtained from is preserved.
Oh, now I get it!
>> I have issues in modifying/appending on the conf file with few additional options, rather than replacing it; because of not knowing if there's some incompatible previous instruction that would need to be removed. I just hoped dhcpcd offered an easy way to edit the file programmatically.
>
> libdhcpcd can be used by C (dhcpcd-gtk) and C++ (dhcpcd-qt) quite happily.
> There is a Raspbian project which uses libdhcpcd as well for their own front end fork.
Yes, I've seen it few days ago when first time I discovered about dhcpcd, but didn't spend too much time on that codebase.
I might refresh some ANSI C after 20 years and see how I can play with the lib =)
Tnx again
Archive administrator: postmaster@marples.name