[systemd-devel] networkd - DHCP timeout ?

Tom Gundersen teg at jklm.no
Wed Feb 11 02:54:02 PST 2015


On Wed, Feb 11, 2015 at 11:49 AM, Branko <brankob at s5tehnika.net> wrote:
> Unless I have overlooked something, there seems to be no way to tell dhcp
> client to fail and leave card unset after some timeout.
>
> We had power interruption, which left dhcp server unconcious and after
> rebooting my workstation I couldn't get it up, since it was waiting for dhcp
> client to get its response.
>
> One can set a timeout on unit, but i can't find anything similar for
> network.

You can't set a timeout for the dhcp client itself (we will keep
trying forever), but you can set a timeout (in current git) on the
wait-online service, so that the length of time your boot is blocked
is limited. Currently it is set to 120s (in git), but it can be
overridden manually.

HTH,

Tom


More information about the systemd-devel mailing list