Re: FBSD 15 :: if_bridge help needed

Paul Procacci <[email protected]>
Newsgroups gmane.os.freebsd.devel.net
Message-ID <CAFbbPui_Row=voSgcnGzmFOx=Pg6Vn7kVTjvyriTg6nNU3DCKQ@mail.gmail.com>
On Wed, Oct 8, 2025 at 4:18 AM Lexi Winter <[email protected]> wrote:
>
> Paul Procacci wrote in <CAFbbPuhuDtOH7t=a8EtDxHhHsqZWfLUe5vsD0XsJG6KF+HYKfQ@mail.gmail.com>:
> > Problem fixed.  I feel so ashamed.
> > While epair0b.60 was up ... epair0b wasn't.
> > A stupid stupid oversight.
> >
> > Thanks again for all the help and attention.  And sorry for the noise.
> > I owe ya'll a beer if we ever cross paths.
>
> no worries, i'm glad you fixed it and i appreciate someone actually
> testing the new bridge code in a real environment :-)

So after being up till 4am last night and making a stupid mistake like
forgetting to bring up an interface, I still feel there's something
amiss but w/ something entirely different.

Without getting into the gory details... just a simple question.

Say I have lagg0.
Say I have bridge0 w/ vlanfilter enabled.
.. and say I place the lagg into that bridge via `ifconfig bridge0
addm lagg0 tagged 1843'.

The above by itself doesn't provide access to the host because well,
there's no ip or anything assigned anywhere.
It should however provide a trunk carrying vlan 1843 to the bridge0 interface.

Alright, so what's the correct method here for getting the host
assigned an ip within that 1843 vlan.
Is it:
  a) create a lagg0.1843 interface and assign an ip
  b) create a bridge0.1843 interface and assign an ip

I'm presuming `b' as I've seen a few example here and there suggesting that.

As for testing:

192.168.35.1 -- Remote host
192.168.35.154 - Machine in question

From remote host: tcpdump -n -e -ttt -i igc1 host 192.168.35.154
00:00:01.063499 58:9c:fc:10:6f:fa > 60:be:b4:01:bf:0d, ethertype IPv4
(0x0800), length 98: 192.168.35.154 > 192.168.35.1: ICMP echo request,
id 5948, seq 8, length 64
So I'm seeing untagged packets arriving when they should be tagged.

Machine in question:
----------------------------------
root@xxx:~ # ifconfig bridge0; ifconfig bridge0.1843
bridge0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP>
metric 0 mtu 1500
        options=10<VLAN_HWTAGGING>
        ether 58:9c:fc:10:6f:fa
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        bridge flags=1<VLANFILTER>
        member: lagg0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                port 6 priority 128 path cost 2000000 vlan protocol
802.1q tagged 1843
        groups: bridge
        nd6 options=9<PERFORMNUD,IFDISABLED>
bridge0.1843: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>
metric 0 mtu 1496
        options=0
        ether 58:9c:fc:10:6f:fa
        inet 192.168.35.154 netmask 0xffffff00 broadcast 192.168.35.255
        groups: vlan
        vlan: 1843 vlanproto: 802.1q vlanpcp: 0 parent interface: bridge0
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

Any thoughts on this?

~Paul

__________

:(){ :|:& };:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.