mikrotik vlan creation question

hi,


my goal is to create a vlan and assign it to a bridge interface.

Is there any difference between this method

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

and this


/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

Hello,

I am no expert here but I believe that creating a bridge and using ports will use the CPU.

Using your second method means using the switch chip which should be faster as it does not use the CPU.

This is described somewhere on the wiki.

Regards, Dave.