I need an example of a configuration that places all ports in the switch in L2 forwarding mode and all in the same VLAN.
- Cumulus Linux 2.1
generate_interfaces script to generate a configuration tailored to the local switch.
[email protected]$ sudo su -c "/usr/share/python-ifupdown2/generate_interfaces.py -b > /etc/network/interfaces.d/bridge-untagged"
Examine the contents of the generated example:
[email protected]$ cat /etc/network/interfaces.d/bridge-untagged
Note: The generated example does not have STP enabled. To enable STP, edit the
bridge-untagged file and add
bridge-stp on to the configuration:
iface bridge-untagged bridge-stp on bridge-ports \ ...
If desired, include the example configuration in the active configuration by sourcing it from
[email protected]$ sudo su -c "echo source /etc/network/interfaces.d/bridge-untagged >> /etc/network/interfaces"