So I have a RB5009ug+s+in (v7.16.1) and I want to be able to assign the VLAN by Mac address as the devices I am required to use have no concept of VLANs. While I know I can set the PVID correctly for each device, I need it dynamic as I cannot control where they will ultimately be plugged in. I need the RB5009 to see the Mac and then follow the rule to assign it to the proper VLAN.
Is there some nuance on the RB5009ug+s+in that I need to be aware of to make this work? If any of you have a moment and have a RB5009, can you see if you can get the documented config to work or even any config where the applied rules dynamically change the VLAN based upon the Mac?
new-vlan-id (integer: 0..4095) Changes the VLAN ID to the specified value or adds a new VLAN tag if one was not already present (the property only applies to the Atheros8316, and 88E6393X switch chips)
RB5009 has 88E6393X so it should be able to do it, with the syntax as in your other two links.
MAC-based VLANs will only work properly between switch ports and not between switch ports and CPU. When a packet is being forwarded to the CPU, the pvid property for the bridge port will be always used instead of new-vlan-id from ACL rules.
So are you just using the RB as a switch, or are you trying to receive the “re-vlan’d” packets on the CPU interface to process them further?