Trunk Two MikroTik Switches Using 802.1q Vlans

Trunk Two MikroTik Switches Using 802.1q Vlans


Scenario: You have one MikroTik RB250GS switch running 802.1Q vlans and you want to extend all or some of those vlans to a second switch. The following diagram borrowed from a post by Ozelo explains:


The configuration of the first switch ( is explained in a previous example 802.1Q Router on a Stick Example . The main change to that example is the configuration of port ether5 since we want it to pass all the vlans to the second switch. The two pales you need to make changes are the VLAN tab and the VLANs tab. Confusing, yes but note the "s" on VLAN on one tab.

Configure the first switch as follows:

Switch 1 - VLAN Tab


Switch 1 - VLANS Tab


Then configure the second switch as follows. Please note we have set the IP address of the second switch to so as not to duplicate the witch 1 IP address. This is done on the System tab. In case you ever wonder why there is no setting for netmask or default gateway, that is because the switch does a little magic in determining the source of the packet and returning it to the host without the need for those two pieces of information.

Switch 2 - VLAN Tab


Switch 2 - VLANs Tab

All that remains is to create the vlan interfaces on the router and assign IP addresses, DHCP server, etc. to them. Here is a screen shot of the router used for this example, interfaces and IP addresses. The IP here is the one being used to manage the switches:


That is it, you should now have two switches trunked together passing vlans to the second switch.

    • Related Articles

    • Creating Trunk and Access Ports on MikroTik CRS3xx, CRS2xx and CRS1xx Series Switches

      The switch menu and configuration interface is significantly different on the CRS3xx versus the CRS1xx or CRS2xx series switches and if you are trying to configure VLANs, the process is totally different. Here is a quick HowTo for configuring VLANs ...
    • Using MikroTik LHG as a UE With a Baicells eNodeB

      If you want to use a MikroTik LHG CPE as a UE with your Baicells eNodeB, this blog post explains how.  Also shown is the tricky nature of inserting the SIM Card in the LHG. LEARN MORE
    • Netonix Stacked Switches, Trunking and Access ports

      In this example we will stack two switches and trunk between them. We want to manage the switch from port 1 on Switch 1 and port 1 on Switch 2 via port 8 on Switch 1.   1. To configure the switch, set an IP address of on your laptop ...
    • How to Easily Bridge Two MikroTik SXT Devices

        Bridging two MikroTik SXT devices is fast and easy if you follow this step by step guide. This configuration will produce a point to point transparent bridge using 40 MHz channel width and capable of passing up to 150 mbps wirelessly using ...
    • How to Easily Bridge Two SXT's

        Using this guide, you will easily able to bridge two MikroTik SXT devices together to transparently join two networks or two buildings together. You can download the PDF of this guide HERE .