I am in need of a new router, because my old one won't support new versions of OpenWRT any more. (Not enough memory!)
The AVM 4040 came to my attention, but I also read the warnings about VLAN1 and VLAN2 and now I am confused. Does this mean that only two of the LAN ports can be used for VLANs?
I need a router that can be configured to serve 5 subnets: 4 LAN and 1 WAN. It's not important if they are configured as VLAN or as "real" networks like eth0, eth1, eth2, eth3. I just need 5 different networks that can be administrated and restricted by firewall rules and routing.
So, my question is: can this be done using the 4040 or should I better look for another device?
So it is just all about the names "vlan1" and "vlan2", and not about the actual hardware LAN ports? If I get it right now, I will be able to use any of the five LAN ports and assign any network I like to them, as long as I do use the names "vlan1" and "vlan2". Correct?
One more question: how many independent WiFi networks can be realized with this box? Right now my old router opens 3 wireless networks: 1 for my business notebook, one for all the private android devices, and one for guests. Will this also be possible with the 4040?
You are confusing the VLAN IDs and the physical ports.
You can, however you have 4 ports attached on the switch as @aboaboit mentioned.
If you want to assign 5 or more interfaces on 4 physical ports, then you would need to trunk the VLANs occupying the same port.
"VLAN" - "Virtual LAN" -- it is an extra "tag" on each Ethernet packet that many switches and "manually configured" Ethernet adapters on various hosts can read to read/write "the right" packets from/to the line. A little "magic" that allows multiple network segments to be carried on a single cable.
Port -- in this context is a physical socket on the back of your router. If you plug an "ordinary" device into a port, it only sees "untagged" (no VLAN) packets. In practical applications, this means one "client" port can support one network segment.
Trunking -- When you plug a VLAN-aware switch or device into a port, then that single wire can carry more than one network and the device on the other end "sorts it out". Often this is used to connect a "managed" ("VLAN-aware") switch in that then splits out the VLANs into its own ports, so that ordinary devices could be plugged into their own ports on that switch and see a "normal" (untagged), single network.
I admit my knowledge about VLAN is not very great. I came across this technique when I was searching for a way to build a firewall between my ISP and my own private network. This need braught me to OpenWRT.
Right now I am using a TP-Link for that purpose, which has reached its limits. But I can choose between "tagged" and "untagged" on each port of the switch. In the latter case, they behave like "ordinary" network ports. I assume that this is possible with the 4040 as well. If the 4040 is only capable of tagged network traffic, I'll have to look for another device.
Yes, that is correct: the TP switch is configured quite like you said. The CPU is wired to eth0, which gets "tagged" traffic, and each port of eth1 is configured as a separate VLAN (1-5) with untagged traffic. The WAN port is the 5th VLAN.
Thank you (all) for your help and the explaining so far!
After what I've read so far, the 4040 should be exactly what I need: it can be run with OpenWRT and it has enough memory to be on the safe side for the next few OS releases. As a bonus, it also blends in perfectly with my old 7390. (Which I still use as a phone box: DECT, voicebox, fax.)