Re: Handling static ip address configuration using /etc/network/interface
Amit Uttamchandani
Tue Nov 04 17:45:29 2014
On Tue, Nov 04, 2014 at 09:01:17AM +0000, Roy Marples wrote:
> > Should dhcpcd respect the configuration in /etc/network/interfaces? Has
> > this been fixed in the newer releases?
>
> No and no.
> dhcpcd only accepts configuration via dhcpcd.conf or the commandline.
> It does not look at per distro configuration.
>
> It could be possible to get the init script to add the deny interfaces,
> or allow interfaces directive to the command line moving forwards.
> Hopefully someone more proficient than me with the Debian style
> networking can patch that.
>
OK, I will try to do this and if it is clean, I will send you the patch
for review.
> > 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.
>
> Thanks
>
> Roy
Thanks
Archive administrator: postmaster@marples.name