I am using OpenWRT version 23.05 on my home router, I have ip-full - 6.3.0-1 installed, confirmed by output of opkg list-installed, though I can not remember that why & when I installed it. Based on below ip command man page, is package ip-full a subset of package**iproute2** ?
thanks for reply, I already have ip-full package installed, but still some commands (such as ip bridge) are not available, hence I would need iproute2 I guess.
I've done some testing.
Interesting for everyone, especially for @yantian:
The package bridge actually installs the full version of brctl. Badly named IMO, should be brctl-full to be consistent with other package naming conventions.
The package ip-bridge is what actually installs the bridge utility.
As for bridge fdb, you can get the same information from brctl but it involves parsing the output of multiple calls to brctl to get there. ie:
brctl show gives you a list of bridges and their interfaces
brctl showmacs [bridgename] run for each bridge, gives the mac addresses and port numbers. You can get the port numbers from brctl show
Conclusion: bridge fdb gives you the full list of all macs in one go, but needs the package ip-bridge
brctl can get you to the same information with a bit of scripting but is there already in the form of the Busybox version. No additional dependency needed.
thank you all for reply, I have access to brctl, but bridge command can not be found on my Openwrt router running ver 23.05.3. I was looking for a command (ip bridge in iproute2 suit) to show details about FDB (L2 Forwarding Database).
I guess I need to simply install whatever packages in order to access some specific commands, despite some of those installed packages overlap with each other.
I am done with this query, thanks again.