Setting up PVID

Does VyOS have the option to set up a PVID for an interface? If so, how can I set this up?

I’m assuming you mean a default vlan tag on a layer 2 link? Have a look at the bridge interface in the documentation.

1 Like

Awesome. Thank you. Another question for you. I have two scenarios:

Scenario 1:

Say you have two VLANs on br0


On br0, eth1 is VLAN 10
On br0, eth2 is VLAN 20.

Scenario 2:

No bridge or VLAN:

Is there anything wrong with scenario 2? What is the pros and cons of doing this? Obviously, traffic wouldn’t be tagged, but wouldn’t this be less overhead?

There’s nothing wrong with either scenario; what you are describing is the difference between a layer 2 and a layer 3 network. This article from and this one from Cisco might help explain it better than I can.

It is my understanding that layer 3 has less overhead, unless you have specifically designed hardware, such as ASICs in a switch. You will get more value out of VyOS using it at layers 3 and 4. A topology map might help understand the situation better.

Like most PC things, it depends. Layer 3 is optimal. How much traffic are you looking to push through and what are the hardware specs?

1 Like