Hello all,
I am trying to make Winbox on my CRS reachable from within my created bridge, testbr. When I turn on VLAN filtering on the bridge the IP address assigned is unreachable. On top of the default config I am running the following script.
:for a from=23 to=25 do={/interface bridge port remove $a}
:for b from=0 to=15 do={/interface bridge port remove $b}
/interface bridge add name=testbr frame-types=admit-only-vlan-tagged
/interface bridge port add bridge=testbr interface=ether24 frame-types=admit-only-vlan-tagged
:foreach c in={"ether1";"ether2";"ether3";"ether4";"ether5";"ether6";"ether7";"ether8"} do={
/interface bridge port add bridge=testbr interface=$c pvid=1003 frame-types=admit-only-untagged-and-priority-tagged
}
/interface bridge vlan add bridge=testbr tagged=ether24 vlan-ids=1003
/interface bridge set testbr frame-types=admit-only-vlan-tagged
/ip address add address=172.16.1.133/24 interface=testbr
/interface bridge set testbr vlan-filtering=yes
You need to add a vlan1003 VLAN interface (1st line). Set the IP address on that interface (2nd line). When adding the vlan entry under /interface bridge vlan, the “testbr” interface needs to be added to the list of tagged ports too (3rd line).
You see testbr appearing twice, and the two instances represent two different things. The first occurrence is the bridge that contains the physical ports and acts like a switch with a number of ports that have been added to it under /interface bridge ports. For the second occurrence, “testbr” acts as a port. It’s the port on that “switch” that connects to the main CPU. It’s treated as a port, like ether24, and is added to the tagged list of VLAN 1003, which means it’s a trunk port for VLAN 1003, transporting tagged frames between the “switch” and the main CPU. Without “testbr” in “tagged” the CPU has no access to VLAN 1003, which means layer 3 constructs like IP address are not available to the CPU on this VLAN.