Another VLAN Tagging/Trunking Thread C7 Gateway - WR1043 WAP

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page 1, 2  Next
Author Message
tomron
DD-WRT User


Joined: 10 Sep 2020
Posts: 68

PostPosted: Tue Mar 09, 2021 18:17    Post subject: Another VLAN Tagging/Trunking Thread C7 Gateway - WR1043 WAP Reply with quote
Hello,

I think I stuck on the last 10% to get trunking on my home network running.

Current configuration:

gateway: Archer C7 V4 r44406

currently there are running 4 networks on this router
Home LAN/Wifi VLAN1
Home VPN Wifi VLAN3
Guest Wifi VLAN4


all bridges and DHCHPs setup and working on this device

VAP: TP Link 1043 OpenWrt 19.07.4 r11208
connected to Home LAN and distributes Home Wifi

Target configuration:
My target is to trunk/tagg all 4 networks to the VAP and distribute all 4 Wifis on the VAP


Question 1: how do I create more than 4 VLANs in the WEB UI?
Question 2: how is the trunk Port defined in the Web UI?
Question 3: does the dropdown menu "assign to Bridge" in "Setup/Switch Config" section assign to a brigde, but to which on? tbh, this drop down menue makes no visible sense for me, can anyone explain this to me?

unfortunately I found no proper guide or forum thread were these questions are answered.

BTW, is there a good reason why the wiki is pretty much outdated and the forum is almost the only source were to get information? I think you guys often do get the similar questions because of the lack of a better information source...

_________________
VLANs, Wireguard Site to Site, OpenVPN Client, WDS
TP-Link Archer C7 V4, V5
TP-Link Archer A7 V5
TP-Link WR1043 V4
Unifi UAP-AC-M


Last edited by tomron on Mon Mar 22, 2021 14:07; edited 1 time in total
Sponsor
eibgrad
DD-WRT Guru


Joined: 18 Sep 2010
Posts: 9157

PostPosted: Wed Mar 10, 2021 3:27    Post subject: Reply with quote
I'll tell you what I tell everyone about VLANs w/ dd-wrt.

VLANs are hardware dependent, and as such, questions need to be asked in the relevant forum for your router's chipset (TP-Link is typically Qualcomm/Atheros). Each chipset has its own way of handling it. For example, in the case of Atheros (iirc), it uses its own switch utility called swconfig.

That's why VLAN (re)configuration rarely works using the GUI. It was originally designed for Broadcom routers, specifically the now ancient Linksys WRT54G series. As other brands w/ other chipsets got support from dd-wrt, little to no effort was made to keep the VLANs portion of the GUI compatible. It just fell by the wayside. And that's why nearly all VLAN support requires scripting and the CLI.

In short, it's NOT a pretty picture for anyone needing VLAN support and expecting to have it work w/ the GUI. And it's why many of us in tech support don't get involved in it (particularly in this forum). Even if we wanted to, it would likely mean needing access to the exact same hardware as you to diagnose any problems. And why it's best you address your issues in the relevant forum, where the likelihood of that happening is much greater.

_________________
ddwrt-ovpn-split-basic.sh (UPDATED!) * ddwrt-ovpn-split-advanced.sh (UPDATED!) * ddwrt-ovpn-client-killswitch.sh * ddwrt-ovpn-client-watchdog.sh * ddwrt-ovpn-remote-access.sh * ddwrt-ovpn-client-backup.sh * ddwrt-mount-usb-drives.sh * ddwrt-blacklist-domains.sh * ddwrt-wol-port-forward.sh * ddwrt-dns-monitor.sh (NEW!)
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14249
Location: Texas, USA

PostPosted: Wed Mar 10, 2021 3:33    Post subject: Reply with quote
Topic moved. Usually, the only gripes I've seen about moving topics from Advanced Networking is due to them being about Broadcom hardware, since the rest use swconfig and associated CLI commands AFAIK, so I didn't move this one before Embarassed
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6872
Location: Romerike, Norway

PostPosted: Wed Mar 10, 2021 8:38    Post subject: Reply with quote
The switch is configure using swconfig

To show current configuration:

swconfig dev switch0 show
tomron
DD-WRT User


Joined: 10 Sep 2020
Posts: 68

PostPosted: Sat Mar 13, 2021 11:43    Post subject: Reply with quote
OK thanks, didn't know that vlans are that device specific and the gui isn't really usable. I will study the cli commands and sort it then out.

Would it then not be a good idea to place that information into the help section of this configuration page? Unfortunately the help section is completely empty and gives no clue how to handle vlans, which then results in countless threads how to configure vlans by the web ui... I mean it's just workload for the forum mods which could be mostly avoided.

_________________
VLANs, Wireguard Site to Site, OpenVPN Client, WDS
TP-Link Archer C7 V4, V5
TP-Link Archer A7 V5
TP-Link WR1043 V4
Unifi UAP-AC-M
tomron
DD-WRT User


Joined: 10 Sep 2020
Posts: 68

PostPosted: Sat Mar 13, 2021 19:24    Post subject: Reply with quote
do your recommend to make the VLAN Configs rather via startup script or to write it permanently into NVRAM???

Thanks!

_________________
VLANs, Wireguard Site to Site, OpenVPN Client, WDS
TP-Link Archer C7 V4, V5
TP-Link Archer A7 V5
TP-Link WR1043 V4
Unifi UAP-AC-M
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6872
Location: Romerike, Norway

PostPosted: Sat Mar 13, 2021 19:30    Post subject: Reply with quote
swconfig must be put in startup script. Nvram is not an option on an Atheros.
tomron
DD-WRT User


Joined: 10 Sep 2020
Posts: 68

PostPosted: Mon Mar 15, 2021 9:47    Post subject: Reply with quote
Per Yngve Berg wrote:
swconfig must be put in startup script. Nvram is not an option on an Atheros.


is there also a reason why NVRAM is not an option? just want to know why?

Thanks!

_________________
VLANs, Wireguard Site to Site, OpenVPN Client, WDS
TP-Link Archer C7 V4, V5
TP-Link Archer A7 V5
TP-Link WR1043 V4
Unifi UAP-AC-M
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6872
Location: Romerike, Norway

PostPosted: Mon Mar 15, 2021 12:28    Post subject: Reply with quote
It's for Broadcom.
tomron
DD-WRT User


Joined: 10 Sep 2020
Posts: 68

PostPosted: Mon Mar 15, 2021 16:42    Post subject: Reply with quote
ok... is there some document oder wiki article which I can take as reference??

I only find sources how to handle vlan configuration by modifying the NVRAM...

Am I blind or is there really nothing

Thanks

_________________
VLANs, Wireguard Site to Site, OpenVPN Client, WDS
TP-Link Archer C7 V4, V5
TP-Link Archer A7 V5
TP-Link WR1043 V4
Unifi UAP-AC-M
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6872
Location: Romerike, Norway

PostPosted: Mon Mar 15, 2021 17:10    Post subject: Reply with quote
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=326474&highlight=archer++swconfig
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14249
Location: Texas, USA

PostPosted: Mon Mar 15, 2021 17:23    Post subject: Reply with quote
Yes, you're most likely missing something.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
tomron
DD-WRT User


Joined: 10 Sep 2020
Posts: 68

PostPosted: Tue Mar 16, 2021 18:40    Post subject: Reply with quote
source: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=326474&highlight=archer++swconfig

Per Yngve Berg wrote:
The wired ports shall not be tagged. Is that correct?

The chip supports VLAN up to 127 only.


swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "0t 3 4 5"
swconfig dev switch0 vlan 2 set ports "0t 1"
swconfig dev switch0 vlan 4 set ports "0t 2"
swconfig dev switch0 vlan 5 set ports "0t 5"
swconfig dev switch0 set apply
vconfig add eth1 4
vconfig add eth1 5

Note: Check that the interface is eth1.


is this still true that VLANs are limited up to 127?

Thanks

_________________
VLANs, Wireguard Site to Site, OpenVPN Client, WDS
TP-Link Archer C7 V4, V5
TP-Link Archer A7 V5
TP-Link WR1043 V4
Unifi UAP-AC-M
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5705

PostPosted: Tue Mar 16, 2021 18:57    Post subject: Reply with quote
Appears to be a hardware limitation. Chip is chippy (where's my chippy?).
tomron
DD-WRT User


Joined: 10 Sep 2020
Posts: 68

PostPosted: Thu Mar 18, 2021 17:02    Post subject: Reply with quote
blkt wrote:
Appears to be a hardware limitation. Chip is chippy (where's my chippy?).


root@DD-WRT_Archer_C7_v4:~# swconfig dev switch0 help
switch0: ag71xx-mdio.0(Atheros AR8337), ports: 7 (cpu @ 0), vlans: 4096
--switch
Attribute 1 (int): enable_vlan (Enable VLAN mode)
Attribute 2 (none): reset_mibs (Reset all MIB counters)
Attribute 3 (int): enable_mirror_rx (Enable mirroring of RX packets)
Attribute 4 (int): enable_mirror_tx (Enable mirroring of TX packets)
Attribute 5 (int): mirror_monitor_port (Mirror monitor port)
Attribute 6 (int): mirror_source_port (Mirror source port)
Attribute 7 (int): disable_all_leds (Disable all switch LEDs)
Attribute 8 (int): arl_age_time (ARL age time (secs))
Attribute 9 (string): arl_table (Get ARL table)
Attribute 10 (none): flush_arl_table (Flush ARL table)
Attribute 11 (int): igmp_snooping (Enable IGMP Snooping)
Attribute 12 (int): igmp_v3 (Enable IGMPv3 support)
Attribute 13 (none): apply (Activate changes in the hardware)
Attribute 14 (none): reset (Reset the switch)
--vlan
Attribute 1 (int): vid (VLAN ID (0-4094))
Attribute 2 (ports): ports (VLAN port mapping)
--port
Attribute 1 (none): reset_mib (Reset single port MIB counters)
Attribute 2 (string): mib (Get port's MIB counters)
Attribute 3 (int): enable_eee (Enable EEE PHY sleep mode)
Attribute 4 (none): flush_arl_table (Flush port's ARL table entries)
Attribute 5 (int): igmp_snooping (Enable port's IGMP Snooping)
Attribute 6 (int): vlan_prio (Port VLAN default priority (VLAN PCP) (0-7))
Attribute 7 (int): pvid (Primary VLAN ID)
Attribute 8 (unknown): link (Get port link information)
root@DD-WRT_Archer_C7_v4:~#


seems to be different on my device

this is my current config:

Code:
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: 2
        link: port:1 link:up speed:100baseT 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:up speed:1000baseT full-duplex auto
Port 4:
        mib: ???
        enable_eee: 0
        igmp_snooping: 0
        vlan_prio: 0
        pvid: 3
        link: port:4 link:down
Port 5:
        mib: ???
        enable_eee: 0
        igmp_snooping: 0
        vlan_prio: 0
        pvid: 4
        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
VLAN 2:
        vid: 2
        ports: 0t 1
VLAN 3:
        vid: 3
        ports: 0t 4
VLAN 4:
        vid: 4
        ports: 0t 5

_________________
VLANs, Wireguard Site to Site, OpenVPN Client, WDS
TP-Link Archer C7 V4, V5
TP-Link Archer A7 V5
TP-Link WR1043 V4
Unifi UAP-AC-M
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum