dhcpcd-discuss

Re: ethernet ifdown not working on linux

Roy Marples

Sun Jan 26 09:17:20 2020

Hi Jason

On 25/01/2020 21:46, Jason A. Donenfeld wrote:
Since a few versions back, I've noticed that dhcpcd no longer sets the
interface down when an ethernet cable is detached. Did something in
that code change?

Until very recently, dhcpcd has never taken the interface down for any reason so something else must have been doing that for you.

In the master branch, dhcpcd will only take the interface down on carrier loss if anonymous is enabled so dhcpcd can change the mac address. It will then be brought up again and we await for carrier once more.

Roy

References:
ethernet ifdown not working on linuxJason A. Donenfeld
Archive administrator: postmaster@marples.name