my goal is to create a vlan and assign it to a bridge interface.
Is there any difference between this method
Code: Select all
interface bridge add name=bridge-trunk protocol-mode=rstp
interface bridge port add interface=ether5 bridge=bridge-trunk
interface vlan add name=vlan-100 interface=bridge-trunk vlan-id=100
interface vlan add name=vlan-200 interface=bridge-trunk vlan-id=200
Code: Select all
/interface ethernet switch egress-vlan-tag add \
tagged-ports=ether20 vlan-id=100
/interface ethernet switch egress-vlan-tag add \
tagged-ports=ether20 vlan-id=200
/interface ethernet switch ingress-vlan-translation \
add ports=ether20 customer-vid=0 new-customer-vid=200 sa-learning=yes