Compare Traditional Bridge Mode to VLAN-aware Bridge Mode
The Cumulus Linux bridge driver operates in two modes: VLAN-aware and a traditional Linux mode. There are many minor syntax differences between the two modes, outlined below. However, the following behaviors apply no matter which mode you use for the driver:
- Network interfaces configuration is in the
- Both modes support Spanning Tree Protocol (see the example below).
- You manage interfaces configured with both modes with
The reasons why you would use VLAN-aware mode for bridges are:
- Scale: The VLAN-aware mode can support 2000 concurrent VLANs while the traditional mode supports only 200 concurrent VLANs.
- Simplicity: VLAN-aware mode has a simpler configuration.
The only reasons to use the traditional mode are:
- Familiarity with traditional Linux syntax.
- VXLAN support: As of Cumulus Linux 3.1, only VLAN-aware mode supports VXLANs. For VXLAN support on earlier releases, use traditional mode.
- PVSTP+ interoperability: The traditional mode currently runs an instance of spanning tree per bridge. The VLAN-aware STP mode is compatible with other types of spanning tree but only runs single instance MST. To achieve Per-VLAN STP/RSTP you must use the traditional bridge mode.
Two Trunks Containing 200 VLANs for swp1 and swp2
The output above is abbreviated. If you are creating a trunk in traditional mode, you must create 200 stanzas for the 200 interfaces. Remember, a bridge configured in traditional mode cannot have more than 200 VLANs.
Creating an SVI
An SVI is a switch VLAN/virtual interface, also known as a layer 3 VLAN interface.
The comparison above is not exactly apples to apples. If the traditional mode configuration was the only configuration applied to the switch, you would only have VLAN 10 traffic for swp1 and swp2 as indicated by the tags. However the VLAN-aware bridge driver has two trunks for 200 VLANs. This behavior is very different.
Creating Access Ports (AKA Untagged Ports)
The above illustrates how the traditional mode has no concept of VLANs, just untagged or tagged traffic. It's basically identical to the previous example except there is no
.10 after the switch ports here.
Two Trunks Containing Two VLANs with Spanning Tree Enabled
bridge-stp on option is identical for the two modes; however, you only need to specify it one time for VLAN-aware bridge mode.