FAQ

Questions and answers.

Taken from the os-spbm manual, which is installed with the package in /usr/local/share/doc/spbm/ and published on pkg.spbm.se, of the same build as the packages there.

Concepts

What does os-spbm do?

It brings SPBM (802.1aq / 802.1Q Shortest Path Bridging, MAC mode) to OPNsense. The firewall joins an SPB fabric of ALE OmniSwitch or Extreme VOSS / Fabric Engine switches as a bridge of its own. It runs IS-IS on its backbone links, and each SPBM service (I-SID) appears as an interface, spbmN, which you assign and use like any other.

   customer side                  SPB backbone (B-VLANs)                 customer side
  +---------+   +-------------+       +-----------+       +-------------+   +---------+
  | host A  |---| BEB         |=======| BCB       |=======| BEB         |---| host B  |
  +---------+   | (OPNsense)  | B-VID | (switch)  | B-VID | (switch)    |   +---------+
                | spbm1 =     | 4051  | forwards  | 4051  | I-SID       |
                | I-SID 1000100       | on B-MAC  |       | 1000100     |
                +-------------+       +-----------+       +-------------+
        customer frame  ->  [ B-DA | B-SA | B-TAG | I-TAG (I-SID) | customer frame ]  ->  customer frame

What do the terms mean?

BEB
Backbone Edge Bridge: where a service starts and ends. The firewall is a BEB for each service you add.
BCB
Backbone Core Bridge: forwards backbone frames by B-MAC without looking inside. The firewall can be one too, if "No transit" is off.
I-SID
The 24-bit service identifier. The same I-SID on every bridge is one Layer 2 segment.
B-VLAN
A backbone VLAN. Each service is carried on one B-VLAN. Each B-VLAN has its own tie-break for equal paths (ECT algorithm), so services on different B-VLANs can take different paths.
B-MAC
A bridge's backbone MAC address; on the firewall it is the System ID.
802.1ah
The encapsulation, which adds 22 bytes to every customer frame (B-DA, B-SA, B-TAG, I-TAG).
IS-IS
ISIS-SPB tells every bridge the topology, each bridge's B-MAC and which I-SIDs it serves. Every bridge computes the same shortest paths from it.

SPBM, SPBV and VXLAN

Isn't SPB limited to 4094 VLANs, with every MAC in every switch?

That describes SPBV, not SPBM. 802.1Q defines two modes of Shortest Path Bridging. SPBV, the VLAN mode, keeps ordinary 802.1ad tags and gives each bridge its own VLAN ID per VLAN, so the VLAN ID space runs out fast and every bridge learns every customer MAC. As far as we know, no switch sold today implements it: the one commercial implementation we know of, in Enterasys's (later Extreme's) S-, K- and 7100-Series, has been discontinued, and Extreme's fabric is SPBM. SPBM, the MAC mode, encapsulates frames MAC-in-MAC (802.1ah): the core forwards on the bridges' backbone MACs only, which IS-IS installs, customer MACs are learned only at the edge, and services are I-SIDs with 24 bits, about 16 million. ALE OmniSwitch, Extreme Fabric Engine and os-spbm use SPBM; os-spbm does not implement SPBV.

How does SPBM compare with VXLAN and EVPN?

Both carry Layer 2 services with a 24-bit ID (I-SID, VNI) over a shortest-path fabric. The big difference is how much there is to run. SPBM is one protocol, IS-IS, directly on Ethernet links: it carries the topology, the paths, which bridge has which service, and the multicast trees, and adjacencies come up without any IP addressing of the fabric. VXLAN with EVPN needs a routed IP underlay with its own addressing and IGP, BGP sessions or route reflectors for the overlay, and ingress replication lists or underlay multicast (PIM) for broadcast and multicast.

A new service shows it best: in SPBM it is the I-SID on the edge bridges that have members, and the core is not touched. In EVPN it is a VNI, its VLAN mapping, an EVPN instance with route distinguisher and route targets, and a replication list or multicast group, on every VTEP that carries it.

VXLAN's strengths are real: it runs over any IP network, including routed ones between sites and data centres, it gets per-flow ECMP from the underlay, and nearly every vendor has it. SPBM's are a campus fabric with far less to configure, document and keep consistent, a 22-byte header instead of 50 (IPv4) or 70 (IPv6), and paths that are symmetric and congruent: unicast and multicast, both ways, take the same path, which is what a stateful firewall wants.

Why put the firewall in the fabric rather than at its edge?

At the edge, a switch ends each service and hands it to the firewall on a VLAN trunk: every service needs a VLAN, a mapping on the switch and an interface on the firewall, kept in step by hand, and for routed VPNs also an address and a routing session per VPN. Redundancy toward the fabric then needs a link aggregate across two switches: MC-LAG, a stack or a virtual chassis. Inside the fabric, the firewall is a bridge of its own: each I-SID arrives as an interface spbmN, it reaches wherever the fabric carries the service, and the firewall sees the topology itself (SPBM › Topology). Redundancy is just more links: each SPB link to another switch is an adjacency of its own, and the fabric routes around a failed one in under a second, with no link aggregation to set up. With IP VPN it takes part in the switches' routed VPNs directly.

Installation

How do I add the package repository?

Once per firewall, from the shell: OPNsense has no page for adding another vendor's repository. Beta sites get a setup block with their login. Enable SSH first (System › Settings › Administration, Secure Shell: tick Secure Shell Server, Permit root user login and Permit password login or add your SSH key, choose the Listen Interfaces, Save). Then ssh root@<firewall> and paste the block. It installs the repository's public key and settings, checks the key's fingerprint and runs pkg update -r spbm. SSH can be switched off again afterwards; the repository stays. Without SSH, use the console's option 8) Shell, where pasting is harder.

How do I check the repository key?

The packages are signed. The SHA-256 fingerprint of the repository's public key is 85e8b6775263812ac646518a359eb341155b306e5676403290f33ee51c21d156, also on the install page on pkg.spbm.se. The setup block prints it beside the expected one; check it yourself with sha256 -q /usr/local/etc/ssl/spbm-repo.pub. If they differ, do not install, and tell us.

How do I install and upgrade?

Under System › Firmware › Plugins, os-spbm appears after "Click to view the community plugins" at the end of the list: OPNsense lists plugins from other vendors' repositories as community (tier 4) and hides them by default. From the shell: pkg update && pkg install os-spbm. The first install also pulls FRR's libraries from OPNsense's own repository. Then set it up under SPBM › Settings: the fabric profile, the SPB interfaces, Enable and Apply; SPBM does nothing until it is enabled. On an HA pair, install on both and tick SPBM fabric and services (and SPBM IP VPN if used) under System › High Availability. Upgrade under System › Firmware › Updates, or with pkg upgrade os-spbm spbm spbm-frr. Before an OPNsense major upgrade, check that SPBM packages for it exist.

Does an upgrade interrupt traffic?

An upgrade restarts SPBM. If the kernel module changed, it is reloaded, which means a few seconds without SPBM traffic. The spbmN devices, VLAN interfaces on them and their addresses come back by themselves. With CARP demote enabled, the backup takes over first. On an HA pair, upgrade the backup first.

What happens after an OPNsense update that changes the kernel?

if_spbm.ko is built for one OPNsense kernel. After an update that changed the kernel, SPBM says that its kernel module was built for the previous one: a warning on every SPBM page, in the health check (and so over the API and SNMP) and in the log at start, with whether the repository already has a build for the new kernel. Install the matching spbm build.

How do I remove it?

Remove the assignments and bridge memberships of the spbmN interfaces first. pkg cannot refuse a removal; it only warns.

Firewall and fabric settings

Should I set the System ID?

Usually not. Left empty, it is derived once from the first SPB interface's MAC (locally administered) and kept on this firewall only. HA sync and configuration backups never copy it to another firewall, and adding or removing SPB links does not change it. Set a fixed value (xxxx.xxxx.xxxx) only if the fabric needs a known one; it must be unique in the fabric, and its first byte must be even: an odd one would be a multicast B-MAC, so it is refused at Save. Changing it restarts the fabric.

Which interfaces can be SPB interfaces?

The ports toward other SPB bridges, chosen as devices (vtnet2, igb2). Leave them unassigned under Interfaces › Assignments: SPBM does not need it, and an unassigned port cannot get an address or firewall rules by mistake. Bridge members and VLAN parents cannot be used, because an SPB interface carries only SPB. Link aggregates (LAGG) are not supported. An SPB interface accepts only SPB frames, IS-IS, CFM and the standard link-local control frames (LLDP, LACP, STP). Anything else is dropped and counted as "not SPB on SPB link" in spbmctl stats. If that blocks something you need, set sysctl net.link.spbm.drop_notspb=0. Adding or removing an SPB interface takes effect without restarting the fabric. VLAN hardware offloading does not matter: SPBM writes the B-VLAN tag of its frames itself, on every network card.

The "not SPB on SPB link" count keeps rising.

Usually it is the switch port's own untagged VLAN (VLAN 1 by default on AOS: its ARP, IPv6 router advertisements and other broadcasts) or a vendor discovery protocol such as ALE's AMAP. It is harmless, but better stopped on the switch. To see what it is: tcpdump -nei vtnet2 -c 20 not vlan (untagged frames only).

Does LLDP work on SPB interfaces?

Yes, both ways, with the os-lldpd plugin, unassigned ports included: the firewall lists the switch and its port, and the switch lists the firewall, its port and B-VLAN 4000. AOS sends to two LLDP addresses, so lldpcli show neighbors shows the switch twice on one port. LLDP received in a service is never carried across the fabric.

Will other bridges route through the firewall?

Not by default. "No transit" (overload, 802.1Q 27.8.1) is on by default: other bridges never route through the firewall but still reach its services. Turn it off only if the firewall should forward between switches.

How do I make traffic prefer the faster links?

With link metrics (advanced; shown as soon as two or more SPB interfaces are chosen). Traffic takes the path with the lowest total cost. Suggest from link speed fills them in from the speed each link reports, on the profile's scale: under the ALE profile ALE's SPB design guidelines (100,000,000 divided by the speed in Mb/s, so 10 Gb/s = 10,000), under the Extreme profile the VOSS / Fabric Engine auto metric (10 Gb/s = 200). Virtual NICs often report no speed; then type the values. Set the switches' links on the same scale. Both ends of a link announce a metric and every bridge counts the higher one (802.1Q 28.5), so raising it on the firewall is enough to steer the fabric away from a link; to prefer a link more, lower the metric on the switch. A change is live: the adjacency stays, but traffic on a path that moves can lose a few frames while the bridges recompute (0.5 s measured on hardware).

How fast do the switches notice a hung firewall?

A cable pull or a stopped switch port is noticed at once. A firewall that falls silent while its link stays up (a hung firewall, or a virtual machine whose host port stays up) is dropped only after the IS-IS hold time it announces: 30 s by default. Neighbour failure detection (SPBM › Settings, advanced) shortens it to 9 s or 3 s; 3 s suits a firewall running as a virtual machine and costs one small hello per second on each SPB link. It is set per firewall and takes effect live. How fast the firewall notices a silent switch is set on the switch (27 s by default on an ALE OmniSwitch).

What backbone MTU do I need?

The same as the switches. 802.1ah adds 22 bytes, so 1522 carries 1500-byte customer frames; AOS's default is 1524. A customer VLAN tag needs 4 bytes more: for 1500 bytes behind a tag, the backbone MTU must be at least 1526 on every bridge.

What do the fabric profiles set?

Choosing a profile fills in what the switches of the fabric need. Values you changed yourself stay, shown as "Custom". Changing the profile restarts the fabric.

ALE OmniSwitch AOSExtreme VOSS / Fabric Engine
B-VLANs4000–4003 (ECT 1–4)4051–4052 (ECT 1–2)
Control B-VLAN40004051 (the primary B-VID)
Area00.000049.0001
IS-IS PDUs sent toAllL1 01-80-C2-00-00-14AllIS 09-00-2B-00-00-05
MCID in hellosOmittedSent (VOSS echoes it)
B-VLAN % for new services42

Which B-TAG does the fabric use?

0x8100, the TPID ALE OmniSwitch and Extreme VOSS / Fabric Engine use by default, so the firewall joins their fabrics without changes on the switches. The standard's B-TAG TPID, 0x88A8, is available as an advanced setting for fabrics that use it. The setting must be the same on every bridge, and changing it restarts the fabric.

Which priority do SPBM's frames get in the fabric?

IS-IS frames go out at 802.1p priority 6, as the switches send theirs, so a congested SPB port keeps the adjacency. Service frames (advanced, per service, in the B-TAG and the I-TAG): from the customer tag, the default, as an ALE access port, so untagged frames and all routed traffic stay at 0; from the DSCP (EF voice 5, AF41 video 4, CS1 1); or fixed 0–7. A firewall rule's "Set priority" always wins, which gives one kind of traffic a class without changing the whole service. Values taken from the traffic are capped at 5, below IS-IS. Received frames are accepted at any priority; their fabric priority is not copied to the customer side. Check with spbmctl priority spbmN.

Services and multicast

How do I add a service?

A service is one I-SID on the firewall, in the range 256–16777214 (802.1Q reserves 0–255). "From the fabric" lists the services other bridges already have; choosing one fills in its I-SID, B-VLAN and multicast mode. The service appears as spbmN. Assign it under Interfaces › Assignments, then give it addresses, DHCP or firewall rules, or put it in a bridge. Adding or removing a service takes effect without restarting the fabric.

Head-end or tandem multicast?

This setting decides how broadcast, unknown unicast and multicast (BUM) frames reach the other members of the service. Head-end is AOS's default: simple, but it costs bandwidth with many members. Tandem sends one copy per link. Extreme VOSS always uses tandem, so under the Extreme VOSS profile a new service starts as tandem. All members of an I-SID must use the same mode, or some miss part of the BUM traffic; Status › Services shows "mixed" in red.

 head-end (T=R=0)                          tandem (T=R=1)
 the sending BEB copies each frame         one copy per link, on a tree
 once per member, as unicast:              rooted at the sending BEB:

   BEB-A --copy--> BEB-B                     BEB-A ----> BCB --+--> BEB-B
     |  \--copy--> BEB-C                                       +--> BEB-C
     \----copy---> BEB-D                                       +--> BEB-D

How are services spread over B-VLANs?

"B-VLAN % for new services" proposes the B-VLAN of a new service from its I-SID, so that each B-VLAN's tie-break carries its share. You can change it per service, and existing services keep theirs. Under the ALE profile (N = 4, the B-VLANs 4000–4003) it is entry (I-SID mod N) of the B-VLAN list: I-SID 10000 → 4000, 10001 → 4001, 10002 → 4002, 10003 → 4003. The switches must have the service on the same B-VLAN. Under the Extreme profile (N = 2) it is entry ((I-SID + 1) mod N), which matches how VOSS transmits: odd I-SIDs on 4051, even ones on 4052. Services picked "From the fabric" keep the fabric's B-VLAN.

Customer VLAN tags

Why do some frames arrive tagged?

The frame inside the 802.1ah header is the customer's frame, with or without its VLAN tag, depending on the switch:

Switch, service settingFrame inside the I-TAG
ALE AOS, vlan-xlation enableUntagged
ALE AOS, without vlan-xlationAs received on the access port (SAP), tags included
Extreme VOSS, VLAN mapped to the I-SIDTagged with the switch's VLAN
This firewallUntagged

What does "Strip customer tags" do?

It removes up to two customer tags (0x8100, 0x88A8) from every frame received for the service, so spbmN always sees untagged traffic, whichever switch sent it. One address on the interface can then serve both a VOSS client on VLAN 100 and an untagged ALE host. The cost is one EtherType comparison per received frame, and nothing when the option is off.

Can I use a VLAN device instead?

Yes, for a service whose frames all arrive tagged. Create a VLAN device with parent spbmN and the customer tag, assign it, and give it the address. That serves only tagged senders; an AOS member sending untagged needs "Strip customer tags" instead.

Mixed ALE and Extreme fabrics

What must agree in a mixed fabric?

  • On OPNsense, choose the Extreme VOSS profile.
  • On AOS, use the same B-VLANs and ECT IDs, spb isis area-address 73.0.1 (49.0001 entered in decimal), and spb isis control-address AllIS, because VOSS only takes IS-IS frames sent to AllIS.
  • Use tandem multicast for services, on the B-VLAN VOSS transmits the I-SID on.

Which B-VLAN does VOSS use for an I-SID?

VOSS advertises each I-SID on every B-VLAN. It transmits on one and only receives on the others. In the lab, odd I-SIDs were transmitted on the primary B-VLAN (4051) and even ones on the secondary (4052). Put an odd I-SID on 4051 and an even one on 4052, on AOS too. Status › Services lists VOSS's receive-only entries as "receive only"; they are not an error.

HA with CARP

How do I set up an HA pair?

Assign the spbmN interfaces identically on both firewalls before the first sync. OPNsense's HA sync copies rules, NAT, DHCP and CARP addresses by interface key (opt5), never the assignments themselves. If spbm6 is opt5 on the primary, it must be opt5 on the backup too. A firewall whose assignments differ from its peer's shows a warning on SPBM › Services and SPBM › Settings.

Where should the CARP VIP go?

On the spbmN interface (or its VLAN device) itself, not on a bridge that contains it. A bridge stays up while spbmN is down, so CARP would not notice that the fabric is gone.

What does CARP demote do?

It is off by default. When on, it demotes the firewall through OPNsense's CARP service status while SPBM is not ready. After a start, the master then does not take the VIPs back before its spbmN interfaces are configured, and before a planned stop or reboot the backup takes over while this firewall still forwards. Demotion is global: it moves every VIP. Set it the same on both firewalls.

How fast is failover?

Measured in the lab (two virtual OPNsense firewalls, vAOS switches, CARP advbase 1 and skew 100, a host pinging the VIP every 0.1 s), except where hardware is named. CARP has not been measured on hardware yet. Take the figures as what to expect, not as a guarantee.

EventCARP demoteTraffic to a VIP on spbmN
Planned stop of the master (System › Power, service spbm stop)OnNo loss
The sameOffAbout 3.4 s
The master returns (preemption)OnNo loss
The sameOffUp to 1 s, then about 3.5 s when OPNsense reconfigures the interface
Unplanned loss of the master (power, crash, all SPB links)EitherAbout 3.4 s, CARP's floor
One SPB link of several fails, with loss of carrierEither0.4–0.8 s, back in 0.1–0.4 s (OPNsense on hardware with an Intel E810, and a virtual firewall between hardware OmniSwitches); CARP is not involved
A link metric changed so that traffic moves to another linkEitherUp to about 0.5 s (OPNsense on hardware)
A link fails but keeps its carrierEitherUp to 30 s, the IS-IS hold time (no BFD or CFM); 9 s or 3 s for the switches to notice the firewall with Neighbour failure detection

When the master loses the fabric, nothing it sends reaches the backup, so the backup waits its master-down interval. That holds for any CARP VIP whose master loses its network; the only lever is the backup's skew. Keep preemption on when using CARP demote.

Sizing

What does a large fabric cost?

The cost is time per change, not memory. On each change in the fabric (a link, a bridge or a service), the firewall recomputes its paths, and this grows roughly with the square of the number of bridges. Routine refreshes trigger no recomputation, and an idle fabric costs practically no CPU at any size. Traffic keeps flowing on the old tables during a recomputation; the time is how long a failover inside the fabric waits for this firewall.

Measured examples

A realistic campus model on an Intel Xeon at 2.1 GHz, with the real isisd, spbmd and data path:

FabricBridgesI-SIDs (on firewall)Memory (peak)Per change, 1 corePer change, 4 cores
Branch / small site56100 (70)45 MiB< 0.05 s< 0.05 s
Small campus256300 (150)80 MiB~0.1 s~0.1 s
Campus506500 (200)120 MiB~0.35 s~0.3 s
Large campus10061000 (400)250 MiB~1.1 s~0.7 s
Very large20062000 (800)430 MiB~3.3 s~1.9 s
Tested maximum40064000 (1600)880 MiB> 10 s~5 s

What hardware do I need?

BoxFabric it suits
OPNsense minimum (2 cores, 3–4 GB), low-power CPUUp to about 250 bridges and 300 I-SIDs
Mid-range: 4 cores, 4–8 GBUp to about 500–1000 bridges and 1000 I-SIDs
Large: 4+ fast cores, 8 GBAbout 2000 bridges and 2000 I-SIDs

The times above are for a 2.1 GHz Xeon core. A low-power appliance core can be several times slower, so budget at least twice the one-core time. If failover inside the fabric matters, keep the fabric to the size where a change takes under a second. Measure on your own box with spbm-dataplane bench.

How much memory do learned customer MACs use?

About 64 bytes each in the kernel. With the default limit of 2000 per service, a full service takes about 130 KB. On services with hundreds of members, prefer tandem multicast, for the CPU as much as for the links. Throughput: the data path spreads SPB traffic from several cores over the link's send queues; one sending core reached about 1.2 million frames/s, 13 Gb/s of full-size frames, measured on an Intel Xeon at 2.1 GHz with an Intel E810. The limit is the CPU core, not the card. End-to-end throughput through a fabric is not measured yet.

Troubleshooting

Where do I look first when a link is missing?

SPBM › Status › SPB links. It lists every configured SPB link, also those without an adjacency: carrier, MTU, the IS-IS state, the neighbour, whether it carries SPB, and in words what is wrong (no carrier, no hellos from the other end, stuck in Initializing, B-VLANs or ECT differ). Before SPBM runs, every tab says so, with the next step.

The adjacency is stuck in Initializing.

The neighbour does not accept this bridge's hellos. Check the profile (PDU destination address), the area and the B-VLANs. A capture shows it: tcpdump -i <SPB interface> -e -nn 'vlan <control B-VLAN> and isis'.

The adjacency is Up, but SPB is "operationally down".

The neighbour's B-VLANs or ECT IDs differ from the firewall's. MCID "diff" means its B-VLAN set differs. MCID "none" is normal with AOS and with VOSS.

A service passes no traffic.

tcpdump -i spbmN -e -nn shows whether frames arrive, and whether they are tagged. spbmctl stats shows delivered and encapsulated frames and drops, and spbmctl fdb shows the learned customer MACs.

Can it run alongside the FRR plugin (os-frr)?

Yes. SPBM runs its own FRR in /usr/local/spbm, with its own sockets and no TCP listeners, and it never touches os-frr's routes. For SPBM's FRR, use /usr/local/spbm/bin/vtysh --vty_socket /var/run/spbm.

Where are the logs?

spbmd, the data path and FRR's IS-IS log through syslog into /var/log/spbm/, shown under SPBM › Log File and rotated by OPNsense like its other logs. While a fabric flaps, at most 10 state changes a minute are logged, then a count of those left out.

Monitoring

How do I monitor SPBM?

One health check covers it: SPBM running, the SPB links, the data path, spbmd's alerts and the services. /usr/local/opnsense/scripts/spbm/health.py prints one line, as a Nagios plugin does, and exits 0 (OK), 1 (warning), 2 (critical) or 3 (unknown); with --json it gives every check as JSON. For Monit (Services › Monit), add a custom service with that path and a test status != 0. Systems that poll an API (Zabbix, PRTG, scripts) can use GET /api/spbm/diagnostics/health with the key of a user with the privilege SPBM: Status and Topology.

Can I read it over SNMP?

Yes, v2c and v3, through the SNMP plugin os-net-snmp, for NAV, OmniVista, PRTG or Zabbix. Tick Health over SNMP in SPBM › Settings (advanced mode). The status (0–3), the line and the counts of links, adjacencies and services are then at fixed OIDs of NET-SNMP-EXTEND-MIB, extend name spbm; poll nsExtendResult."spbm" and alarm when it is above 0. Access is the SNMP plugin's own community and users. SPBM sends no traps. The SPB links and service interfaces have interface counters (IF-MIB) like any interface, and the SPB links describe themselves ("SPBM link", "SPBM IS-IS, B-VLAN 4000") in ifconfig and as ifAlias.

How do I check the kernel module?

sh /usr/local/share/doc/spbm/kmod-check.sh (as root) checks it in the running kernel on a scratch interface, with every setting and the kernel's messages, without interrupting SPBM. Send its output with a report. env RELOAD=1 also reloads the module, as an upgrade does (a few seconds without SPBM traffic).

Is there a man page?

Yes: man spbm lists the commands (health check, SPBM's vtysh, the service interfaces, configctl spbm actions, kmod-check.sh, soak.sh) and the files; man spbmctl covers the data path's counters, learned MACs and priorities, and man if_spbm the kernel data path itself.

Topology map

What does SPBM › Topology show?

The fabric as this firewall sees it: the bridges and links in its IS-IS database, with link costs, services, IP VPN routes and the hosts this firewall has learned. This firewall is drawn in amber, other bridges as circles, and bridges in overload (No transit) as squares. It is read only, needs the privilege "SPBM: Status and Topology (read only)", and sends nothing into the fabric.

Is it live, and are the paths measured?

Neither. The map is read when the page opens and with the refresh button. Paths are computed by this firewall's data path from the fabric's database, with the ECT algorithm of the B-VLAN. Bridges that follow 802.1Q compute the same path, but a switch that forwards otherwise, or a link that is up in IS-IS but drops traffic, does not show here. That would need CFM linktrace, which os-spbm does not implement.

What can I find on it?

A bridge (name, System ID or B-MAC), a host (its MAC, or its IP address if it is in this firewall's ARP/NDP table on a service interface), an IP address or prefix (the IP VPN routes that cover it, longest first), or an I-SID. Hosts are found only in services this firewall has, and only while their MACs are in its tables (300 s by default).

How do I show a path?

Choose From, To and a B-VLAN and press Show path; or Pick on the map; or select a bridge and Shift-click a second one; or double-click a bridge for the path from this firewall. The Path tab lists it hop by hop with link costs. "All B-VLANs" draws every B-VLAN's path at once, side by side where they share a link: each B-VLAN has its own ECT algorithm, so equal-cost paths can differ.

What do the Checks report?

Findings from the same data, without test traffic. They point at things worth a look; they are not a verdict on the fabric:

  • SPB links that carry no SPB, or only one SPB link;
  • a single bridge whose failure would cut this firewall off from members of its services (ringed in orange);
  • unreachable members, services no other bridge has yet, and mixed multicast modes;
  • links whose two ends advertise different metrics, and bridges this firewall cannot reach;
  • IP VPN prefixes announced by more than one bridge (prefixes of this firewall and its HA peer are counted, not listed).

Does it work with large fabrics?

Fabrics of more than 250 bridges are laid out as rings of hops around this firewall, smaller ones by a force layout. In fabrics of more than 150 bridges a view shows only its own bridges. The drawing was tested in a browser with a generated fabric of 2,000 bridges. Nothing runs while the page is closed.

IP VPN In 0.9.0, off by default

What is IP VPN?

Routed VPNs over the fabric, in ALE OmniSwitch "SPB L3 VPN" format (AOS 8.9.R04 and later) only, tested with OmniSwitch hardware (routes in and out) and with vAOS 8.10 and 8.11 in GNS3. An HA pair, and the route tags and metrics of IPv6 routes, need AOS 8.11 or later on the switches. It is part of the os-spbm package and off by default. Switch it on under SPBM › Settings and set it up under SPBM › IP VPN, one VPN per I-SID. The firewall learns the switches' routes (IPv4 and IPv6, with metric and tag) into OPNsense's routing table and announces the routes you select. Traffic arrives on the VPN's spbmN interface, where firewall rules, NAT and logging apply.

Can a VPN take over the firewall's Internet traffic?

No. A default route from the fabric is not imported without a rule that accepts it, and OPNsense's own routes (connected networks, static routes, gateways) always win over fabric routes. The default the firewall announces into a VPN is injected, never its own WAN default.

How does it work with two firewalls?

IP VPN follows one chosen CARP group. The master announces metric M, the backup M + D, and the HA secondary adds 1, so the two never tie (a tie would make the switches spread traffic over both, which breaks NAT and stateful filtering). After a boot, an SPBM restart or an upgrade, the firewall announces the backup metric, even as CARP master, until its routes have been stable for 15 s (at most 2 minutes); the Routes tab says "Starting" meanwhile. With CARP demote, the CARP VIPs wait as well. If the master fails without its links going down (hung, behind a media converter, a VM), the new master announces 2 below its normal metric while the old master's routes are still in the fabric, so the routes move to it once CARP has failed over; the Routes tab says "Taking over" meanwhile. A single firewall needs no CARP settings.

How fast is IP VPN failover?

In the lab, CARP maintenance mode, an SPBM restart and a reboot of the master lost no ping, and neither did the old master's return. Unplanned loss of the master is not measured end to end yet: the switches move the routes to the backup as soon as they drop the old master's adjacency, so with the firewall cabled directly to the switch about CARP's 3.4 s is expected. Where the switch port stays up although the firewall is gone (a media converter in between, or a firewall running as a virtual machine), the new master's lower takeover metric moves the routes once CARP has failed over, instead of after the 30 s IS-IS hold time; this is not measured yet. The fabric's own paths through that link still wait for the hold time.

Do two firewall pairs need different pair tags?

Yes, unless sharing is intended. A firewall refuses every route that carries its pair tag, whoever announces it, so two HA pairs or two single firewalls left at the default 65000 refuse each other's routes. Give each its own value under IP VPN › HA (for example 65001, 65002), and keep it clear of the tags the switches set themselves. SPBM › Topology shows who announces with which tag.

What should I check before redistributing routes?

Route tags prevent loops. Every route the pair announces carries the pair tag (default 65000), and both firewalls refuse routes that carry it. AOS 8.11 carries IPv6 route tags (vAOS 8.11 beta and OmniSwitch hardware); vAOS 8.10 installs the firewall's tagged IPv6 routes but ignores the tag. Until every switch shows the pair tag on IPv6 routes, do not redistribute IPv6 routes in both directions, and with two firewalls do not pass IPv6 routes from one VPN into another.

Beta and support

Who can join the beta?

Sites running OPNsense 26.7 (amd64) in, or next to, an SPB fabric of ALE OmniSwitch or Extreme Fabric Engine switches. Write to [email protected] with your OPNsense version and hardware, your switches and their AOS or VOSS release, roughly how many bridges the fabric has, and whether you run an HA pair or want IP VPN.

How are builds numbered, and where are the changes?

Rebuilds of 0.9.0 are 0.9.0_1, 0.9.0_2 and so on, as OPNsense numbers its own plugins. pkg info -A os-spbm shows the build's date and commit (build_git). The newest changes are in the plugin's description (System › Firmware › Plugins, the info button), all of them in the release notes.

What should a problem report contain?

The output of sh /usr/local/share/doc/spbm/kmod-check.sh, of /usr/local/opnsense/scripts/spbm/health.py --json, and of pkg info -A os-spbm, whose build_git line names the build. Say what the switches are and which AOS or VOSS release they run.

What is the licence?

os-spbm and spbm are proprietary. FRR is GPL-2.0-or-later; its patches and the release they apply to come with the package. Third-party notices are installed in /usr/local/share/doc/spbm/.

Contact

Other questions?

Contact us about repository access, beta participation or commercial terms.

Contact us