This is an old revision of the document!
This will configure an OpenWRT router from default configuration to enable two routed VLANs:
The final configuration will resemble this simple network diagram:
Note: When configuring your OpenWRT router for VLAN support it is important to remember that once you configure a VLAN tag on a switch port you must use VLAN tags on all switch ports which will require you to reconfiguring the br-lan bridge to bridge directly to the primary VLAN rather than to the physical interface.
Login to the OpenWRT router:
Note: When routing between VLANs the CPU port must be set to tagged for all VLANs you intend to route between. Think of it like an internal trunk port.
Now that you have configured VLAN tagging/untagging on your switch ports you must create a new interface for each new VLAN if you plan to route between them.
The final step to configuring your routed VLANs is to create firewall rules that will allow traffic to be forwarded between the virtual interfaces on the router
That's it, the router should now be configured to route between both VLANs!