Hello
Recently we had to use a RB2011 as Switch.
The goal was to manage the switch (RB2011) on VLAN 0 ( normally known as vlan 1 on others switches) … by putting default route and IP on master-port.
Receive at this port (master-port / UPLINK port) , tagged vlans. Make some ports untagged on respective VID and be able to orientate traffic to flow only on tagged and unttaged ports, on that vlan.
So, the configuration was like this:
UPLINK as ether5 (gigabit)
Management IP as VLAN 0 ( normally known as vlan 1 on others switches)
/interface bridge
add name=LAN protocol-mode=none
/interface bridge port
add bridge=LAN interface=ether10
add bridge=LAN interface=ether5
/interface ethernet
set [ find default-name=ether1 ] master-port=ether5 name=ether1
set [ find default-name=ether2 ] master-port=ether5 name=ether2
set [ find default-name=ether3 ] master-port=ether5 name=ether3
set [ find default-name=ether4 ] master-port=ether5 name=ether4
set [ find default-name=ether6 ] master-port=ether10 name=ether6
set [ find default-name=ether7 ] master-port=ether10 name=ether7
set [ find default-name=ether8 ] master-port=ether10 name=ether8
set [ find default-name=ether9 ] master-port=ether10 name=ether9
/interface ethernet switch vlan
add independent-learning=no ports=ether5,ether1 switch=switch1 vlan-id=12
add independent-learning=no ports=ether5,ether2 switch=switch1 vlan-id=15
add independent-learning=no ports=ether5,ether3 switch=switch1 vlan-id=8
add independent-learning=no ports=ether5,ether4 switch=switch1 vlan-id=7
add ports=switch2-cpu,ether7 switch=switch2 vlan-id=6
add ports=switch2-cpu,ether6 switch=switch2 vlan-id=11
add ports=switch2-cpu,ether8 switch=switch2 vlan-id=253
add ports=switch2-cpu,ether9 switch=switch2 vlan-id=14
/interface ethernet switch port
set 1 default-vlan-id=12 vlan-header=always-strip vlan-mode=secure
set 2 default-vlan-id=15 vlan-header=always-strip vlan-mode=secure
set 3 default-vlan-id=8 vlan-header=always-strip vlan-mode=secure
set 4 default-vlan-id=7 vlan-header=always-strip vlan-mode=secure
set 5 default-vlan-id=0 vlan-mode=fallback
set 6 default-vlan-id=11 vlan-header=always-strip vlan-mode=secure
set 7 default-vlan-id=6 vlan-header=always-strip vlan-mode=secure
set 8 default-vlan-id=253 vlan-header=always-strip vlan-mode=secure
set 9 default-vlan-id=14 vlan-header=always-strip vlan-mode=secure
set 12 vlan-mode=fallback
/ip address
add address=10.255.253.2/29 interface=ether5 network=10.255.253.0
/ip route
add distance=1 gateway=10.255.253.1
How can I use ether10 to be an “untagged” port on VID 12 ?
Is it possible?
I’ve tried to set like this:
/interface ethernet switch vlan
add ports=switch2-cpu,ether10 switch=switch2 vlan-id=3
/interface ethernet switch port
set 10 default-vlan-id=3 vlan-header=always-strip vlan-mode=secure
No success.
Any help would be appreciated. Thanks