Setting up PVID

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

Hello,
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

Vlan10: 10.0.0.1/24
Vlan20: 172.16.1.1/24

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

Scenario 2:

No bridge or VLAN:
eth1: 10.0.0.1/24
eth2: 172.16.1.1/24

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 fs.com 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.

Edit:
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