Can you help me figure out how to make a configuration for this scenario?
I have a device that has a management vlan of 100.
My laptop does not support VLANs
I want to put a RouterBoard in between the two devices with a bridge and tag all the packets coming from the laptop to the device with the management vlan with a vlan id of 100. How can I configure the routerboard to do this?
In this scenario (Ether1/Ether2 being your bridge Mikrotik) you’d create a vlan interface on Ether2 with vlanID on 100, then create a bridge interface, and add Ether1 and Vlan100 interface, so you are being bridged straight into the VLAN tagged interface. This will tag/strip for your laptop.
This approach is strongly discouraged since 6.41
Despite the fact VLAN interface supports L2 and can be bridged, It should not be used that way unles really necessary. Reason is, that it will simply tag everything including BPDU etc…
Bridge now supports VLAN tagging so you can relatively easily achieve tagging purely with the bridge between Ether1 and Ether2 where you configure Ether2 as tagged (trunk) and Ether1 as untagged (access) ports…
On the page I linked, there is presented code for correct solution so all you need is adjust it to your needs (change VLAN id and )
I managed to make this work using the not advised method. However, I am now trying to do it correctly as reccoemended and I just am not getting it right.
Basically, in this lab I want to get R1 (192.168.100.1) to ping R3 (192.168.100.2).
R2 has the bridge setup.
R1 e3 is connected to R2 e3 via ethernet
R2 e4 is connected to R3 e4 via ethernet
Here is the config, can you spot where i’m going wrong.
Thanks
R1
[admin@R1] > /interface ethernet print
Flags: X - disabled, R - running, S - slave
# NAME MTU MAC-ADDRESS ARP
0 R ether1 - Internet 1500 0C:83:4F:31:99:00 enabled
1 R ether2 1500 0C:83:4F:31:99:01 enabled
2 R ether3 - R1 --> R2 1500 0C:83:4F:31:99:02 enabled
3 R ether4 1500 0C:83:4F:31:99:03 enabled
4 R ether5 1500 0C:83:4F:31:99:04 enabled
[admin@R1] > /interface vlan export verbose
# feb/18/2019 11:37:38 by RouterOS 6.43.8
# software id =
#
#
#
[admin@R1] > /ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 D 192.168.49.137/24 192.168.49.0 ether1 - Internet
1 192.168.100.1/24 192.168.100.0 ether3 - R1 --> R2
[admin@R1] > /interface bridge export verbose
# feb/18/2019 11:37:38 by RouterOS 6.43.8
# software id =
#
#
#
/interface bridge settings
set allow-fast-path=yes use-ip-firewall=no use-ip-firewall-for-pppoe=no use-ip-firewall-for-vlan=no
[admin@R1] >
Which essentialy state that ether3 (connection towards R1) should be trunk with frames tagged with VID=100.
Then on R1 you have this:
Yup, that’s right, nothing about VLANs. Which would be fine if you connected R1 to ether4 on R2 (which is set up as access port for VLAN with VID=100).
The last line actually says you don’t want to deal with any VLAN on this device. The second port on /interface bridge port, adding vlan1 virtual VLAN interfaceback to the bridge just loops all the traffic around (you configured vlan1 interface in /interface vlan and no other playing with it should happen).
Configuration on R3, regarding ether4, should be same as for ether3 on R2 … with addition that bridge1 should also be tagged member of that VLAN so that vlan1 interface would actually start seeing tagged frames with VID=100.
And that’s not the end of story, your config example shows mighty lack of VLAN understanding. Either in general or at least how things are handled in ROS. In later case have a look at this topic.
You are correct. I really don’t get it in ros at the moment. I’m trying to figure it out.
Imma go and check out your linked topic. Would someone give me a correct config for this lab so that I can see actually how this should be done and have a working example to play with?
Any and all help given really is appreciated as I work to crack the back of this.