HowTo Configure VLANs on Cumulus Linux

Version 3

    This post describes how to configure VLANs in Cumulus Linux OS.

    This post assumes that you already have Cumulus Linux installed on a Mellanox Spectrum™ switch.

     

    References

     

    Setup 1: Access VLAN Configuration

    1. Two servers connected to a Cumulus Linux switch.

    In this example we will use the two switch ports 5, and 6 (swp5, swp6).

     

     

    Make sure to have a valid licence installed for Cumulus Linux.

     

    Configuration

    1. Log into the switch using the following credentials:

    Username: cumulus

    Password: CumulusLinux!

     

    2. Switch to root user. Run sudo -i.

    Password: CumulusLinux!

    # sudo -i

    [sudo] password for cumulus:

     

    *****************************************************************

    Please send these support file(s) to support@cumulusnetworks.com:

    /var/support/cl_support__cumulus_20161018_211850.tar.xz

    /var/support/cl_support__cumulus_20161018_212948.tar.xz

    /var/support/cl_support__cumulus_20161018_213430.tar.xz

    /var/support/cl_support__cumulus_20161018_213607.tar.xz

    /var/support/cl_support__cumulus_20161018_213758.tar.xz

    /var/support/cl_support__cumulus_20161018_213924.tar.xz

    /var/support/cl_support__cumulus_20161018_220157.tar.xz

    *****************************************************************

     

    3. Open the file /etc/network/interfaces. Edit the bridge, swp5, and swp6 interfaces as follows:

    # bridge

    auto bridge
    iface bridge 

      bridge-vlan-aware yes 

      bridge-ports swp5 swp6 

      bridge-vids 100

     

    #swp5

    auto swp5

    iface swp5

      link-speed 100000

      mtu 1500

      bridge-access 100

     

    #swp6

    auto swp6

    iface swp6

      link-speed 100000

      mtu 1500

      bridge-access 100

     

    5. Apply the configuration. Run:

    # ifreload -a

     

    6. Check the link status. Run:

    # netshow interface

     

           Name    Speed    MTU    Mode       Summary

    -----  ------  -------  -----  ---------  ------------------------

    UP     lo      N/A      65536  Loopback   IP: 127.0.0.1/8, ::1/128

    UP     eth0    1G       1500   Mgmt       IP: 10.20.2.70/16(DHCP)

    ADMDN  eth1    0M       1500   Mgmt

    UP     swp5    100G     1500   Access/L2  Untagged VLAN: 100

    UP     swp6    100G     1500   Access/L2  Untagged VLAN: 100

    UP     bridge  N/A      1500   Bridge/L2  Untagged Members: swp5-6

                                              802.1q Tag: Untagged

                                              STP: RootSwitch(32768)

                                              Vlan Aware Bridge

     

    Setup 2: Trunk VLAN Configuration

    1. Two servers connected to a Cumulus Linux switch. In this example we will use two switch ports 5,6 (swp5, swp6).

     

     

    Make sure to have a valid licence installed for Cumulus Linux.

     

    Configuration

    1. Log into the switch using the following credentials:

    Username: cumulus

    Password: CumulusLinux!

     

    2. Switch to root user. Run sudo -i.

    Password: CumulusLinux!

    # sudo -i

    [sudo] password for cumulus:

     

    *****************************************************************

    Please send these support file(s) to support@cumulusnetworks.com:

    /var/support/cl_support__cumulus_20161018_211850.tar.xz

    /var/support/cl_support__cumulus_20161018_212948.tar.xz

    /var/support/cl_support__cumulus_20161018_213430.tar.xz

    /var/support/cl_support__cumulus_20161018_213607.tar.xz

    /var/support/cl_support__cumulus_20161018_213758.tar.xz

    /var/support/cl_support__cumulus_20161018_213924.tar.xz

    /var/support/cl_support__cumulus_20161018_220157.tar.xz

    *****************************************************************

     

    3. Open the file /etc/network/interfaces. Edit the bridge, swp5, and swp6 interfaces as follows:

    # bridge

    auto bridge
    iface bridge

      bridge-vlan-aware yes

      bridge-ports swp5 swp6

      bridge-vids 100

     

    #swp5

    auto swp5

    iface swp5

      link-speed 100000

      mtu 1500

      bridge-vids 100

     

    #swp6

    auto swp6

    iface swp6

      link-speed 100000

      mtu 1500

      bridge-vids 100

     

    5. Apply the configuration. Run:

    # ifreload -a

     

    6. Check the link status. Run:

    netshow interface

     

     

           Name    Speed    MTU    Mode       Summary

    -----  ------  -------  -----  ---------  ------------------------

    UP     lo      N/A      65536  Loopback   IP: 127.0.0.1/8, ::1/128

    UP     eth0    1G       1500   Mgmt       IP: 10.20.2.70/16(DHCP)

    ADMDN  eth1    0M       1500   Mgmt

    UP     swp5    100G     1500   Trunk/L2   Untagged VLAN: 1

                                              VLANS: 100

    UP     swp6    100G     1500   Trunk/L2   Untagged VLAN: 1

                                              VLANS: 100

    UP     bridge  N/A      1500   Bridge/L2  Untagged Members: swp5-6

                                              802.1q Tag: Untagged

                                              STP: RootSwitch(32768)

                                              Vlan Aware Bridge