Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#8867 closed defect (worksforme)

Tagged VLAN on RTL8366RB needs hacked config (broken swconfig or network scripts)

Reported by: alchemyx@… Owned by: juhosg
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: Cc:


I tried for a few days to make configuration where VLAN 152
is tagged on WAN and port 3 but with no luck. It did not change
VID of VLAN to 152, funny thing that attached config works just

So to force it to create VLAN with VID 152 I need to set up PVID of any port 152, it creates VLAN 3 with VID 152, then I can change PVID of that port to anything else and use VLAN 3 normally.

So it is either broken swconfig or network scripts. Because if I don't
do this PVID "hack" it won't change VID of VLAN 3 to 152 and it will
still be PVID 3.

Attachments (3)

network.txt (1.6 KB) - added by alchemyx@… 7 years ago.
switch.txt (11.4 KB) - added by alchemyx@… 7 years ago.
swconfig output (982 bytes) - added by Jérôme Poulin <jeromepoulin@…> 6 years ago.

Download all attachments as: .zip

Change History (17)

Changed 7 years ago by alchemyx@…


Changed 7 years ago by alchemyx@…

swconfig output

comment:1 Changed 7 years ago by jow

  • Component changed from packages to kernel
  • Owner changed from developers to juhosg
  • Status changed from new to assigned

comment:2 Changed 7 years ago by jow

Please state the used OpenWrt version and the model it installed on.

comment:3 Changed 7 years ago by anonymous

The OpenWrt version is 10.03.1-rc4 and the model is TL-WR1043ND from TP-Link.

comment:4 Changed 7 years ago by nbd

  • Resolution set to worksforme
  • Status changed from assigned to closed

the configuration is wrong, you cannot make a port untagged in one VLAN and tagged in another.

comment:5 Changed 6 years ago by alchemyx@…

I don't get it. Maybe because I am used to typical switches and I thought it applies to devices running openwrt.

So I can't have more than one VLAN on a port? Or I can't mix tagged VLANS with untaged one?

I am trying to achieve that - WAN gets untagged VLAN 103 and tagged VLAN 153. I need to have untagged 103 on port 1 and untagged 103 and tagged 153 on port 2. So...

VLAN 103 - 0 1 2 5t
VLAN 153 - 0t 2t 5t

PVID for WAN - 103
PVID for port 1 - 103
PVID for port 2 - 103

So what seems to be wrong here?

comment:6 Changed 6 years ago by alchemyx@…

After upgrading to trunk it was possible to properly configure VLANs, with a little glitch altough -- #10161

Changed 6 years ago by Jérôme Poulin <jeromepoulin@…>


comment:7 Changed 6 years ago by Jérôme Poulin <jeromepoulin@…>

This bug is fixed in trunk, however, I need it in Backfire. I made this little hack which resets all PVIDs to the Untagged VLAN of each port (or leaves it alone for all tagged).
Just replace /lib/network/ with this script to fix the problem.

comment:8 Changed 5 years ago by anonymous

The workaround solves the problem for me as well (10.03.1, same model). Thanks a lot. It took me half a day to find it.

If there really is a fix in trunk the resolution of this issue should be changed from "worksforme" to "fixed".

comment:9 Changed 5 years ago by Tim Miller Dyck <tim@…>

I tested this again with 12.09 beta 1 "Attitude Adjustment" and a TP-LINK TL-WR1043ND (ar71xx). This problem of the PVID of ports being set to the last VLAN they are defined as a member of, regardless of if the port is tagged or untagged is still there.

Jérôme, your update to works fine on 12.09 beta 1 to restore the correct PVID. Thank you!

Could this be included in 12.09?

-Tim Miller Dyck

comment:10 Changed 5 years ago by Tim Miller Dyck <tim@…>

FYI, /ticket/8501.html has an alternate workaround (in short, assign PVIDs manually and ensure the PVID settings are _after_ the VLAN settings in /etc/config/network). This fix will survive an OpenWRT upgrade. But Jérôme's fix is more correct.

nbd, could you say more about why tagged and untagged on the same port is unsupported? I have had no problems using tagged and untagged VLANs on the same port from OpenWRT 10.03-rc3 through 10.03.1 with the RTL8366RB chipset on a TP-LINK TL-WR1043ND. There is just this PVID assignment problem based on how VLAN settings are ordered top-to-bottom in /etc/config/network that was new as of 10.03-rc4. Is there some other subtle problem with tagged VLANs?

Tim Miller Dyck

comment:11 Changed 5 years ago by Jérôme Poulin <jeromepoulin@…>

You can also add the path to /etc/sysupgrade.conf so it survives an upgrade.

comment:12 Changed 5 years ago by anonymous

Thank you jérôme

Your patch fixed my problem with OpenWrt version 12.09-rc1 on Netgear WNDR3800.
Router is installed between Free player (TV) and Free server (adsl link) and it was impossible to use web browser from free player or reach router anymore when vlan 100 was added for TV frame.


comment:13 Changed 5 years ago by Tim Miller Dyck <tim@…>

Hi, this is fixed in 12.09 as per /ticket/8501.html.

-Tim Miller Dyck

comment:14 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.