I am trying to set up a separate VLAN for a guest network (with a TL-WR841N as a second AP). Now on my WNDR3700 (which has a Realtek switch) the CPU is tagged by default, but on these TP-Link devices, it's not.
Default config on the TL-WR1043ND v2 (15.05 RC1):
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
option mirror_source_port '0'
option mirror_monitor_port '0'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 3 4'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '5 6'
Since the CPU needs to be in every VLAN afaik, and a port in more than one VLAN should be tagged, this is what should be working:
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0t 1 2 3 4t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0t 4t'
config switch_vlan
option device 'switch0'
option vlan '3'
option ports '5 6'
As soon as I apply this, I cannot connect to the router anymore over the LAN (no ping, no nothing). Wireless still works though.
On the TL-WR841N, I have a similar problem. It seems they use the same (or a similar) switch, the AR8327N, however, the WR841N is running 14.07. The default VLAN looks identical:
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 3 4'
After adding an extra VLAN (and tagging the CPU and the shared port in both VLANs), LAN connectivity disappears. I cannot reach the device anymore except for the port part of the additional VLAN. All the other ports stop responding. Wireless seems to work (the TL-WR841N has no DHCP-server anymore and I didn't try with a static IP over wireless).
Likewise, when one (or both) the devices have an extra VLAN defined, I cannot ping from one to the other. I have tried restarting the network (/etc/init.d/network restart) or powercycling multiple times to test (you know how Einstein said only a fool tries something more than once expecting a different result...).
Would be very grateful if anyone knows how to fix this.
(Last edited by Borromini on 23 May 2015, 16:36)