Hi everyone.
I set up OPNsense as the main firewall and a Mikrotik device as the managed switch in a LAB.
I had some problems to make VLANs work as expected until I also set the bridge as a tagged port too.
For instance, If I don’t set the bridge as a tagged port too, the device on the access ports don’t get their IPs from the dhcp servers running
on OPNsense in which I also set the VLANs interfaces. Could you please explain to me why?
Here is the Mikrotik config:
/interface bridge
add name=BR1 vlan-filtering=yes
/interface ethernet
set [ find default-name=ether7 ] comment=TRUNK
set [ find default-name=ether8 ] comment=MNG
/port
set 0 name=serial0
set 1 name=serial1
/interface bridge port
add bridge=BR1 frame-types=admit-only-untagged-and-priority-tagged interface=\
ether1 pvid=10
add bridge=BR1 frame-types=admit-only-untagged-and-priority-tagged interface=\
ether2 pvid=10
add bridge=BR1 frame-types=admit-only-untagged-and-priority-tagged interface=\
ether3 pvid=20
add bridge=BR1 frame-types=admit-only-untagged-and-priority-tagged interface=\
ether4 pvid=20
add bridge=BR1 frame-types=admit-only-untagged-and-priority-tagged interface=\
ether5 pvid=30
add bridge=BR1 frame-types=admit-only-untagged-and-priority-tagged interface=\
ether6 pvid=30
add bridge=BR1 frame-types=admit-only-vlan-tagged interface=ether7
/interface bridge vlan
add bridge=BR1 tagged=ether7,BR1 untagged=ether1,ether2 vlan-ids=10
add bridge=BR1 tagged=ether7,BR1 untagged=ether3,ether4 vlan-ids=20
add bridge=BR1 tagged=ether7,BR1 untagged=ether5,ether6 vlan-ids=30
/ip dhcp-client
add interface=ether1
/system identity
set name=MK-Pnet
/system note
set show-at-login=no
/system package update
set channel=development
Thanks

