Another VLAN Tagging/Trunking Thread C7 Gateway - WR1043 WAP

  • Professional
  • Support
  • Community
  • Contact
  • Imprint
  • Privacy Policy
  • Forum
  • Wiki
  • Donations
  • Bugtracker
  • Imprint
  • Privacy Policy
  • DD-WRT
  • Community
  • Contact
  • Donations
  • Forum
  • Wiki
  • Bugtracker
  • Imprint
  • Privacy Policy
Quick Links Log in Profile View unanswered posts

Log in

Username: Password: Log me on automatically each visit

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 View previous topic :: View next topic
Author Message
tomronDD-WRT UserJoined: 10 Sep 2020Posts: 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-MLast edited by tomron on Mon Mar 22, 2021 14:07; edited 1 time in total
Back to top View user's profile Send private message
Sponsor
eibgradDD-WRT GuruJoined: 18 Sep 2010Posts: 9355
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-bind-static-routes-to-wan.sh (UPDATED! 11/12/24) * ddwrt-blacklist-domains.sh * ddwrt-dns-monitor.sh * ddwrt-ovpn-client-backup.sh * ddwrt-ovpn-client-killswitch.sh * ddwrt-ovpn-client-watchdog.sh * ddwrt-ovpn-server-watchdog.sh * ddwrt-ovpn-split-advanced.sh * ddwrt-ovpn-split-basic.sh * ddwrt-mount-usb-drives.sh * ddwrt-wol-port-forward.sh
Back to top View user's profile Send private message
kernel-panic69DD-WRT GuruJoined: 08 May 2018Posts: 16747Location: 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... RSS feed for DD-WRT releases (2025) RSS feed for DD-WRT releases (2024) RSS feed for DD-WRT releases (2023) ---------------------- Linux User #377467 counter.li.org / linuxcounter.net
Back to top View user's profile Send private message Visit poster's website
Per Yngve BergDD-WRT GuruJoined: 13 Aug 2013Posts: 7122Location: 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
Back to top View user's profile Send private message
tomronDD-WRT UserJoined: 10 Sep 2020Posts: 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
Back to top View user's profile Send private message
tomronDD-WRT UserJoined: 10 Sep 2020Posts: 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
Back to top View user's profile Send private message
Per Yngve BergDD-WRT GuruJoined: 13 Aug 2013Posts: 7122Location: 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.
Back to top View user's profile Send private message
tomronDD-WRT UserJoined: 10 Sep 2020Posts: 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
Back to top View user's profile Send private message
Per Yngve BergDD-WRT GuruJoined: 13 Aug 2013Posts: 7122Location: Romerike, Norway
PostPosted: Mon Mar 15, 2021 12:28 Post subject: Reply with quote
It's for Broadcom.
Back to top View user's profile Send private message
tomronDD-WRT UserJoined: 10 Sep 2020Posts: 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
Back to top View user's profile Send private message
Per Yngve BergDD-WRT GuruJoined: 13 Aug 2013Posts: 7122Location: 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
Back to top View user's profile Send private message
kernel-panic69DD-WRT GuruJoined: 08 May 2018Posts: 16747Location: 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... RSS feed for DD-WRT releases (2025) RSS feed for DD-WRT releases (2024) RSS feed for DD-WRT releases (2023) ---------------------- Linux User #377467 counter.li.org / linuxcounter.net
Back to top View user's profile Send private message Visit poster's website
tomronDD-WRT UserJoined: 10 Sep 2020Posts: 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
Back to top View user's profile Send private message
blktDD-WRT GuruJoined: 20 Jan 2019Posts: 6396
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?).
Back to top View user's profile Send private message
tomronDD-WRT UserJoined: 10 Sep 2020Posts: 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
Back to top View user's profile Send private message
Goto page 1, 2 Next Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First Page 1 of 2
Post new topic Reply to topic DD-WRT Forum Index -> Advanced Networking All times are GMT
Navigation
Jump to: Select a forum Forum Rules and Guidelines----------------Forum Rules and Guidelines EnglishForum Regeln and Anleitungen DeutschПравила форума и рекомендации: Russian DD-WRT (English)----------------AnnouncementsQualcomm Atheros based HardwareBroadcom SoC based HardwareGeneral QuestionsARM or PPC based HardwareMarvell MVEBU based Hardware (WRT1900AC etc.)Managed Switches based on Realtek RTL83xx PlatformSenao DevicesUbiquiti DevicesRalink SoC based HardwareX86 based HardwareBroadcom Customer Downloads & UpdatesAdvanced NetworkingSearch & Find, Sales & OffersHardware DIY / Hardware Mods DD-WRT (Deutsch)----------------AnkündigungenQualcomm Atheros basierende HardwareBroadcom SoC basierende HardwareAllgemeine FragenARM oder PPC basierte HardwareX86 basierende HardwareRalink SoC basierte Hardware DD-WRT (Español)----------------AnunciosHardware basado en AtherosHardware basado en Broadcom DD-WRT (Communauté francophone)----------------Annonces OfficiellesQuestions généralesMatériels à base de BroadcomMatériels à base de AtherosMatériels à base de RalinkLe Bistrot DD-WRT (Russian)----------------ОбъявленияИспользование и установка DD-WRT Оборудование на основе Atheros WiSOCОборудование на основе BroadcomОборудование на основе X86 / WRAP / Soekris Личные покупки и продажи Устройства Ubiquiti Оборудование на основе RalinkDD-WRT по-русски Development----------------Generic QuestionsContributions Upload
You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou cannot download files in this forum

Quick Links

Log in Profile View unanswered posts

Log in

Username: Password: Log me on automatically each visit Powered by phpBB © 2001, 2005 phpBB Group © 2022 EmbeDD GmbH

Tag » Archer C7 Vlan Tagging