Hey there,
Just looking for some clarity on my brain fog when it comes to the new vlan method within bridge vlan. Historically, I would just create multiple vlan entries and rename them, and associate to interfaces.
Topology >
Mikrotik Router >> Cisco Switch(s)
Mikrotik eth1 >> Sw1. (10,20,40,99)
Mikrotik eth2 >> Sw2 (10,20,40,99)
Mikrotik eth3 > Sw03 - different network, untagged. (40)
Need ports eth1, eth2, to be ‘trunk’ ports, with all vlans tagged, but also need the PVID to be untagged for access: eth3 vlan to be untagged as goes to unmanaged layer2 network switch.
Would it be as follows?
/interface bridge
add name=all-vlan-bridge vlan-filtering=yes pvid=1
add name=data-lan-bridge
add name=vlan40-lan-bridge
/ip dhcp server dhcp1
add interface=data-lan-bridge
/ip dhcp server dhcp2
add interface=vlan40-lan-bridge
/interface bridge port
add bridge=all-vlan-bridge interface=ether1 pvid=10
add bridge=all-vlan-bridge interface=ether2 pvid=10
add bridge=all-vlan-bridge interface=ether3 pvid=40
add bridge=data-lan-bridge interface=vlan10-data
/interface bridge vlan
add bridge=all-vlan-bridge vlan-ids=10 untagged=ether1,ether2 untagged=all-vlan-bridge
add bridge=all-vlan-bridge vlan-ids=20,40,99 tagged=ether1,ether2
add bridge=all-vlan-bridge vlan-ids=40 untagged=ether3
/interface vlan
add vlan-id=10 interface=all-vlan-bridge name=vlan10-data
add vlan-id=40 interface=vlan40-lan
/ip address
add address=x.x.x.x/m interface=data_lan (main IP of router, untagged)
/ip address
add address=x.x.x.x/m interface=vlan20
/ip address
add address=x.x.x.x/m interface=vlan40-lan
basically, vlan 10 is untagged traffic. Need router to be accessible. Not going to over complicate this network with a mgmt vlan…
vlans 20, 99 are tagged for tagged traffic & devices with vlan ID’s.
vlan 40 will be untagged port to un-managed L2 switch
Otherwise for vlan 40, I’ll just create a bridge-interface, add the port and have IP assigned. (how its setup now)