dhcpcd-discuss

Configuration profiles handling by libdhcpcd

Langlois, Maxime

Mon May 27 20:38:11 2019

Hi Roy,

I'm experimenting with libdhcpcd to manage the configuration and get
update on interfaces status.

I noticed a weird behavior: when switching from static to dhcp on an
interface which is using a static fallbcak profile, the profile gets
dropped along with the static settings.

Let me clarify this with an example:


Initial settings file:

interface eth1
static ip_address=192.201.13.2/24
static routers=192.201.13.1
fallback static-eth1

profile static-eth1
static ip_address=192.168.3.31/24
static routers=192.168.3.1


Settings file after switching eth1 interface to DHCP using libdhcpcd:

interface eth1
fallback static-eth1
profile static-eth1


Conclusion is that anything that is static and linked to eth1 gets dropped. However I think the fallback profile should have been preserved.

Thanks
Maxime

**********************************************************************
DISCLAIMER:
Privileged and/or Confidential information may be contained in this message. If you are not the addressee of this message, you may not copy, use or deliver this message to anyone. In such event, you should destroy the message and kindly notify the sender by reply e-mail. It is understood that opinions or conclusions that do not relate to the official business of the company are neither given nor endorsed by the company. Thank You.

Follow-Ups:
Re: Configuration profiles handling by libdhcpcdRoy Marples
References:
static routers not exposed in hooksLanglois, Maxime
Re: static routers not exposed in hooksRoy Marples
Archive administrator: postmaster@marples.name