Router VLANs on bond and on individual interfaces.

CCR1009

Simply..
I want “BOND1” ETHER1,ETHER2
To have vlans tagged 10,20

I want Ether3 & 4 to have Vlan10 Untagged
I want Ether5 & 6 to have Vlan20 Untagged

I have read many articles and none seem to either have this scenario, or are incomplete.

TIA

Rob

That’s because the articles normally deal (but in-depth) with just one particular aspect of the configuration, and suppose that the reader can combine the information for different aspects to match his particular scenario.

  1. /interface bonding add name=james-bond slaves=ether1,ether2
  2. fine-tune the bonding features according to the Mikrotik Wiki as you need
  3. /interface bridge add name=my-bridge vlan-filtering=yes
  4. /interface bridge vlan
    add bridge=my-bridge vlan-ids=10 tagged=james-bond,my-bridge untagged=ether3,ether4
    add bridge=my-bridge vlan-ids=20 tagged=james-bond,my-bridge untagged=ether5,ether6
    /interface bridge port
    add bridge=my-bridge interface=james-bond
    add bridge=my-bridge interface=ether3 pvid=10
    add bridge=my-bridge interface=ether4 pvid=10
    add bridge=my-bridge interface=ether5 pvid=20
    add bridge=my-bridge interface=ether6 pvid=20

In the /interface bridge vlan section, the bridge itself must be listed as a tagged member port of itself only i you want to be able to place an own IP interface of the Mikrotik into the VLAN (by means of /interface vlan interface=my-bridge vlan-id=X.

Again, there are tons of other bridge- and vlan-filtering-related aspects to be fine-tuned, but the above is the minimum to make it work.