I have a SDSL access, and my ISP ask me to set a pppoe session over the vlan2900, with the priority code 2.
Before I was working with Zyxel, and I just had to specify priority code in vlan settings.
Now I work with Mikrotik (and I love the freedom they offer), and I don’t know how to do that.
I tried a mangle rule :
You’re right that PPPoE is L2 so /ip firewall rules do not handle PPPoE frames.
But as /interface ethernet switch rules act on ingress frames, you have to set your rule to match the CPU port of the switch. As there is an issue with matching VLAN ID, you’ll have to match on the MAC address instead, see this post.
Hm, it should be the MAC address of the remote PPPoE server, but as I think of it, it seems we have a deadlock problem here, as you don’t know its MAC address until it answers and it doesn’t answer until you set the VLAN priority.
So try to match on src-mac-address first:
/interface ethernet switch rule add switch=switch2 ports=switch2-cpu src-mac-address=mac:add:ress:of:eth:er1/ff:ff:ff:ff:ff:ff new-vlan-priority=2
If it doesn’t help, just set the vlan priority of all packets from CPU to 2:
It should not as normally only advanced L2 equipment cares about that field, and it only uses it to choose which frame to send next out a given egress port if several have arrived while the previous one was being sent. So unless there is a constant overbooking on a link, the frames with lower priority are just delayed, not dropped.
I don’t understand what makes some ISPs misuse 802.1Q as a kind of sub-address of the VID, except that they want to prevent people from using their own gear, but when this is the intention, it makes no sense to tell the customer how to set the gear.
Yes but some equipements won’t process Ethernet frames with 802.1q added bytes, I think…
I managed to get it working by matching mac address. Actually, I know mac address cause even without the priority code set, PPPoE works, the only thing is that upstream bandwith is quite limited.
So, I have to match the mac adresse 06:47:01:00:00:00 in my switch rule, and everything is fine.
I don’t really understand what is this mac address, but I found it by capturing frames on the ethernet port…
The mac address is the one of the interface on which your ONT is connected.
The port and the switch could vary depending of your hardware, I don’t know the hAP AC2, but I use this rule on a RB2011, which use the same switch chip.
I hope this will help you.