How to get data out of DSA switch instead of swconfig

So I recently updated my main router from 21 to 24. I was a bit behind for 2 reasons: a) I was busy and or lazy. And b) because I had a non-trivial tagged VLAN setup, I dreaded the new DSA (on my model, a Archer C2600 swconfig still worked in 21)

Anyway, I got it to work after only a few hours. In retrospect some firewall mistake made DHCP fail on one of the VLANs but I was staring myself blind on the VLAN.

Actual question:
One of my custom scripts to troubleshoot does swconfig show.
Specifically swconfig dev switch0 show | grep 'link\|rror'

How to do something like this with the new DSA switch setup?

iproute2, bridgectl.

1 Like

Thanks. Sigh... I used to know ifconfig, arp, route, brctl.. Not as an expert, but well enough to not have to revert to the manual. Ok, iproute2 and derivates it is, I'll have to get used to those somehow eventually.

Mind you, I suspect you mean the command bridge, as in the ip-bridge package and not not bridgectl or brctl. OK, I loaded that and will play with it, thx.

You need ip-full and ip-bridge to get the full versions of iproute2 tools.
And sadly you need birdge and brctl to get all info you might want...

This is a nice cheat sheet https://baturin.org/docs/iproute2/

2 Likes

DSA outside ports are normal netdev-s, you can check/change link status with ip link, ethtool, mii-tool

1 Like