RE: Terminating 'dhcpcd' From a Hook Script
David Hauck
Thu Jun 15 16:13:05 2017
Hi Roy,
On Thursday, June 15, 2017 9:01 AM, Roy Marples wrote:
> On 15/06/2017 16:46, David Hauck wrote:
>>> I have an open ticket for this kind of special configuration here:
>>> https://dev.marples.name/T116
>>>
>>> However, this still possible by taking advantage of Master Mode!
>>> In Master Mode, dhcpcd will control all interfaces and allow remote
>>> control for stopping/starting each interface. Just add the word
>>> master on a line by itself in the global section of dhcpcd.conf
>>
>> Hmmm, OK, thx. I'll have to investigate what "master mode" is exactly. We have a very specific
> usage/invocation of 'dhcpcd' in order to properly interface with our application. This involves interface-
> specific and protocol-specific invocations - typically the following 'dhcpcd -4|-6 <interface>'. As a result
> it isn't uncommon to have active invocations like the following:
>>
>> dhcpcd -4 eth0
>> dhcpcd -6 etho
>>
>> In my case I would only want to stop the former instance.
>
> That *may* work.
So in my case I would then need to invoke: 'dhcpcd -4 -x eth0'? Would this terminate (and not de-configure) the proper IPv4 invocation of 'dhcpcd' on eth0?
Thanks,
-David
> I've not extensively tested it per protocol.
>
>> Where would I find more information regarding the various behaviours/effects of master mode?
>
> dhcpcd(8) is a fine place.
> In a nutshell, master mode is when a single dhcpcd instance runs for all interfaces/protocols.
>
>> PS: It seems like your new site doesn't have up to date links for the various man pages (there are
> indications that these are being "worked on"). Should I be using the versions in the v6.11.5 archive for
> the most up to date versions?
>
> I lack the time to bring the latest man pages online to the site atm.
> But you should always use the man pages relevant to your version as the config does change over time.
>
> Roy
Archive administrator: postmaster@marples.name