This article was pieced together for forum posts and trial and error on multiple installations on my side. Unfortunately DD-WRT documentation, while the wiki has lots of “recipes”, is seriously lacking in low-level explanations of how stuff works.

The best I could come up with regarding explaining the vlan ports management is this: http://www.dd-wrt.com/wiki/index.php/Switched_Ports