From owner-freebsd-current@freebsd.org Thu May 30 15:31:48 2019 Return-Path: Delivered-To: freebsd-current@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 A59A515C5797 for ; Thu, 30 May 2019 15:31:48 +0000 (UTC) (envelope-from johalun@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1237190D21 for ; Thu, 30 May 2019 15:31:48 +0000 (UTC) (envelope-from johalun@FreeBSD.org) Received: from [10.46.14.95] (wsip-72-212-151-146.ph.ph.cox.net [72.212.151.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: johalun) by smtp.freebsd.org (Postfix) with ESMTPSA id A4BBB95C0 for ; Thu, 30 May 2019 15:31:47 +0000 (UTC) (envelope-from johalun@FreeBSD.org) To: FreeBSD Current From: Johannes Lundberg Subject: Inconsistent behavior with wpa / devd / network interfaces Message-ID: Date: Thu, 30 May 2019 08:31:45 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 1237190D21 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.96)[-0.960,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 May 2019 15:31:48 -0000 Hi I have a bridge and an ethernet/wifi lagg failover like this: # First define all cloned interfaces cloned_interfaces="bridge0 lagg0" # bhyve bridge ifconfig_bridge0="inet 192.168.8.1/24 addm lagg0 up" # Ethernet/WiFi failvoer ifconfig_em0="up" wlans_iwm0="wlan0" ifconfig_wlan0="WPA up" create_args_wlan0="wlanaddr xx:xx:xx:xx:xx:xx" ifconfig_lagg0="laggproto failover laggport em0 laggport wlan0 DHCP up" When I move between home and work networks and plug in the network cable it sometimes reconfigure and sometimes (mostly) not. Looking at devd output from a failed occasion and I can see that it calls dhclient on em0 and not lagg0. But it since it works sometimes I don't know if this is correct or not (I would expect lagg0 and not em0 but manually running this command with either em0 or lagg0 doesn't do anything)... devd log: Executing 'service dhclient quietstart $'em0'' In addition to this, I often have to run ifconfig wlan0 scan (or service netif restart) or to have the it reconnect to a different wifi. It doesn't seem to be doing any periodical scanning and reconnecting at all (but maybe that's a different issue). For sometime now I usually have to run service netif restart to get network working after switching location, followed by adding all my VM tap interfaces to the bridge manually, and restarting bhyve guests because they lose connectivity.. It's getting a bit tiring and I would like to find a solution. Do I have something weird in my setup causing this? I don't recall ever having this issue when not using failover lagg. Running recent 13-CURRENT. Thanks! /Johannes