From owner-freebsd-net@freebsd.org Wed Sep 23 06:33:32 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 4B2BF3F020C for ; Wed, 23 Sep 2020 06:33:32 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 4Bx7fg18khz4Mh1 for ; Wed, 23 Sep 2020 06:33:31 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-lf1-f49.google.com with SMTP id b12so20759401lfp.9 for ; Tue, 22 Sep 2020 23:33:30 -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=gItnjvnzm3iodLW5nJbWIvxkfl/8UUjOzYx/IaglK1c=; b=iklWhgkrlNnBPN5h5k1LnUB9An9J6RGJBjjvHtm1W9CrggoUxqR8CLkjk7pAsq5V+V O3dxcrUD3sbHvNsEd/kivjdt4iY0y1g428Sa+hzrg3zsIv88JCvzG2iQhNnZOV9ONpJ9 U32WOpki8Md+AbJa4Ra6sjoijEX24MJdbUfC4HpiV/0hQtmxw19yhze49/w/BXffNxA1 +eKz77iP+fWYclwOhkl2cm0qfXdRbuQGXQkzDRd3h5//BzA9+vDfAu27h/AT/F3WkOSz bnhV/Gz4V75XBUJH++RpBCg+gpb5hruBr4pYZTmiTmJJ4OAp7sATRaEvFyEKfCbni2BH E7mw== X-Gm-Message-State: AOAM530FlYs7dQGOUJeTiPsJRFjIfeU56io8yBKIABgXhRgbAGo+SKMc wTC+2Aetyh2fTn9+URci2N/4xc5kPI1q+Q== X-Google-Smtp-Source: ABdhPJw2IFWoQkFju3iy1dglSITeRbfuhovGSw6LidQPY1mLgdWgJajWGkcO2liVSPge6qsa7O1lXA== X-Received: by 2002:ac2:4c19:: with SMTP id t25mr2745534lfq.375.1600842809178; Tue, 22 Sep 2020 23:33:29 -0700 (PDT) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com. [209.85.167.44]) by smtp.gmail.com with ESMTPSA id 71sm4345113lfb.73.2020.09.22.23.33.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Sep 2020 23:33:29 -0700 (PDT) Received: by mail-lf1-f44.google.com with SMTP id y2so20749612lfy.10 for ; Tue, 22 Sep 2020 23:33:28 -0700 (PDT) X-Received: by 2002:a19:c7c1:: with SMTP id x184mr2590243lff.77.1600842808831; Tue, 22 Sep 2020 23:33:28 -0700 (PDT) MIME-Version: 1.0 References: <3ef4aa1b-d8fa-e201-6db8-e4c1d1dac63e@grosbein.net> <93df435f-3544-5725-f0d6-3b85707870bf@grosbein.net> In-Reply-To: <93df435f-3544-5725-f0d6-3b85707870bf@grosbein.net> From: Gleb Popov Date: Wed, 23 Sep 2020 10:33:02 +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: 4Bx7fg18khz4Mh1 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.49 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [-3.18 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; 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.02)[-1.015]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.14)[-1.138]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[209.85.167.49:from]; NEURAL_HAM_MEDIUM(-1.02)[-1.025]; FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.167.49:from]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; 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: Wed, 23 Sep 2020 06:33:32 -0000 On Fri, Sep 18, 2020 at 9:05 PM Eugene Grosbein wrote: > 18.09.2020 20:05, Gleb Popov 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. > > Read dhclient.conf(5) manual page :-) > > Right, I forgot that dhclient has a config file too. Thanks for all tips, everything worked out like a charm.