From nobody Sat Aug 5 22:16:05 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RJH3b27Qkz4TptD for ; Sat, 5 Aug 2023 22:16:11 +0000 (UTC) (envelope-from grahamperrin@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RJH3b1czKz3TKY for ; Sat, 5 Aug 2023 22:16:11 +0000 (UTC) (envelope-from grahamperrin@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691273771; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MwMYmJ8hSeEDBrsCVCAlNkTBLkf5tg859vbw/Trn2YY=; b=jVKLA8WMTkqCQ4kFufaQMGMAkmIj9FTSS7sicPgQN5ee/6coQkG6X/ZrhGMEmh42b6S49J D2IaajQi2SsoG4orb1v6ZbVa8ViHMvxFXwhfSwm18zJZO0IkxBp66L4Btyo4GgobEn+vQ9 ARNTh4RVMLkOYqFfEqfB+MBu+EUOovlQwD2xnN4WbFLtADmmK04GEIWFHuWYeL0HN4NVoO WZ2PLWQVX1o9nzmU0dnxzKjbFSw2PUUI3pLoXh2/BviJAtX+Oh0XDkPapz0YzbLEMM8J9o lq6GsXVKjUTGGtTl/Jr7SmekR0fOzBgo+TO4Dwa7bUQPC/s4nYr7aYbv1kz4qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691273771; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MwMYmJ8hSeEDBrsCVCAlNkTBLkf5tg859vbw/Trn2YY=; b=wsBpC/5tEiof72ak8b0le3ph3gIKpA7XkXfSn++9GZB/yC8tTFLZKs1JvQRdn7gbVdu3Em ISqXTeAPe3mkTL3lLAW1zHhKzuUeKO58+oAqOnb0IS6myCVf1+nk0ng2HfHLvOWH3lWIXz hJigWWkYHW+ZClBUzze4Bhbh6MZ71nzBQuFwsGs4enGz+9dbpzzMrJkFmqjQp8suLTHuck C3rXhAI29LY1vyfNd62PNSzx5SdiqrsyM7qMlC4qPWDs00vJ/0ZuJIelNMltjwsC8/2P6I EzHp8hBh+LPCnsEXqPV55SdHS9TgOOHDZqbgPv5kjNKYMS4GUSbx/aLkHBxSiA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691273771; a=rsa-sha256; cv=none; b=V0poOaVBHSPJT7acA00Thx3YmY2Qmdo5iosqYTNsoDyoy+0F89EJlcS4LcRwoy0HadTq1+ nEM9Fp0mbZMHoVK348bglDGmFlNYyHoyQjIcOc54tl13DtSYrXk1fv1F9LLj/dgkkejR6F H+/WLRC5m42dIu9evRL2cnXJJ3J/lkNAwnbi0q0Z4Dz5e1ubrZJ98oKoULbMVbu1bJv38k gvyWwy5Hi+iY1xPxy4OJaugcrmnmtL9Pp4+XaX6Yi4HhXkOzemgaxI8wyXFkOOW4PxX4bx TfcsyP/yf7P1OUKB4zk21fz20U245Hs66WPUCSyNloEp2JxtRPfXxPtMuclJnA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from [IPV6:2001:470:1f1c:a0::2] (tunnel642390-pt.tunnel.tserv1.lon2.ipv6.he.net [IPv6:2001:470:1f1c:a0::2]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: grahamperrin) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RJH3Z6Vgzz1dlm for ; Sat, 5 Aug 2023 22:16:10 +0000 (UTC) (envelope-from grahamperrin@freebsd.org) Message-ID: <753f3990-9903-3718-445c-49fc01f960a7@freebsd.org> Date: Sat, 5 Aug 2023 23:16:05 +0100 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 Content-Language: en-US To: freebsd-current@freebsd.org References: <62d300c8-2c3e-58fa-334e-23a17962279a@freebsd.org> From: Graham Perrin Subject: Re: Fwd: Unreliability with DHCP Organization: FreeBSD In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 05/08/2023 12:39, Oleksandr Kryvulia wrote: > 04.08.23 19:07, Graham Perrin пише: >> >> Can anyone from freebsd-net@ help? >> >> >> -------- Forwarded Message -------- >> Subject:     Unreliability with DHCP >> Date:     Sun, 30 Jul 2023 16:17:43 +0100 >> From:     Graham Perrin >> Organisation:     FreeBSD >> To:     FreeBSD CURRENT >> >> >> >> 1. Sleep (suspend) whilst connected to one network >> >> 2. connect to a network elsewhere >> >> 3. wake (resume). >> >> Result: >> >> /etc/resolv.conf frequently contains outdated information. In some >> (maybe all) such cases, the IPv4 inet address is outdated; and so on. >> >> Which /etc/rc.d/ file(s) should I attempt to fix? >> >> I imagine using the resume keyword, which is currently used by only >> one script: >> >> % rcorder -k resume /etc/rc.d/* >> /etc/rc.d/ntpd >> % >> >> >> I routinely run the command below to work around the bug (and observe >> the states of things) – run _after_ the bug bites. I'd prefer a fix, >> to prevent the bites. >> >> ls /var/run/resolvconf/interfaces/ ; route delete default ; ifconfig >> wlan0 down && ifconfig em0 down && sleep 5 ; ls >> /var/run/resolvconf/interfaces/ ; ifconfig em0 up && sleep 15 >> ; ls /var/run/resolvconf/interfaces/ ; cat /etc/resolv.conf ; ping -c >> 2 -4 freshports.org >> > > > As dirty workaround I have in my /etc/rc.resume > > service netif restart > service routing restart Thanks, I'll try when I'm next on campus. I do know that 'service routing restart' can be problematic. Please, see, for example, ; I had something similar a few minutes ago.