Opened 3 years ago

#18242 new defect

enable_vlan4k keyword missing in BB 14.07 install using rtl8366rb chipset

Reported by: tim@… Owned by: developers
Priority: normal Milestone:
Component: base system Version: Barrier Breaker 14.07
Keywords: vlan enable_vlan4k rtl8366rb Cc:


Hello, I am testing on a TP-LINK TL-WR1043ND router with a rtl8366rb switch chipset using OpenWRt 14.07 Barrier Breaker final release.

I have found that the following cases -- a new BB 14.07 install, a reset to BB defaults, and in an upgrade to 14.07 from 12.09 -- the enable_vlan4k setting is not present in /etc/config/network.

The hardware supports this setting. LuCI also immediately adds it by default. If I go to Network > Switch > make no changes > just click "Save & Apply" on a new BB install, the switch section in /etc/config/network changes from:

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'


config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'
        option enable_vlan4k '1'

The problem I have run into is especially on upgrades. This keyword used to not be needed to have tagged+untagged VLANs work. I have VLAN 1 and VLAN 4, with VLAN 4 tagged on all ports. However, at least with 14.07 (and maybe 12.09, not sure), tagged+untagged stops working until enable_vlan4k is enabled, and then it works fine again after this setting is enabled. This was hard to figure out when I first ran into it.

It would be helpful (as it seems enable_vlan4k should always be enabled) to have the autodetection and configuration that LuCI does in /usr/lib/lua/luci/model/cbi/admin_network/vlan.lua by checking the output of "swconfig dev rtl8366rb help" to happen on OS startup somehow, so the setting is always set right. This will fix any possible upgrade cases as well as help those who make VLAN changes using SSH instead of through LuCI.

Tim Miller Dyck

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

as new .

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.