Hi all,
i’m facing an unstandard config:
Provider’s router have two Vlan configured on ethernet ports.
I need to install a mikrotik router between the lan and the ISP router.
Isp router use Vlan 20 for voice to connect internal phones to isp’s cloud pbx.
I’d like to know if mikrotik router can be used in this configuration and how to manage Vlans and routing.
In attach there is a scheme of the network.
I would not make any promises on the MT product because its not the limiting factor. Sticking an unmanaged switch in-between is your issue, replace it with managed switch and then the MT is golden.
Yeah, it purely depends on the unmanaged switch firmware, which could either ignore or drop VLAN tags, so you can either have expected behavior or no VLANs at all. Better find cheapest managed switch for this purpose. D-Link DGS1100 is very affordable, and you can find some vlan-aware stuff on aliexpress even cheaper.
With vlan-filtering=yes, it is an overcomplication to use three bridges.
There are two possible ways:
the “standard” one is to use a single bridge with vlan-filtering=yes and just make both ether1 and ether2 tagged members of the telephony VLAN 20, ether1 a member (tagged or untagged depending on how the ISP router hands it over) of a WAN VLAN (1 if it comes tagged and any number 1..4094 except 20 if it comes tagless) and ether2 a tagless member of a LAN VLAN (again any number different from the other two). If you plan to run an IKEv2 VPN on the Mikrotik, it may be advantageous to make the bridge IP interface the WAN one (by setting its pvid to the one of the WAN VLAN); if not, it doesn’t matter.
the “old” but simpler (in this particular scenario!) one is to attach two vlan interfaces with VID 20 to ether1 and ether2 and bridge these two vlan interfaces together “back to back” using a separate dedicated bridge (with vlan-filtering=no)
In any case - before starting, remove one ethernet interface from the bridge and make sure you can configure the device when connected to that one, as it is very easy to lock yourself out when tampering with bridge configurations.