vlan configuration – Setting pvid using cli commands

  • 1
  • Question
  • Updated 1 year ago

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.

<br>

Thanks in advance
Photo of Nivas

Nivas

  • 256 Points 250 badge 2x thumb

Posted 1 year ago

  • 1
Photo of Sean Cavanaugh

Sean Cavanaugh, Alum

  • 3,380 Points 3k badge 2x thumb
With NCLU:
net add <bridge-name> bridge-pvid <x>

With Native Linux Commands:
bridge vlan add vid <vlan#> untagged pvid dev <device its pvid for>

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
Photo of Nivas

Nivas

  • 256 Points 250 badge 2x thumb
Thanks a lot sean.