Creating a vlan and enabling it for port participation(GVRP)

  • 1
  • Question
  • Updated 1 year ago
Could someone suggest, if the below command is the right way to create a VLAN that enables PORT Participation? or is there any way to set PORT participation for an existing VLAN (VLAN created already using ip link command)?

ip link add link eth2 eth2.103 type vlan id 103 <b>gvrp on</b> loose_binding on<br id="null"><br id="null">Thanks in advance.
Photo of Nivas


  • 256 Points 250 badge 2x thumb

Posted 1 year ago

  • 1
Photo of Sean Cavanaugh

Sean Cavanaugh, Alum

  • 3,360 Points 3k badge 2x thumb
I have not seen a customer configure GVRP nor do I think we support it.... However I think I can answer your question.

There is 3 ways to configure what you want... usually I recommend the persistent flat-file approach but you are already using the ip link add command....
  • Configuring the persistent configuration file to add an interface to the bridge by editing /etc/network/interfaces with nano/vi/zile
    auto <bridge-name>
    iface <bridge-name>
      bridge-ports <swpx>  <- you add the port here
  • Using linux commands 
    ip link set <swx> master <bridge_name>
    brctl addif <bridge_name> <swpx>
  • Using NCLU
    net add <bridge_name> bridge-ports swp1-2
It would be really helpful to know what your goal is?  Are you writing an application that runs on Cumulus linux?  Are you just trying to build a data center network?
Photo of Nivas


  • 256 Points 250 badge 2x thumb
Thanks Sean.
Yes, we are building an application(that runs on CumulusLinux) to configure all the aspects of the switch. We are flexible to use 3.0 / 3.2 versions