Bug 271869 - bridge interface keeps disappearing when adding tap interface as member
Summary: bridge interface keeps disappearing when adding tap interface as member
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.2-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-net (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-06 16:36 UTC by ronald.heggenberger
Modified: 2023-06-09 09:12 UTC (History)
2 users (show)

See Also:


Attachments
uname -a (97 bytes, text/plain)
2023-06-06 16:36 UTC, ronald.heggenberger
no flags Details
loader.conf (845 bytes, text/plain)
2023-06-06 16:36 UTC, ronald.heggenberger
no flags Details
dmesg.boot (10.09 KB, text/plain)
2023-06-06 16:37 UTC, ronald.heggenberger
no flags Details
rc.conf (1.25 KB, text/plain)
2023-06-06 16:37 UTC, ronald.heggenberger
no flags Details
sysctl.conf (2.00 KB, text/plain)
2023-06-06 16:37 UTC, ronald.heggenberger
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ronald.heggenberger 2023-06-06 16:36:03 UTC
Created attachment 242638 [details]
uname -a

I am having a weird situation and after a conversation on #FreeBSD IRC channel I got the advice to post it here.

I have the following entries for networking within my rc.conf...

---
background_dhclient="YES"
wlans_iwm0="wlan0"
ifconfig_wlan0="WPA up"
# MAC address redacted
ifconfig_em0="ether xx:xx:xx:xx:xx:xx up"
cloned_interfaces="lagg0 bridge0 tap0"
ifconfig_lagg0="laggproto failover laggport em0 laggport wlan0 DHCP"
ifconfig_bridge0="addm tap0 up"
ifconfig_bridge0_alias0="inet 10.0.0.1 netmask 255.255.255.0"
pf_enable="yes"
---

... with the intent of having a link-aggregation of my ethernet port and wifi and having bridged tap interfaces (which will be NATed vía pf to serve internet to VMs).

But after a system start the bridge0 interface isn't available (using 'ifconfig', it does not show up).

With the same configuration, executing the following commands don't work -> the bridge disappears after the last statement:
'ifconfig bridge0 create; ifconfig bridge0 addm tap0"

while the following command works and the bridge interface keeps existing:
'ifconfig bridge1 create; ifconfig bridge1 addm tap0"

---

What I've tried so far is:
- switching bridge0 in rc.conf to bridge1

Which made me discover the following:
- when defining bridgeN in rc.conf manually setting up (addm tap) bridgeN does not work, but bridgeM does (where M is not equal to N)

What have I screwed up in my config?

To be honest: I don't know how to reproduce this on other systems - as I am fairly new to FreeBSD. But I can supply whatever information is needed about my system.
Comment 1 ronald.heggenberger 2023-06-06 16:36:51 UTC
Created attachment 242639 [details]
loader.conf
Comment 2 ronald.heggenberger 2023-06-06 16:37:07 UTC
Created attachment 242640 [details]
dmesg.boot
Comment 3 ronald.heggenberger 2023-06-06 16:37:25 UTC
Created attachment 242641 [details]
rc.conf
Comment 4 ronald.heggenberger 2023-06-06 16:37:42 UTC
Created attachment 242642 [details]
sysctl.conf
Comment 5 ronald.heggenberger 2023-06-09 08:00:20 UTC
Alright... I figured out that I was running networkmgr - which caused the bridge interface to be destroyed. I uninstalled networkmgr and now it works as intended.
Comment 6 Mina Galić freebsd_triage 2023-06-09 09:12:15 UTC
might be good to submit this upstream then https://github.com/ghostbsd/networkmgr/issues