I’m having a hard time trying to configure VLAN tagging in a Mikrotik router. The same has 5 interfaces which I’ll describe below:
Interface 1 and Interface 2 → ISPs
Interface 3 → Uplink to a Cisco core switch with VLAN 1 in access mode, no trunking
Interface 4 → Uplink to a Cisco core switch with VLAN 2 in access mode, no trunking (DHCP enabled here, also configured on Mikrotik)
Interface 5 → Uplink to a Cisco core switch with VLAN 3 in access mode, no trunking (DHCP enabled here, also configured on Mikrotik)
So, what I wanted to do is to use one interface for all my LAN traffic so I thought about using VLANs, first of all in my cisco switch I configure this:
As far as I’m concerned there is nothing weird there.
So in Mikrotik I created a VLAN interface tagging VLAN 3 and mapping that to Interface 5, this didn’t work so after some research I discovered that I have to use bridges instead of mapping to the interface, so I create a bridge, I create a port for this bridge to the VLAN and I’ve also created a port for this bridge to the Interface. This didn’t work, honestly I’m not so sure if using bridges is a good approach but it’s all I found online. At some point the configuration went well but the DHCP server was refusing to accept the configuration, if I configure the DHCP server to use the VLAN interface it will just greyed out that.
It looks like you have created your trunk on your switch port, I presume you have also created your untagged vlan’s on the switch for your access ports?
I would however recommend not using VLAN1, go with something like VLAN10,20,30 etc as per the example. The above code will also block inter-vlan traffic. If you want this remove the following sections:-
You don’t need bridges, the concept is called router on a stick, google it.
Just create the VLAN’s you want on the Mikrotik, assign them to the uplink interface, assign DHCP to the vlan interfaces, connect you switch after you configured and you are done