Joined: 11 Apr 2010 Posts: 334 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"
Joined: 16 Nov 2015 Posts: 7068 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 WR1043NDv2 -DD-WRT 62606 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 63257 GTW/SmDNS/DoT,AD-Blk,Forced DNS,AP&Net Isolation,x2VLAN,Vanilla
Netgear R7800 --DD-WRT 62606 Gateway/DNSCryptv2,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla,VPN cli
Netgear R9000 --DD-WRT 62606 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Dynalink DL-WRX36-DDWRT 62606
Broadcom
Netgear R7000 --DD-WRT 63257 GTW/DNScrypt-proxy2/AD-Block,IPset Firewall,Forced DNS,x4VLAN,VPN cli
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
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 PureFibre 500Mbit/s - 10GbE Copper Backbone
2x R7800 - Gateway & AP & 3xWireGuard - DDWRT r53562 Std k4.9
Off Site 1
R7000 - Gateway & AP & WireGuard - DDWRT r58389 Std
R7000 - Station Bridge - DDWRT r49626 Std
Off Site 2 - Wired Backbone
3x R7000 - Gateway+AP01 / AP02 / AP03 - DDWRT r58389 std
E2000 - Wired ISP IPTV PVR Blocker - DDWRT r35531
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 PureFibre 500Mbit/s - 10GbE Copper Backbone
2x R7800 - Gateway & AP & 3xWireGuard - DDWRT r53562 Std k4.9
Off Site 1
R7000 - Gateway & AP & WireGuard - DDWRT r58389 Std
R7000 - Station Bridge - DDWRT r49626 Std
Off Site 2 - Wired Backbone
3x R7000 - Gateway+AP01 / AP02 / AP03 - DDWRT r58389 std
E2000 - Wired ISP IPTV PVR Blocker - DDWRT r35531