VLAN sub-interfaces (802.1Q)

Created by Yuriy Andamasov, Modified on Fri, 05 May 2023 at 04:32 AM by Aslan Hajiyev

802.1Q VLAN interfaces are represented as virtual sub-interfaces in VyOS. The term used for this is vif. Configuration of a tagged sub-interface is accomplished using the configuration command set interfaces ethernet vif .

[email protected]# set interfaces ethernet eth1 vif 100 description 'VLAN 100'
[email protected]# set interfaces ethernet eth1 vif 100 address ''


ethernet eth1 {
description INSIDE
duplex auto
hw-id 00:0c:29:44:3b:19
smp_affinity auto
speed auto
vif 100 {
description "VLAN 100"

VLAN interfaces are shown as ., e.g. eth1.100:

[email protected]:~$ show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface IP Address S/L Description
----------- ------------- --- -----------
eth0 u/u OUTSIDE
eth1 u/u INSIDE
eth1.100 u/u VLAN 100
lo u/u
[email protected]:~$

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article