From owner-freebsd-net@freebsd.org Mon Aug 13 10:55:29 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B2CAC106E6AE for ; Mon, 13 Aug 2018 10:55:29 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3668C74337 for ; Mon, 13 Aug 2018 10:55:28 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13:0:0:0:5]) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w7DAtInC046033 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Aug 2018 12:55:19 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: yuri@rawbw.com Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w7DAt9nh041747 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 13 Aug 2018 17:55:09 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: When ethernet wire is unplugged, the interface keeps its IP address and the default route stays up To: Yuri , "freebsd-net@freebsd.org" References: <7c27e101-ba3c-3749-1a53-422aa9b78330@rawbw.com> From: Eugene Grosbein Message-ID: <75722280-4af9-d53d-d456-fedde8b1edf6@grosbein.net> Date: Mon, 13 Aug 2018 17:55:04 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <7c27e101-ba3c-3749-1a53-422aa9b78330@rawbw.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM,SPF_PASS autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -0.0 SPF_PASS SPF: sender matches SPF record * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Aug 2018 10:55:29 -0000 13.08.2018 6:15, Yuri wrote: > When ethernet is unplugged, the interface keeps its IP, and the default route stays, This is intentional. > so WiFi fails to become functional. > It is necessary to run 'ifconfig {iface} inet remove' before connecting to WiFi. > How is this supposed to function, because regular user shouldn't be required to run commands by hand? You are supposed to use lagg(4) for failover and configure IP address for lagg0 interface instead of wired one. > Why unplugging the wire doesn't bring the interface to its original state? Because it would break many other things.