Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Apr 2022 10:08:31 +0000
From:      Benoit Chesneau <benoitc@enki-multimedia.eu>
To:        Lutz Donnerhacke <lutz@donnerhacke.de>
Cc:        "Patrick M. Hausen" <hausen@punkt.de>, "freebsd-net@FreeBSD.org" <freebsd-net@FreeBSD.org>
Subject:   Re: how to bridge "native" vlan?
Message-ID:  <fZ_IfYND_h1ZgPvR4GzRu_iJO7oHHQQSKW6uq1G9zjlxhVEhnPA1KjB6p7HWamL9wZ80RYQ16Kp1wr7f8dMWYLK7Vi-GKBnxGwPTKi0Rs2s=@enki-multimedia.eu>
In-Reply-To: <20220423212002.GC3774@belenus.iks-jena.de>
References:  <mOEoiwDtLyUdBfav7_Ygz5qfW3nQuT7KM1CnKoXN4haHc-j3gQIYC5GK-eIsCWScLlBhntQNZr42XD-2txcOpHG1rykfrb8CbWvcP84iXxs=@enki-multimedia.eu> <8E5C5DFB-B029-4B32-A67B-D09042ACCEE3@punkt.de> <20220423212002.GC3774@belenus.iks-jena.de>

next in thread | previous in thread | raw e-mail | index | archive | help
I am trying

`mkpeer vlan0: bridge 100`but so fat it is returningan error. Should I crea=
te the node first?



Beno=C3=AEt Chesneau

Sent with ProtonMail secure email.
------- Original Message -------
On Saturday, April 23rd, 2022 at 23:20, Lutz Donnerhacke <lutz@donnerhacke.=
de> wrote:


> On Thu, Apr 21, 2022 at 02:11:54PM +0200, Patrick M. Hausen wrote:
>
> > > Am 21.04.2022 um 11:29 schrieb Benoit Chesneau benoitc@enki-multimedi=
a.eu:
> > > I have an interface on which multiple vlans are connected. I would li=
ke to bridge the vlan 100 and 200 but also have a bridge for the "native" v=
lan 1. I Can setup a bridge for vlan 100 and 200 the way below I think but =
how to create a bridge for the "native" vlan?
> >
> > I don't have any experience with netgraph but I do know that
> > you cannot do that with if_bridge(4). If you make the physical
> > interface the member of a bridge, you cannot use additional
> > VLANs on that interface, anymore.
> >
> > Does anybody know if the same restriction applies to ng_bridge(4)?
>
>
> ng_bridge does not inspect the ethertypes only the mac addresses of the f=
rames.
> So you can split the VLANs using ng_vlan and connect them to the three br=
idges:
>
> : mkpeer em0: vlan lower downstream
> : name em0:lower vlan0
> : mkpeer vlan0: bridge 100 0
> : mkpeer vlan0: bridge 200 0
> : mkpeer vlan0: bridge nomatch 0
> : msg vlan0: addfilter { vid=3D100 hook=3D"100" }
> : msg vlan0: addfilter { vid=3D200 hook=3D"200" }
> : name vlan0:100 bridge100
> : name vlan0:200 bridge200
>
> : mkpeer em1: vlan lower downstream
> : name em1:lower vlan1
> : connect vlan1: bridge100: 100 1
> : connect vlan1: bridge200: 200 1
> : connect vlan1: bridge_untagged: nomatch 1
> : msg vlan1: addfilter { vid=3D100 hook=3D"100" }
> : msg vlan1: addfilter { vid=3D200 hook=3D"200" }
>
> : mkpeer em2: vlan lower downstream
> : name em2:lower vlan2
> : connect vlan2: bridge100: 100 2
> : connect vlan2: bridge200: 200 2
> : connect vlan2: bridge_untagged: nomatch 2
> : msg vlan2: addfilter { vid=3D100 hook=3D"100" }
> : msg vlan2: addfilter { vid=3D200 hook=3D"200" }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fZ_IfYND_h1ZgPvR4GzRu_iJO7oHHQQSKW6uq1G9zjlxhVEhnPA1KjB6p7HWamL9wZ80RYQ16Kp1wr7f8dMWYLK7Vi-GKBnxGwPTKi0Rs2s=>