Skip to content
Contents
GuidesOpenWrt

How to tell DSA ports from swconfig ports before splitting an OpenWrt LAN

Identify the switch architecture by using the running device name, bridge member information, and physical port link changes, then determine which VLAN configuration is suitable for this device.

First, log in via a wired connection, reserving one port for testing as a management interface. The backplate labels LAN1 to LAN4 indicate only port positions and do not specify how the switch ports are named in the current firmware. After firmware upgrades that cross network architecture migrations, previous configuration screenshots may lose their reference value.

View currently running devices and bridge members

ubus call system board
ip -o link show
uci show network | grep -E '=switch|=bridge-vlan|\.ports='
command -v bridge && bridge link show
command -v swconfig && swconfig list

DSA often treats user ports as independent Linux network devices joined to a bridge, for example lan1. The traditional swconfig layout typically uses numeric ports and CPU ports in switch configuration, followed by VLAN subinterfaces on Ethernet devices. The presence of only eth0.10, the absence of the swconfig command, or the missing "switch" menu in LuCI does not conclusively determine the configuration. Machines with multiple network interfaces and no built-in switch chip may also be incompatible with either approach.

Only move one test line to verify the physical port.

Keep the SSH cable connected; connect a test computer to another idle port. Compare the link status and bridge member states before and after insertion. Record the device label, kernel name, and associated bridge. Only after these three items can be matched should VLAN configuration be designed. If removing the test cable affects the management connection, reconnect it to the original port and rebuild the port table. In this round, do not modify UCI settings and do not enable VLAN filtering—this verifies the cabling assumption.

Reference

Related guide · Plan four VLANs on OpenWrt and map each managed switch port

Explore hardware

Comments