[OpenWrt-Devel] DSA vlan configuration

John Crispin john at phrozen.org
Sun Jun 7 13:51:12 EDT 2020


On 06.06.20 15:19, Bjørn Mork wrote:
> Bjørn Mork <bjorn at mork.no> writes:
> 
>> I wonder if I have understood this correctly:
>> 1) vlan_filtering is required when bridging tagged and untagged DSA
>>     ports, and
>> 2) all bridge ports, including the wireless VIFs, must be configured
>>     with the correct VIDs when vlan_filtering is enabled
>>
>> An if so, how are we supposed to configure that?
> 
> quarky just posted a great tip in the forum:
> https://forum.openwrt.org/t/mt7621-dsa-switch-vlan-configuration/65458/2?u=bmork
> 
> Despite having looked for exactly this, I had not seen the
> "vlan_default_pvid" setting before.  This seems to solve the problem I
> described.
> 
> I believe the tagged wan port, where one VID on wan is part of a bridge,
> is a semi-common usecase for OpenWrt (and CPEs in general).  Maybe this
> kind of bridge automatically should enable settings like:
> 
>   ip link set <br-name> type bridge vlan_default_pvid <wan-vid>
>   ip link set <br-name> type bridge vlan_filtering 1
> 
> as described by quarky?
> 
> AFAICS, a DSA based brigde won't work without something like that, and
> having each user figure that out by themselves is going to create a lot
> of frustration...
> 
> 
> Bjørn
> 

Hi Bjørn,
indeed, we need to put this into netifd. would it be possible to collect 
all the relevant info and put it into the wiki for manual setup ? i 
would volunteer to add it into netifd in that case.
	John

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list