Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2018 19:37:19 -0300
From:      Mario Lobo <lobo@bsd.com.br>
To:        "freebsd-emulation@freebsd.org" <freebsd-emulation@freebsd.org>
Subject:   VirtualBox and bridging lagg interface problem
Message-ID:  <CA%2ByoEx9g21dxYm-O7wBh51R0Mr-GzWKe=tu%2B1FmryscjBYzueg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80088<VLAN_MTU,VLAN_HWCSUM,LINKSTATE>
        ether f8:94:c2:26:f3:54
        hwaddr fc:45:96:fb:3d:82
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether f8:94:c2:26:f3:54
        hwaddr f8:94:c2:26:f3:54
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect
        status: active
        groups: lagg
        laggproto failover lagghash l2,l3,l4
        laggport: re0 flags=5<MASTER,ACTIVE>
        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!!]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2ByoEx9g21dxYm-O7wBh51R0Mr-GzWKe=tu%2B1FmryscjBYzueg>