(1) RB2011UiAS-2HnD firewall/router/switch in Basement
(1) 260GS switch in 1st Floor
(1) 260GS switch in 2nd Floor
I’d like to set up trunk ports (dot1q) on each device. I just need one VLAN (using default). Unfortunately, I’m not sure how to do this in SwOS/RouterOS. I’m more familiar with Cisco switches. Can someone assist?
Thanks.
Creating a bridge is like creating a vlan in Cisco, plus creating the VIF interface as well.
Putting an IP address / dhcp server / etc on a bridge interface is like “interface vlan21 ; ip address x.x.x.x 255.255.255.0”
It knows nothing of vlan tags though. You put vlan interfaces on physical interfaces like ether1, etc - the vlan interface will output tagged frames, and will strip tags on ingress. If you connect them to a bridge, then voila - tagged vlan available on every port where you put a vlan interface and connected it to your bridge.
e.g.
/interface bridge
add name=brVlan10
add name=brVlan20
/interface vlan
add name=ether1.10 vlan-id=10 interface=ether1
add name=ether2.10 vlan-id=10 interface=ether2
add name=ether1.20 vlan-id=20 interface=ether1
add name=ether3.20 vlan-id=20 interface=ether3
/interface bridge port
add interface=ether1.10 bridge=brVlan10
add interface=ether2.10 bridge=brVlan10
add interface=ether1.20 bridge=brVlan20
add interface=ether3.20 bridge=brVlan20
It’s best not to connect a physical ether interface to a bridge, AND connect vlan sub-interfaces.
(at least in my experience)