From owner-freebsd-net@freebsd.org Thu Sep 17 15:07:59 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 6F94E3E32FA for ; Thu, 17 Sep 2020 15:07:59 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (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 4BsgM24zjQz46C3 for ; Thu, 17 Sep 2020 15:07:58 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-lj1-f177.google.com with SMTP id u4so2325844ljd.10 for ; Thu, 17 Sep 2020 08:07:58 -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:from:date:message-id:subject:to; bh=nkd7T1TKD8rRoJ8a4/yWPH4iF8KOkaJYjt6Oai9tunA=; b=pjTVlgZxnMT92vAnFEatzWIuiGZlVWGQNQvWgyiSceR/EjqEJqmb/7BDXtOC30Pi3h EumG7aL+MPyvb8A9d0md8FgXihNANXjHgvX2fz+DTeyinznm4czjq8GH4DolMjH6QhSp +7gjtct9CwXrNQm4BQBVIwLtBbigHF62UMUEt0Uu3uGSM8+Nx2/T+ppGgG2pkwHsTXEW WEGa9xjwTdtiQXi9jnv0YQXMHjY895Ga7BU59dWujKIgMVn8BUAgIkBrSGkoEB0gCvxT t/EGpHNiDLaUZpqrHePC3EqxUI7lMpeuwbVeMDKj6fyuAdVUiBQHNHK1sFHxW5oOCBRk d7Cw== X-Gm-Message-State: AOAM531z1p86S+Frw+zYPF66/TkeC4HKnR3URvE1oDHC+V+Enp4umvNu aA9KaBIVc477hHN8Jq1tnQpMKTsqwts5Iw== X-Google-Smtp-Source: ABdhPJzEZklYVB2BdhBGtwoowKtTrqk/kry2yv3n74dOiPj+AP4EeH2T6Z/20vWbVD7wDwCYdtNe+g== X-Received: by 2002:a2e:99c7:: with SMTP id l7mr10265035ljj.425.1600355276620; Thu, 17 Sep 2020 08:07:56 -0700 (PDT) Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com. [209.85.208.169]) by smtp.gmail.com with ESMTPSA id n18sm1325921lfe.7.2020.09.17.08.07.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Sep 2020 08:07:56 -0700 (PDT) Received: by mail-lj1-f169.google.com with SMTP id u21so2337720ljl.6 for ; Thu, 17 Sep 2020 08:07:56 -0700 (PDT) X-Received: by 2002:a2e:3e17:: with SMTP id l23mr9426465lja.315.1600355276049; Thu, 17 Sep 2020 08:07:56 -0700 (PDT) MIME-Version: 1.0 From: Gleb Popov Date: Thu, 17 Sep 2020 19:07:29 +0400 X-Gmail-Original-Message-ID: Message-ID: Subject: ifconfig_*="DHCP" in absence of server To: freebsd-net@freebsd.org X-Rspamd-Queue-Id: 4BsgM24zjQz46C3 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.208.177 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [-1.59 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.88)[-0.883]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[freebsd.org]; NEURAL_SPAM_SHORT(0.05)[0.046]; RCVD_IN_DNSWL_NONE(0.00)[209.85.208.177:from]; NEURAL_HAM_MEDIUM(-0.75)[-0.749]; FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.208.177: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: Thu, 17 Sep 2020 15:07:59 -0000 At $WORK I'm running a bunch of similar FreeBSD machines, all of them have ifconfig_DEFAULT="DHCP" in their /etc/rc.conf The DHCP server runs on some old Cisco router. At the start of the working day the power switch gets turned on and both the router and FreeBSD machines start simultaneously. FreeBSD boots faster than Cisco, but then hangs on "netif" rc script trying to acquire an IP from the router. It waits for more than 30 seconds before giving up and proceeding, and even after that the "routing" script blocks for another 30 second with "waiting for default route". This delays the time needed to reach the X graphics stage for too long. Funny enough, "SYNCDHCP" option shortens this time, but it is still visible. Is there any way to make DHCP acquisition asynchronous, or something else to speed things up? Thanks in advance.