Sorry for the long and complicated question(s). Maybe it also shows that I have no clue what I am doing
.
So, I have a RB2011 with 2 switch chips, the first is an Atheros 8327 (port 1-5). I have a complex set-up with three VLANs (private, guest and device management). I have two WLANs also on the RB2011 (the real physical one is the private and a virtual one is the guest WiFi). The ports 1-5 are used for various purposes: the WAN, an access port (a server directly connected), a trunk (the three VLANs going tagged to another, smaller router) and a hybrid port (going to an access point with tagged private and guests VLANs and untagged device maangement VLAN). All VLAN staff is done in one (and currently only) bridge, having only the port 1-5, and the 2 WLANs connected to it). (Ports 6-10 I use for other dedicated purposes and I would not confuse you with those details.)
It works/worked almost perfectly.
When there is more traffic in-house or outside, then - as everything is done by the bridge SW - there are packet losses, and 100% CPU usage. So I tried to do HW acceleration with partial success.
-
I switched off VLAN Filtering on the bridge (as I read it is a must). Still the ports connected have PVID set (the option is there in Bridge/Ports, not greyed, etc.). I have the feeling that that does not matter when the overall bridge VLAN filtering is switched off. I think that VLAN tags are not added to traffic, neither on the physical ports (access port and hybrid port) nor on the WIFI access points. I do not get IP on any of them. Q1: Does PVID setting on bridge/port matter at all when VLAN filtering is off on the bridge?
-
I also tried to set VLAN details for the Switch1 as I read, adding VLANs to ports ether2-5 (Switch/Vlan) and setting the default VLAN under Switch/Port. As it is a 8327 chip, I read that the Header must be left “leave as is” and I only played around with the four options in VLAN mode, but I could not make the access point and the hybrid port work. (The trunk port works well with all the VLANs on it). Q2: Which VLAN mode shall I set in this case to get untagged incoming packets tagged and outgoing tagged packets untagged?
-
Even if I could make the ether ports work with Switch chip I still do not see how to make the WiFi work. The only option I can think of is to remove the WiFi from the bridge, and make a separate bridge for the WLANs. The problem is how to use the same VLAN on two bridges? In interfaces/vlan every VLAN has a parameter called interface, but I do not see how to connect a VLAN to both bridges? So, I could make two sets of VLANs with the same VLAN id and connect them to the two bridges respectively. Then the next problem is that a DHCP server can only be connected to one interface, so probably I would need to duplicate all the DHCP servers as well. But then I still want e.g. the two guest DHCP servers to give IP from the same range. I know it is possible to add one pool to two servers, but never tried it. Q3. Is it possible, how I wrote it; isn’t there an easier option?
As a result of this set up, for the time being only the trunks and the tagged VLANs of the hybrid port work, but the non-tagged hybrid, the access port and the RB2011 WiFI not. The good news is that the CPU usage dropped and no packet loss.
- Now I would also like to use the HW acceleration on the WAN, but if I add ether1 to the bridge, I have an issue (no communication on ether1 at all). It is by nature an access port with no VLAN tag. Q4: What shall I add to the Switch parameters to make it work?
Thanks,
(p.s. I do not attach my configuration as it is large and messy, so I would appreciate some hints more than a concrete bug fixing).