dhcpcd-discuss

Re: Configure local link at same time as DHCP

Roy Marples

Fri Jul 17 16:11:51 2020

Hi

On 17/07/2020 14:29, Davesh Patel wrote:
Is it possible to configure dhcpcd to do local link addressing in parallel to DHCP?

 At the moment, dhcpcd sends DHCP discover and waits for that to timeout before using the local link IP.

But what I'm trying to achieve is for dhcpcd to start to configure local link address by sending ARP probe, etc (i.e. not wait for DISCOVER timeout) and, at the same time, send a DHCP discover to try to obtain an IP from a DHCP server. If a DHCP discover was not available, then it will stick with the IPv4LL; otherwise, the DHCP IP would 'overwrite' the IPv4LL IP.

Newer dhcpcd versions do this.
https://roy.marples.name/cgit/dhcpcd.git/tree/src/dhcp.c#n1872

Basically either the fallback profile or ipv4ll starts after the reboot timeout from initial discover being sent. The default reboot timeout is 5 seconds.

Roy

Follow-Ups:
Re: Configure local link at same time as DHCPDavesh Patel
References:
Configure local link at same time as DHCPDavesh Patel
Archive administrator: postmaster@marples.name