ER-X-SFP OpenWRT21 DSA Distributed Network Switch
The EdgeRouter X-SFP is a quite powerful dualcore (880Mhz, 256MB RAM, 256MB flash) device powered by a MediaTek MT7621AT SoC.
OpenWrt 21 (snapshot) comes with support for the SFP slot (attached to the switch port eth5 via RGMII).
Note: it won’t work with OpenWrt 19!
As of April 2021 it requires a custom build to get SFP support on the device. I’ve used the snapshot 1db4681617b9aef724c9ccf15e62ba2a91d52564 and basic testing shows full functionality including VLANs.
No additional patches or manual config flags are required – it works right out of the box.
To flash the device from stock firmware to OpenWrt a minimal/short-receipt tar image is required (upgrade via ssh) as described on the device page.
A ready-to-use image is also available (config).
DSA Distributed Network Switch#
Recent kernels (e.g. 5.4 from OpenWrt 21) are using the DSA Distributed Network Switch architecture to provide a unified interface for switch configurations. Keep in mind to use a single bridge with VLAN filtering enabled when using multiple VLANs!