vlan configuration – Setting pvid using cli commands


Hi, we are in need to set pvid for a vlan(either at creation time or update after creating vlan). CLI is preferable.
Our environment, We have both Cumulus 3.0.0 and 3.2.0 Linux.


Thanks in advance

2 replies

Userlevel 4
With NCLU:
net add bridge-pvid

With Native Linux Commands:
bridge vlan add vid untagged pvid dev

vagrant@switch:mgmt-vrf:~$ sudo bridge vlan add vid 100 untagged pvid dev swp1
vagrant@switch:mgmt-vrf:~$ bridge -c vlan show swp1
port vlan ids
swp1 1-99
100 PVID Egress Untagged
101-200
bridge None
vagrant@switch:mgmt-vrf:~$ sudo bridge vlan add vid 150 untagged pvid dev swp1
vagrant@switch:mgmt-vrf:~$ bridge -c vlan show swp1
port vlan ids
swp1 1-99
100 Egress Untagged
101-149
150 PVID Egress Untagged
151-200


Thanks a lot sean.

Reply