Joined: 11 Apr 2010 Posts: 318 Location: San Francisco Bay Area
Posted: Mon May 17, 2021 18:08 Post subject: Changing VLAN Settings to SWCONFIG
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"
@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
Joined: 16 Nov 2015 Posts: 6447 Location: UK, London, just across the river..
Posted: Mon May 17, 2021 22:22 Post subject:
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…
Even after BS switchconfig patch, all is still working ….on R7000 _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
Joined: 08 May 2018 Posts: 14246 Location: Texas, USA
Posted: Mon May 17, 2021 22:47 Post subject:
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
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.
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 r54517 Std
E2000 - Wired ISP IPTV PVR Blocker - DDWRT r35531
Joined: 08 May 2018 Posts: 14246 Location: Texas, USA
Posted: Wed May 19, 2021 13:27 Post subject:
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
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.
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 r54517 Std
E2000 - Wired ISP IPTV PVR Blocker - DDWRT r35531