Is there any difference between these two DSA configuration?

First one

ip link add link lan1 name vlan100 type vlan id 100
ip link set dev vlan100 up
ip addr add 192.168.100.1/24 dev vlan100

Second one

bridge vlan add dev lan1 vid 100 master
bridge vlan add dev br-lan vid 100 self
ip link add link br-lan name vlan100 type vlan id 100
ip link set dev vlan100 up
ip addr add 192.168.100.1/24 dev vlan100

They all work as expected, but I'm curious about which one is better.

1 Like

Even when several lan ports are attached to a bridge, the first configuration also work as expected.