advice/pitfalls of switch rule set vlan from mac
Posted: Tue Jan 02, 2024 3:50 am
Hi all. I'm looking to do some mac based vlans on netpower 16p. I have a radio that can't handle setting vlans, and the CPE also cannot. I need to split the users on the radio out into two groups. 'normal' and 'vlan'.
As I understand it, and I haven't done this in production yet so I'm looking to be corrected if I'm wrong, I should be able to create a rule as follows:
/interface ethernet switch rule
add switch=switch1 ports=ether1-AP1 src-mac-addres=xxxx/FFFFFFFFFFFF new-vlan-id=50
ether1-AP1 would have a vlan 50 attached (ether1-AP1-v50) and that would be added to a bridge-v50 which is has a vlan (or vxlan or vpls etc) back to the core.
The goal is to attach the CPE to a VLAN at the core through the network but do so selectively, some CPE would remain in the default vlan.
Any pitfalls I should worry about for those doing this or similar?
Also, in looking at the mikrotik notes, it's unclear if I need a second rule with dst-mac-address
As I understand it, and I haven't done this in production yet so I'm looking to be corrected if I'm wrong, I should be able to create a rule as follows:
/interface ethernet switch rule
add switch=switch1 ports=ether1-AP1 src-mac-addres=xxxx/FFFFFFFFFFFF new-vlan-id=50
ether1-AP1 would have a vlan 50 attached (ether1-AP1-v50) and that would be added to a bridge-v50 which is has a vlan (or vxlan or vpls etc) back to the core.
The goal is to attach the CPE to a VLAN at the core through the network but do so selectively, some CPE would remain in the default vlan.
Any pitfalls I should worry about for those doing this or similar?
Also, in looking at the mikrotik notes, it's unclear if I need a second rule with dst-mac-address