From owner-freebsd-emulation@freebsd.org Thu Aug 23 22:37:21 2018 Return-Path: Delivered-To: freebsd-emulation@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 59B34109A2F5 for ; Thu, 23 Aug 2018 22:37:21 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-oi0-x22a.google.com (mail-oi0-x22a.google.com [IPv6:2607:f8b0:4003:c06::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EA5BF8B6D9 for ; Thu, 23 Aug 2018 22:37:20 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by mail-oi0-x22a.google.com with SMTP id l82-v6so6519185oih.11 for ; Thu, 23 Aug 2018 15:37:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=mime-version:from:date:message-id:subject:to; bh=tn7ait2EJxT7haZL4K2pnjKE+P7YtjI9Th0ap4vAGwE=; b=HpumG2hdYXPA/1Ny3R9BOOaQ8P63kfjOESGlzS8JDQlow27wnZaWEBeQ6FE7lmonIn z7/ZBNKiOeKGfzRKI3LzqGTzeSsFfJVg1oRMP5bHepWQq99gDZg29zd3c9L+D7HisGnx 28stlGeDuVm0GlZ85Wj9Xz/kZRXGAY8ZQz8yI= 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=tn7ait2EJxT7haZL4K2pnjKE+P7YtjI9Th0ap4vAGwE=; b=Q7g7KFnPqkjI7kmoludG5SmHiX38VzU80Jjpbh0Tzmr1Fe5APlY53GdQ6XNVmuOW9w PlmcOaMvUcCHMCp3DxHrwzQeqTEYU61c+QvcU1P1dYbfpuOlebwB0cF8nl+7qMhLjsu3 LITEbB0UNSx7WNZf0eSCTXi3ETVlCaFUxeOJRDc74sUAfuTt7Tv/6U7h4CCtTuXRFJk2 pgF1tBluA2dl6tV/nAkEGLxHRrzoSRdeMd0bP0Ktlyrb0tyGN0llVHmsLWwsLHgi2abd n52/vtjDuD4QgYMlv52Cei1GTJ+fyfIrBtomvDeeagS9As5x8WHWu5kf0NMDy8gIKE3j CTjQ== X-Gm-Message-State: APzg51AH1O7oyvjC2GQyb725KoZDRU0SHrym3IKMGTIvhpHwyVN3Y8C9 LnXN5aqJ4T3KykGR3o4V61SQaPck0dpbATUvbFBYxXJmO+o= X-Google-Smtp-Source: ANB0VdZwvdV51PRDhgpptaHAItFhySP5mMGbjB2w7/FSvWeu+wtqgHLIbpkV25NSxhQnC4afk2wW6z3bSSGYTvo96AY= X-Received: by 2002:aca:3003:: with SMTP id w3-v6mr7896546oiw.231.1535063839580; Thu, 23 Aug 2018 15:37:19 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac9:6652:0:0:0:0:0 with HTTP; Thu, 23 Aug 2018 15:37:19 -0700 (PDT) From: Mario Lobo Date: Thu, 23 Aug 2018 19:37:19 -0300 Message-ID: Subject: VirtualBox and bridging lagg interface problem To: "freebsd-emulation@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2018 22:37:21 -0000 Hi there; I posted this on Questions but decided to give it a shot here. PC: FreeBSD 11.2-STABLE #0 r336831 16 GRam Intel i5 8th gen rc.conf: wlans_iwm0="wlan0" ifconfig_wlan0="WPA powersave" ifconfig_re0="media 1000baseTX mediaopt full-duplex up" ifconfig_re0="ether f8:94:c2:26:f3:54" ifconfig_lagg0="up laggproto failover laggport re0 laggport wlan0 DHCP" wpa_supplicant_enable="YES" wpa_supplicant_program="/usr/local/sbin/wpa_supplicant" cloned_interfaces="lagg0" OBS - tried cloning re0 MAC into wlan0 and it didn't work, so i cloned wlan0 MAC into re0 and every thing worked. ifconfig: re0: flags=8843 metric 0 mtu 1500 options=80088 ether f8:94:c2:26:f3:54 hwaddr fc:45:96:fb:3d:82 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active wlan0: flags=8843 metric 0 mtu 1500 ether f8:94:c2:26:f3:54 hwaddr f8:94:c2:26:f3:54 nd6 options=29 media: IEEE 802.11 Wireless Ethernet DS/1Mbps mode 11g status: associated ssid "Seaway Airport" channel 11 (2462 MHz 11g) bssid 6c:70:9f:da:15:5a regdomain FCC country US authmode WPA2/802.11i privacy ON deftxkey UNDEF TKIP 2:128-bit TKIP 3:128-bit powersavemode CAM powersavesleep 100 txpower 30 bmiss 10 scanvalid 60 protmode CTS wme roaming MANUAL groups: wlan lagg0: flags=8843 metric 0 mtu 1500 ether f8:94:c2:26:f3:54 inet 10.3.51.3 netmask 0xffffff00 broadcast 10.3.51.255 nd6 options=29 media: Ethernet autoselect status: active groups: lagg laggproto failover lagghash l2,l3,l4 laggport: re0 flags=5 laggport: wlan0 flags=0<> With these settings, host's lagg interface works seamlessly with wired/wireless. The problem: I have several VMs on this machine. On everyone of them, their network interface is configured to bridged on lagg0. If the master (re0 wired) is active, any VM has network connectivity, If I unplug the cable, lagg0 switches over wlan0 and the host never looses connectivity, BUT the VMs do! Even if boot with the cable unplugged, the host has perfect connectivity but any started VM doesn' t. I can't think of a reason why this is happening and google didn't help, so decided to post here and see if anybody could share any thoughts. Thanks, -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!]