I am unable to configure VLAN IDs above 15 on a Mi 4C running latest OpenWrt 22.03.3 r20028-43d71ad93e. SWCONFIG shows the switch can do 4096 without further params but it just won't work. VLANs below ID 15 work fine.
Why would SWCONFIG show 4096 but any IDs above 15 will not work with OpenWRT?
This appears to be a bug in swconfig, as the 305x is definitely hardware limited to 16 vlans.
Use the workaround that @tomtom said. The "vlan" parameter needs to be unique and between 1 and 15, as it is the index into the switch's hardware table of VLANs. The "vid" parameter is the number that will appear in the 802.1Q Ethernet tags.
thanks. I did a search on your solution and understand now that on smaller devices you might need to set the VID in the switches VLAN table if VLANs go higher than a certain number.