OpenWrt Forum Archive

Topic: VLAN7 tagging on WAN port for TP-Link TL-WR1043ND v2

The content of this topic has been archived on 26 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I am trying to convince my TP-Link TL-WR1043ND v2 to use VLAN7 tagging on the WAN port. (Required for German Telekom BNG access).

The modem I'm using is an Allnet ALL0333CJ Rev.7. This used to work fine until Telekom switched my access to BNG, so I understand I now need to enable VLAN tagging as already mentioned.

So in /etc/config/network I did:

config interface 'wan'
-    option ifname 'eth0'
+    option ifname 'eth0.7'
    option proto 'pppoe'
    option username 'xxxxxx@t-online.de'
    option password 'xxxxxx'

....

config switch_vlan
    option device 'switch0'
-    option vlan '2'    
-    option vid '2'
-    option ports '5 6'     
+    option vlan '7'
+    option vid '7'
+    option ports '5 6t'

I don't really know how to check if tagging is actually taking place, but at least I don't get a working internet connection so I am assuming it's not.

Has anybody managed to get this working? This howto: https://www.computerhilfen.de/hilfen-22-389919-0.html (sorry, it's german) claims to make it work but for the v1 which has a slightly different port layout.

Any hints would be greatly appreciated...

Thanks!

EDIT: One thing I forgot to mention: Here is the Technical Specification document that states that VLAN7 is required: https://www.telekom.de/hilfe/downloads/1tr112.zip

(Last edited by edr on 14 Sep 2017, 22:31)

You need to make the switch tag on port 5 (the Ethernet cable to the modem).  It does not have to tag on port 6 (the CPU), since there is only one VLAN going to eth0 and the pppoe driver.

Switch config should be
    option ports '5t 6'
The CPU can send plain untagged packets into port 6 of the switch chip.  The switch will tag them 7 and output to port 5 ("WAN" physical port).  The process will be reversed for incoming packets.

So in the wan section, change back to plain eth0.

mk24 wrote:

You need to make the switch tag on port 5 (the Ethernet cable to the modem).  It does not have to tag on port 6 (the CPU), since there is only one VLAN going to eth0 and the pppoe driver.

Switch config should be
    option ports '5t 6'
The CPU can send plain untagged packets into port 6 of the switch chip.  The switch will tag them 7 and output to port 5 ("WAN" physical port).  The process will be reversed for incoming packets.

So in the wan section, change back to plain eth0.

I don't know what to say. This works perfectly. I read your post on the cell phone while going to bed after hours of fiddling, then booted up the computer again to give it one last try and now I am writing this reply through a connected router!

Thank you very, very much, you really made my day!!!

The discussion might have continued from here.