Changing VLAN Settings to SWCONFIG

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


Joined: 11 Apr 2010
Posts: 311
Location: San Francisco Bay Area

PostPosted: Mon May 17, 2021 18:08    Post subject: Changing VLAN Settings to SWCONFIG Reply with quote
I need to upgrade my two r7000s from r41811 - 12/28/19 to r46690 - 05/17/2021 and need to reproduce my VLAN settings with SWCONFIG. I have the following VLAN configurations.

Base R7000

Code:
nvram set vlan2ports="0 5u"
nvram set vlan3ports="4t 5"
nvram set vlan1ports="1 2 3 4t 5*"
nvram set port5vlans="1 2 3 16"
nvram set port3vlans="1 18 19 21"
nvram set port1vlans="1 18 19 21"
nvram set port4vlans="1 3 16 18 19 21"
nvram set port2vlans="1 18 19 21"
nvram set port0vlans="2 18 19 21"
nvram set vlan3hwname="et0"
nvram set vlan2hwname="et0"
nvram set vlan1hwname="et0"

WAP R7000

Code:
nvram set vlan2ports="5u"
nvram set vlan3ports="0t 5"
nvram set vlan1ports="0t 1 2 3 4 5*"
nvram set port5vlans="1 2 3 16"
nvram set port3vlans="1 18 19 21"
nvram set port1vlans="1 18 19 21"
nvram set port0vlans="1 3 16 18 19 21"
nvram set port2vlans="1 18 19 21"
nvram set port4vlans="1 18 19 21"
nvram set vlan3hwname="et0"
nvram set vlan2hwname="et0"
nvram set vlan1hwname="et0"

How do I do this using SWCONFIG?
Sponsor
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Mon May 17, 2021 18:15    Post subject: Reply with quote
Doesn't the nvram variables still work?

"swconfig dev switch0 show" to print the current configuration.

PS. This should have been posted in the Broadcom forum.
mache
DD-WRT User


Joined: 11 Apr 2010
Posts: 311
Location: San Francisco Bay Area

PostPosted: Mon May 17, 2021 18:24    Post subject: Reply with quote
Thanks for the quick response. The Switched Ports
wiki https://wiki.dd-wrt.com/wiki/index.php/Switched_Ports states:
Quote:
This Wiki applies to DD-WRT versions prior to r46604. DD-WRT r46604 and newer use swconfig on Broadcom.

I assumed that the way I configured VLANs was EOL'ed (End of Life'ed) and I had to move over to swconfig syntax.

Also, sorry about the forum mis-posting. It was a toss up for either Advanced Networking or Broadcom. I chose wrong, my apologies.
kernel-panic69
DD-WRT Guru


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

PostPosted: Mon May 17, 2021 19:49    Post subject: Reply with quote
There are plenty of posts about vlan setups on other hardware using swconfig, it shouldn't be too difficult to figure out.

https://openwrt.org/docs/techref/swconfig

@Per Yngve Berg: I am not 100% sure that the nvram variables are still being used on Broadcom, hence the added note on the switched ports wiki that I added.

_________________
"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
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6388
Location: UK, London, just across the river..

PostPosted: Mon May 17, 2021 22:22    Post subject: Reply with quote
Believe or not, on my R7000 (Broadcom) GUI Vlan option is working as it should…while on all other routers i use start up commands…Smile
Even after BS switchconfig patch, all is still working ….on R7000

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55179 WAP
TP-Link WR1043NDv2 -DD-WRT 55303 Gateway/DoT,Forced DNS,AP Isolation,Ad-Block,Firewall
TP-Link WR1043NDv2 -DD-WRT 55303 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear R7800 --DD-WRT 55363 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55363 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55363 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
kernel-panic69
DD-WRT Guru


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

PostPosted: Mon May 17, 2021 22:47    Post subject: Reply with quote
I will say this, cosmetically, on my E4200, port 1 LAN is now WAN in the webUI; if I plug into port 1, W shows link, if I plug into the actual WAN port, port 4 shows link. Maybe eventually somewhere down the road, that will get fixed and all platforms can use that page for VLANs through 15.
_________________
"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
mac913
DD-WRT Guru


Joined: 02 May 2008
Posts: 1847
Location: Canada

PostPosted: Wed May 19, 2021 5:21    Post subject: Reply with quote
Before build 46604 I always used the R7000's Switch GUI to setup vlans to ports. If you are not tagging vlan(s) to a port(s) the GUI works fine even with build 46690.

To correct vlan tagging here's an example, but also setup the Switch GUI to configure the vlans in nvram...

PORT 1 VLAN 1
PORT 2 VLAN 8
PORT 3 VLAN 3
PORT 4 VLAN 1,3,4,5,6,7,9 all tagged

# Add to Startup
# NEW build 46604+ fix vlan tagging
# Port 5 is the processor and tagged
swconfig dev switch0 vlan 1 set ports "1 4t 5t"
swconfig dev switch0 vlan 3 set ports "3 4t 5t"
swconfig dev switch0 vlan 4 set ports "4t 5t"
swconfig dev switch0 vlan 5 set ports "4t 5t"
swconfig dev switch0 vlan 6 set ports "4t 5t"
swconfig dev switch0 vlan 7 set ports "4t 5t"
swconfig dev switch0 vlan 8 set ports "2 5t"
swconfig dev switch0 vlan 9 set ports "4t 5t"
swconfig dev switch0 set apply

Moderator note: Please learn how to take a proper screenshot for attachment. No wider than 768 pixels; Otherwise, upload to image hosting site and link per forum rules and guidelines. Thank you.



Screenshot_2021-05-19 DAD_01 (build 46690) - Virtual LAN.png
 Description:
 Filesize:  167.12 KB
 Viewed:  12599 Time(s)

Screenshot_2021-05-19 DAD_01 (build 46690) - Virtual LAN.png



_________________
Home Network on Telus 1Gb PureFibre - 10GbE Copper Backbone
2x R7800 - Gateway & WiFi & 3xWireGuard - DDWRT r53562 Std k4.9

Off Site 1

R7000 - Gateway & WiFi & WireGuard - DDWRT r54517 Std
E3000 - Station Bridge - DDWRT r49626 Mega K4.4

Off Site 2

R7000 - Gateway & WiFi - DDWRT r52330 Std
E2000 - Wired ISP IPTV PVR Blocker - DDWRT r35531


YAMon 3.4.6 | DNSCrypt-Proxy V2
mac913
DD-WRT Guru


Joined: 02 May 2008
Posts: 1847
Location: Canada

PostPosted: Wed May 19, 2021 5:57    Post subject: Reply with quote
Looks like BrainSlayer fixed the vlan tagging issue in 46703 that I was having with build 46690. Looking forward to the next Build and back to the Switch GUI on the R7000.

https://svn.dd-wrt.com/changeset/46703

_________________
Home Network on Telus 1Gb PureFibre - 10GbE Copper Backbone
2x R7800 - Gateway & WiFi & 3xWireGuard - DDWRT r53562 Std k4.9

Off Site 1

R7000 - Gateway & WiFi & WireGuard - DDWRT r54517 Std
E3000 - Station Bridge - DDWRT r49626 Mega K4.4

Off Site 2

R7000 - Gateway & WiFi - DDWRT r52330 Std
E2000 - Wired ISP IPTV PVR Blocker - DDWRT r35531


YAMon 3.4.6 | DNSCrypt-Proxy V2
kernel-panic69
DD-WRT Guru


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

PostPosted: Wed May 19, 2021 13:27    Post subject: Reply with quote
Now maybe Atheros, Marvell, and Ralink will all be able to do this in the webUI for vlans up to 15, and only require CLI / script for vlans above 15 from now on.
_________________
"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
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12812
Location: Netherlands

PostPosted: Wed May 19, 2021 13:54    Post subject: Reply with quote
Now we maybe can get a decent vlan GUI like OpenWRT and other third party firmwares have.

This really is one thing which is lacking in DDWRT

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


Joined: 02 May 2008
Posts: 1847
Location: Canada

PostPosted: Thu May 20, 2021 19:27    Post subject: Reply with quote
mac913 wrote:
Looks like BrainSlayer fixed the vlan tagging issue in 46703 that I was having with build 46690. Looking forward to the next Build and back to the Switch GUI on the R7000.

https://svn.dd-wrt.com/changeset/46703


Not fixed on r46723 see my post...

https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1237206#1237206

_________________
Home Network on Telus 1Gb PureFibre - 10GbE Copper Backbone
2x R7800 - Gateway & WiFi & 3xWireGuard - DDWRT r53562 Std k4.9

Off Site 1

R7000 - Gateway & WiFi & WireGuard - DDWRT r54517 Std
E3000 - Station Bridge - DDWRT r49626 Mega K4.4

Off Site 2

R7000 - Gateway & WiFi - DDWRT r52330 Std
E2000 - Wired ISP IPTV PVR Blocker - DDWRT r35531


YAMon 3.4.6 | DNSCrypt-Proxy V2
kernel-panic69
DD-WRT Guru


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

PostPosted: Thu May 20, 2021 20:22    Post subject: Reply with quote
That was for the WAN port, I have emailed him about the LAN port tagging issue.
_________________
"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
mac913
DD-WRT Guru


Joined: 02 May 2008
Posts: 1847
Location: Canada

PostPosted: Thu May 20, 2021 22:25    Post subject: Reply with quote
kernel-panic69 wrote:
That was for the WAN port, I have emailed him about the LAN port tagging issue.


OK Thanks.

_________________
Home Network on Telus 1Gb PureFibre - 10GbE Copper Backbone
2x R7800 - Gateway & WiFi & 3xWireGuard - DDWRT r53562 Std k4.9

Off Site 1

R7000 - Gateway & WiFi & WireGuard - DDWRT r54517 Std
E3000 - Station Bridge - DDWRT r49626 Mega K4.4

Off Site 2

R7000 - Gateway & WiFi - DDWRT r52330 Std
E2000 - Wired ISP IPTV PVR Blocker - DDWRT r35531


YAMon 3.4.6 | DNSCrypt-Proxy V2
mac913
DD-WRT Guru


Joined: 02 May 2008
Posts: 1847
Location: Canada

PostPosted: Fri May 21, 2021 16:11    Post subject: Reply with quote
With BrainSlayer's Great Work he has fixed the vlan tagging issue in the GUI with Build r45733. Again Thank You BrainSlayer!
_________________
Home Network on Telus 1Gb PureFibre - 10GbE Copper Backbone
2x R7800 - Gateway & WiFi & 3xWireGuard - DDWRT r53562 Std k4.9

Off Site 1

R7000 - Gateway & WiFi & WireGuard - DDWRT r54517 Std
E3000 - Station Bridge - DDWRT r49626 Mega K4.4

Off Site 2

R7000 - Gateway & WiFi - DDWRT r52330 Std
E2000 - Wired ISP IPTV PVR Blocker - DDWRT r35531


YAMon 3.4.6 | DNSCrypt-Proxy V2
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12812
Location: Netherlands

PostPosted: Fri May 21, 2021 17:41    Post subject: Reply with quote
In the mean time I have been discussing with him a GUI which let you specify the VLAN number, so that you can also set numbers above 16.

Just wait and see Smile

(but do not hold your breath)

_________________
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
Goto page 1, 2, 3, 4  Next Display posts from previous:    Page 1 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