Manually Putting All Switch Ports into a Single VLAN

Follow

Issue

The Cumulus Linux switch boots but nothing is coming up. I want every switch port (swp) enabled and in a single VLAN (simple switch mode). How can I do this?

Note: There is a script that can do this automatically, see the See Also section below.

Environment

  • Cumulus Linux 2.1 and newer

Resolution

Simply use the glob option. Configure a simple bridge that contains all ports by configuring the following in the /etc/network/interfaces file:

auto br0
iface br0
  bridge-ports glob swp1-52
bridge-stp on

Then run ifup on the bridge:

cumulus@switch$ sudo ifup br0

To look at all the bridge ports within the bridge, use the Linux brctl show command:

cumulus@switch$ brctl show br0
bridge name	bridge id		STP enabled	interfaces
br0		8000.4438390025d8	no		swp1
							swp10
							swp11
							swp12
							swp13
							swp14
							swp15
-cut off for brevity-

See Also

Have more questions? Submit a request

Comments

Powered by Zendesk