dhcpcd-discuss

Re: Handling static ip address configuration using /etc/network/interface

Roy Marples

Tue Nov 04 20:01:42 2014

On 04/11/2014 17:45, Amit Uttamchandani wrote:
> OK, I will try to do this and if it is clean, I will send you the patch
> for review.

I don't maintain the debian stuff anymore, best sent it upstream.

>>> What is the recommended way to ignore this interface when it is
>>> configured statically?
>>
>> Add this to /etc/dhcpcd.conf, right at the top
>> denyinterfaces eth0
> 
> Thanks. Would it make sense to have /etc/dhcpcd.d? In this way, we can
> create minor configuration files on the fly in there that will be
> included by dhcpcd. This is similar to /etc/sudoers.d or /etc/cron.d.

Yes, no, maybe :)

In hindsight, a directory would have been better - we have dhcpcd.duid
and dhcpcd.secret that live in /etc as well.

However, dhcpcd.conf is designed to be parsed top down. We could load
the files in a lexical order, but that would mess with dhcpcd-{gtk,qt}
editing the configuration sanely.

Roy

Follow-Ups:
Re: Handling static ip address configuration using /etc/network/interfaceAmit Uttamchandani
References:
Handling static ip address configuration using /etc/network/interfaceAmit Uttamchandani
Re: Handling static ip address configuration using /etc/network/interfaceRoy Marples
Re: Handling static ip address configuration using /etc/network/interfaceAmit Uttamchandani
Archive administrator: postmaster@marples.name