Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Jun 2023 16:36:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 271869] bridge interface keeps disappearing when adding tap interface as member
Message-ID:  <bug-271869-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271869

            Bug ID: 271869
           Summary: bridge interface keeps disappearing when adding tap
                    interface as member
           Product: Base System
           Version: 13.2-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: ronald.heggenberger@docoscope.com

Created attachment 242638
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D242638&action=
=3Dedit
uname -a

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

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

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

... with the intent of having a link-aggregation of my ethernet port and wi=
fi
and having bridged tap interfaces (which will be NATed v=C3=ADa 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 d=
oes
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 abou=
t my
system.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271869-227>