Has anyone already tried to connect from a container to VLANs.?
Code: Select all
/interface bridge
add name=bridge1
/interface vlan
add interface=bridge1 name=bridge1.10 vlan-id=10
add interface=bridge1 name=bridge1.20 vlan-id=20
add interface=bridge1 name=bridge1.99 vlan-id=99
/interface ethernet switch port
set 1 vlan-header=add-if-missing vlan-mode=secure
set 2 default-vlan-id=100 vlan-header=always-strip vlan-mode=secure
set 3 default-vlan-id=10 vlan-header=always-strip vlan-mode=secure
set 4 default-vlan-id=10 vlan-header=always-strip vlan-mode=secure
set 5 vlan-mode=secure
/interface bridge port
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether4
add bridge=bridge1 interface=ether5
/interface ethernet switch vlan
add independent-learning=yes ports=ether2,switch1-cpu switch=switch1 vlan-id=99
add independent-learning=yes ports=ether2,ether4,ether5,switch1-cpu switch=switch1 vlan-id=10
add independent-learning=yes ports=ether2,switch1-cpu switch=switch1 vlan-id=20
add independent-learning=yes ports=ether2,ether3 switch=switch1 vlan-id=100