Not to hijack your thread but I'm trying to get the WAN port on my wrt1200ac to use vlan 201 with tagging and I'm having a heck of a time. Do any of you have any suggestions on how to do that since we have similar hardware? The code I'm trying to run just causes the router to lock up.
I'm getting confused with the difference between switch0 and eth0. eth0 is WAN I thought but port 4 is WAN, I am so lost.
swconfig dev eth0 set reset
swconfig dev eth0 set enable_vlan1
swconfig dev eth0 vlan 1 set vid 201
swconfig dev eth0 vlan 1 set ports '0 4t'
swconfig dev eth0 set apply
Suggestions? Yes. I've experienced the same router lock up with the 3200acm when trying to run the "swconfig dev apply command" in terminal in the router when its already up an running. It might be a Marvell chipset thing.
Try putting your Swconfig commands in a startup script. That's the only way I could get past the router lockup problem. But as my thread indicates, I still could not get ethernet connections to the router with ANY swconfig set-up (though my wireless worked fine). I ended up having more success configuring the router/ switch through NVram though I am still having problems getting the Vlan ethernets connections to be in the subnets they are assigned.
In response to an email, I decided to post some resources to help some other noobs like myself get started with Vlanning. I bolded keywords/concepts:
(for segmenting wireless. Starters read this one before others. Teaches how to setup virtual interfaces, create bridges, assign interfaces to bridges then put DHCP servers on bridges. Theoretically much of the same steps here should apply to VLANing. Though this guide was made for routers with broadcom chipsets, this guide will fully get wireless Segment/vlan working on Marvell chipset 3200acm, despite currently remaining problems with ethernet ports. This guide also contains instruction for using DNSmasq as DHCP server by using the additional options box under DNSmasq instead of normal GUI method. DNSmasq for DHCP instructions worked worse for me than normal GUI DHCP server instruction. See the below links in my comment for more on DNSmasq/DHCP )
(A good dd-wrt VLANing guide, but as you find out you can’t do the step on page two that calls for Separating the LAN ports because there is currently not a “VLAN” tab in the GUI for the WRT3200acm. This means you should have to manually separate the ports using the terminal and a utility like NVRAM or Swconfig. )
(Shows the potential discrepancy between DD-WRT Port number Labeling and Hardware/GUI/external labeling of the ports . As I write this I forget what numeric labels swconfig or NVRAM assigns to the ports for the 3200acm and what layout there is but I think I mention it in a comment somewhere on this post. )
(essential for understanding how to use NVRAM utility for VLANING and separating LAN ports into different subnets. Also contains the two different potential port layouts. I believe I determined that for NVRAm the port layout that has the WAN=0 port is the correct configuration for the WRt 3200acm.).
(for those who want to try using the Swconfig utility to to configure the switch this contains instructions on a start up script. Also contains a nice conceptual diagram of general relationship between VLANS and ports and interfaces though not necessarily the 3200acms. )
( contains instructions for using DNSmasq as a DHCP server. I’ve suspected my remaining problem is some sort of assignment of DHCP server problem. I’ve tried this to assign DHCP servers to bridges with my VLANs in them instead of using the normal GUI method for the assignment Less success with this than the GUI can’t connect to router at all when I try this operation. )
(see this under “old procedure” for more information on trying to use box for additional options under DNSMasq in the services tab of the GUI to configure DHCP servers for bridges. Again same problem as mentioned before less success with this than normal GUI method of assigning DHCP servers under the networking tab. ) _________________ Linksys WRT3200ACM
Build: B.S.'s DD-WRT v3.0-r32597 std (07/08/17)