From owner-freebsd-net@freebsd.org Fri Sep 18 13:05:37 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4673C3E2F56 for ; Fri, 18 Sep 2020 13:05:37 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BtDbL5yMrz4Y87 for ; Fri, 18 Sep 2020 13:05:34 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-lf1-f45.google.com with SMTP id z17so6015099lfi.12 for ; Fri, 18 Sep 2020 06:05:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YMz8VE9h26BXN6uHJQ5uklg7LG1iATVntUh08qeVi08=; b=ksHHqeKBfxxGpvcRFiPTMfY9MMdfHeNqqgQ7EdxuD6CObMdaFQgmIoQNLbql0top5s 47ncHUHdWKd5fmJl7OBo9vYFVyO6S04dod78+AlnuKsAao9WNmyQroVLZ1uFJh5feSbt GoGpqIM3MN7tAOBIYlt5tQfde9D17BYhYtTLevusK+2gsvseS1LCijJqOC4Lj97x3i3R +PCiNRNSaJtMopjFFeHjg5kA96bJ9WxFmJgWYjkwyEJYQtCRPjo6SU8l+UrKWb8BSOIJ v62QAvbf/FAIpCeaaeKWz+AxzlVvi/omMajKJXsbb3N1m6e0o4oft8hnjE0hTk7/j/6c pNvQ== X-Gm-Message-State: AOAM532rOil/lAaCAbK9QqUUFxRsBIZ4y7MZnaKNhXPuADMOAtyKujs+ slbHW0Ho2jR10IK426o5c8aEkjymWXzjgQ== X-Google-Smtp-Source: ABdhPJyt2j4i+6blojTXNmZAqNlxY+xX+LWxWDpsbBjB/j76aaiFFLLKGGzPb71Ej4GnvCaPkx3XCg== X-Received: by 2002:a05:6512:1051:: with SMTP id c17mr12078924lfb.20.1600434332733; Fri, 18 Sep 2020 06:05:32 -0700 (PDT) Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com. [209.85.167.50]) by smtp.gmail.com with ESMTPSA id o8sm575014lfn.179.2020.09.18.06.05.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Sep 2020 06:05:32 -0700 (PDT) Received: by mail-lf1-f50.google.com with SMTP id b12so6030508lfp.9 for ; Fri, 18 Sep 2020 06:05:32 -0700 (PDT) X-Received: by 2002:a05:6512:2101:: with SMTP id q1mr12637682lfr.157.1600434332289; Fri, 18 Sep 2020 06:05:32 -0700 (PDT) MIME-Version: 1.0 References: <3ef4aa1b-d8fa-e201-6db8-e4c1d1dac63e@grosbein.net> In-Reply-To: <3ef4aa1b-d8fa-e201-6db8-e4c1d1dac63e@grosbein.net> From: Gleb Popov Date: Fri, 18 Sep 2020 17:05:06 +0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: ifconfig_*="DHCP" in absence of server To: Eugene Grosbein Cc: freebsd-net@freebsd.org X-Rspamd-Queue-Id: 4BtDbL5yMrz4Y87 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of 6yearold@gmail.com designates 209.85.167.45 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [-2.46 / 15.00]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; NEURAL_HAM_LONG(-1.03)[-1.029]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; DMARC_NA(0.00)[freebsd.org]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.40)[-0.403]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[209.85.167.45:from]; NEURAL_HAM_MEDIUM(-1.03)[-1.029]; FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.167.45:from]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[arrowd@freebsd.org,6yearold@gmail.com]; MAILMAN_DEST(0.00)[freebsd-net] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Sep 2020 13:05:37 -0000 On Fri, Sep 18, 2020 at 7:31 AM Eugene Grosbein wrote: > > Look for "background_dhclient" in the rc.conf manual page, it merely adds > "-b" > to dhclient flags. > > Thanks, this indeed improved things for the "netif" part of the problem. But it still waited 30s for "default route interface". I found the ${defaultroute_delay} variable in /etc/rc.d/defaultroute, which isn't documented, and set it to "1s" in /etc/rc.conf. This finally did the trick. However, the networking on FreeBSD machines started to come up even longer. I suspect this is because dhclient gradually increases the interval between DHCP requests if it doesn't get an answer. I haven't found a way to circumvent this. Any suggestions are welcome.