Changing VLAN Settings to SWCONFIG

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4
Author Message
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 13879
Location: Netherlands

PostPosted: Mon Aug 09, 2021 12:55    Post subject: Reply with quote
Exactly one can be untagged the others must be tagged.

I have some ideas about it but it will take me weeks of research and trial and error while BS does that in a rainy afternoon Smile

I will write him about it and ask if he will take a look.

_________________
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
Sponsor
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2151
Location: WV, USA

PostPosted: Mon Aug 09, 2021 12:56    Post subject: Reply with quote
egc wrote:
Indeed you need to run the swconfig commands at startup.

I am looking into to it and it is rather complex.
To use the existing logic I came up with the following:
adding a checkbox for each port/vlan to tag that, see picture.

The GUI is working (sort off) but the underlying code-logic is very complex and not quite working yet, I need BS to do that.


This seems to be a very good solution. Let's hope it actually gets implemented sooner than later.

_________________
- Linksys EA8500: I-Gateway, WAP/VAP 5ghz only. Features: VLANs, Samba, WG, Entware - r60xxx
- Linksys EA8500: 802.11s Secondary w/VLAN Trunk over 5ghz - r60xxx
- Linksys MX4300: 802.11s Primary w/VLAN Trunk over 5ghz. 2.4ghz WAP/VAP only - r60xxx
- Linksys MX4300: (WAP/VAP (7)) Multiple VLANs over single trunk port. Entware/Samba r60xxx
- Linksys MR7350: WDS Station for extended Ethernet r60xxx
- Linksys MR7500, MX8500: None in production. Just testing. r60xxx
- OSes: Fedora 40, 10 RPis (2,3,4,5), 23 ESP8266s: Straight from Amiga to Linux in '95, never having owned a Windows PC.
- Forum member #248
|2e4per
Guest





PostPosted: Wed Nov 24, 2021 9:39    Post subject: VLAN config over swconfig working Reply with quote
On my R7000P and my Archer c7 v4 I managed it also after some time to have vlan running as intended.

I used swconfig commands within startup (from webUI) and set the corresponding settings on the switchconfigUI page.

All working so far.


Caveadd:

As I was struggling finding the correct CPU vlan port on the Archer device, I found that it is clear by using the following command.
It clearly prints out the right environment.

Code:
swconfig dev switch0 help
hoot_spoot
DD-WRT User


Joined: 07 Dec 2009
Posts: 110
Location: Earth.

PostPosted: Fri Jun 17, 2022 20:08    Post subject: All Ethernet ports on WAN Reply with quote
What if I wanted to move all the LAN ports to the WAN: The router pulls it's own DHCP assigned address from the WAN port, but since all the LAN ports are effectively on the same switch, anything plugged into them (and the wifi) pull from the same upstream source.

Basically, use the router as an access point, because there is already an upstream router.

r48305

_________________
various hw
plawer
DD-WRT User


Joined: 11 Aug 2019
Posts: 164

PostPosted: Sat Jun 18, 2022 23:10    Post subject: Reply with quote
It works as a 5 port switch when you assign the WAN port to the LAN VLAN. I typically configure the switch ports on my AP to four different VLAN to validate that the connection works correctly since I don't use the AP as an actual switch.
_________________
Linksys: Several WRTxx00AC variations | Netgear: 4x WNDR4500v2, 7x WNDR4300, R6400v1 | Asus: 2x RT-AC66U | Gl.inet: 3x GL-AR150
Chaiman
DD-WRT Novice


Joined: 10 Aug 2025
Posts: 5

PostPosted: Sun Aug 10, 2025 23:02    Post subject: Reply with quote
Is there no news about implementing the mockups for the advanced VLAN GUI?
kernel-panic69
DD-WRT Guru


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

PostPosted: Mon Aug 11, 2025 2:12    Post subject: Reply with quote
Unless the switch has more ports than in the WebUI on the Switch Config page, you should be able to do it directly in the UI as I already alluded to in response to your other thread. Might want to do further research and reading instead of adding cruft to old threads.
_________________
"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
Goto page Previous  1, 2, 3, 4 Display posts from previous:    Page 4 of 4
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware 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 can attach files in this forum
You can download files in this forum