Author
Message
N1GKn DD-WRT Novice Joined: 24 Dec 2021 Posts: 10
Posted: Fri Dec 24, 2021 13:41 Post subject: VLAN tagging on tplink ac1750 v5
Hi all,
I installed Firmware: DD-WRT v3.0-r47911 on a TP-Link Ac1750 v5 and I configured the vlan tagging as showed in the attachment but I am not able to use the router connected directly to the ONT.
Could you help me to understand how I can configure the vlan tagging to use the router as third party router?
Thank you very much
Back to top
Sponsor
egc DD-WRT Guru Joined: 18 Mar 2014 Posts: 11701 Location: Netherlands
Back to top
N1GKn DD-WRT Novice Joined: 24 Dec 2021 Posts: 10
Posted: Fri Dec 24, 2021 14:00 Post subject:
Thank you egc and sorry, I'm new in this forum but I completely used the wrong section.
I'm sorry
Back to top
egc DD-WRT Guru Joined: 18 Mar 2014 Posts: 11701 Location: Netherlands
Back to top
kernel-panic69 DD-WRT Guru Joined: 08 May 2018 Posts: 13462 Location: Texas, USA
Back to top
egc DD-WRT Guru Joined: 18 Mar 2014 Posts: 11701 Location: Netherlands
Posted: Fri Dec 24, 2021 15:47 Post subject:
Maybe it works like this, if you add the vlan interface to eth0 you get interface eth0.0?
But confusing it is, one of these days someone has got to get to the bottom of this and write a wiki _________________ Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read): https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Back to top
kernel-panic69 DD-WRT Guru Joined: 08 May 2018 Posts: 13462 Location: Texas, USA
Back to top
Per Yngve Berg DD-WRT Guru Joined: 13 Aug 2013 Posts: 6713 Location: Romerike, Norway
Posted: Fri Dec 24, 2021 16:38 Post subject:
Check the config in CLI
swconfig dev switch0 show
Back to top
N1GKn DD-WRT Novice Joined: 24 Dec 2021 Posts: 10
Posted: Mon Dec 27, 2021 8:43 Post subject:
Hi guys, thank you for answering.
Yes it is very confusing and a wiki would be perfect to better understand.
I'm honest, the DD-WRT build on this TP-Link is not very stable, sometimes it shows to me the "Switch" tab other time not.
Anyway I think that the correct way to set the VLAN tagging is in network. The real problem is that when I go on basic setup, sometimes a new sqare to flag saying "enable VLAN Tagging" compares but other time for example refreshing the page, I don't have the square to flag. It is very stressful.
I have also read on this https://wiki.dd-wrt.com/wiki/index.php/VLAN_Support:
Only Broadcom based devices support port-based VLAN's, no Atheros or Ralink devices. Non-Broadcom platforms support 802.1q VLAN tagging via the Networking page options (Linux's vconfig utility is used internally for this) but it often does not work correctly and it is for tagging entire interfaces (the LAN ports are all one interface on these platforms).
This is the output:
Code: root@DD-WRT:~# swconfig dev switch0 show
Global attributes:
enable_vlan: 1
enable_mirror_rx: 0
enable_mirror_tx: 0
mirror_monitor_port: 0
mirror_source_port: 0
disable_all_leds: ???
arl_age_time: 300
arl_table: ???
igmp_snooping: 0
igmp_v3: 1
Port 0:
mib: ???
enable_eee: ???
igmp_snooping: 0
vlan_prio: 0
pvid: 0
link: port:0 link:up speed:1000baseT full-duplex txflow rxflow
Port 1:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 0
link: port:1 link:up speed:1000baseT full-duplex txflow rxflow auto
Port 2:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:2 link:up speed:1000baseT full-duplex txflow rxflow auto
Port 3:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:3 link:down
Port 4:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:4 link:down
Port 5:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:5 link:down
Port 6:
mib: ???
enable_eee: ???
igmp_snooping: 0
vlan_prio: 0
pvid: 0
link: port:6 link:down
VLAN 1:
vid: 1
ports: 0t 2 3 4 5
VLAN 2:
vid: 2
ports: 0t 1t
Thank you
Back to top
Per Yngve Berg DD-WRT Guru Joined: 13 Aug 2013 Posts: 6713 Location: Romerike, Norway
Posted: Mon Dec 27, 2021 14:19 Post subject:
Your wan is tagged with vlan 2. Remove the tagging in Networking and put in startup script:
swconfig dev switch0 vlan 2 set vid 201
swconfig dev switch0 set apply
As port 0 is also tagged, it probably be wrong in the other end. Then select the new interface eth.201 as wan in networking.
Back to top
N1GKn DD-WRT Novice Joined: 24 Dec 2021 Posts: 10
Posted: Thu Dec 30, 2021 9:03 Post subject:
Done as you suggested and I get this:
Code: root@DD-WRT:~# swconfig dev switch0 show
Global attributes:
enable_vlan: 1
enable_mirror_rx: 0
enable_mirror_tx: 0
mirror_monitor_port: 0
mirror_source_port: 0
disable_all_leds: ???
arl_age_time: 300
arl_table: ???
igmp_snooping: 0
igmp_v3: 1
Port 0:
mib: ???
enable_eee: ???
igmp_snooping: 0
vlan_prio: 0
pvid: 0
link: port:0 link:up speed:1000baseT full-duplex txflow rxflow
Port 1:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 0
link: port:1 link:up speed:1000baseT full-duplex auto
Port 2:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:2 link:up speed:1000baseT full-duplex txflow rxflow auto
Port 3:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:3 link:down
Port 4:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:4 link:down
Port 5:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:5 link:down
Port 6:
mib: ???
enable_eee: ???
igmp_snooping: 0
vlan_prio: 0
pvid: 0
link: port:6 link:down
VLAN 1:
vid: 1
ports: 0t 2 3 4 5
[b]VLAN 2:
vid: 101
ports: 0t 1t[/b]
After that in Networking I select eth0 as wan port assignment and press save and apply,I lose the ssh connection and I get this:
Code:
root@DD-WRT:~# swconfig dev switch0 show
Global attributes:
enable_vlan: 1
enable_mirror_rx: 0
enable_mirror_tx: 0
mirror_monitor_port: 0
mirror_source_port: 0
disable_all_leds: ???
arl_age_time: 300
arl_table: ???
igmp_snooping: 0
igmp_v3: 1
Port 0:
mib: ???
enable_eee: ???
igmp_snooping: 0
vlan_prio: 0
pvid: 0
link: port:0 link:up speed:1000baseT full-duplex txflow rxflow
Port 1:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 0
link: port:1 link:up speed:1000baseT full-duplex auto
Port 2:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:2 link:up speed:1000baseT full-duplex txflow rxflow auto
Port 3:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:3 link:down
Port 4:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:4 link:down
Port 5:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:5 link:down
Port 6:
mib: ???
enable_eee: ???
igmp_snooping: 0
vlan_prio: 0
pvid: 0
link: port:6 link:down
VLAN 1:
vid: 1
ports: 0t 2 3 4 5
[b]VLAN 2:
vid: 2
ports: 0t 1t[/b]
So I'm starting to think that there is something wrong with DDWRT firmware and TP-LINK ac1750 v5 about the VLAN tagging
Back to top
kernel-panic69 DD-WRT Guru Joined: 08 May 2018 Posts: 13462 Location: Texas, USA
Back to top
Per Yngve Berg DD-WRT Guru Joined: 13 Aug 2013 Posts: 6713 Location: Romerike, Norway
Posted: Fri Dec 31, 2021 9:08 Post subject:
swconfig commands are not persistent. They have to be re-done after a restart.
That's why we put them in the startup script.
Back to top
N1GKn DD-WRT Novice Joined: 24 Dec 2021 Posts: 10
Posted: Tue Jan 04, 2022 7:14 Post subject:
Hi,
finally solved.
Code:
root@DD-WRT:~# swconfig dev switch0 vlan 2 set ports "0 1t"
root@DD-WRT:~# swconfig dev switch0 vlan 2 set vid 101
root@DD-WRT:~# swconfig dev switch0 set apply
Code:
root@DD-WRT:~# swconfig dev switch0 show
Global attributes:
enable_vlan: 1
enable_mirror_rx: 0
enable_mirror_tx: 0
mirror_monitor_port: 0
mirror_source_port: 0
disable_all_leds: ???
arl_age_time: 300
arl_table: ???
igmp_snooping: 0
igmp_v3: 1
Port 0:
mib: ???
enable_eee: ???
igmp_snooping: 0
vlan_prio: 0
pvid: 2
link: port:0 link:up speed:1000baseT full-duplex txflow rxflow
Port 1:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 2
link: port:1 link:up speed:1000baseT full-duplex auto
Port 2:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:2 link:up speed:1000baseT full-duplex txflow rxflow auto
Port 3:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:3 link:down
Port 4:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:4 link:down
Port 5:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:5 link:down
Port 6:
mib: ???
enable_eee: ???
igmp_snooping: 0
vlan_prio: 0
pvid: 0
link: port:6 link:down
VLAN 1:
vid: 1
ports: 0t 2 3 4 5
VLAN 2:
vid: 101
ports: 0 1t
I setted eth0 as wan port assignment.
Thank you a lot
Back to top