When a VM or container on a bridged network is unreachable, I want to know where the bridge thinks it lives. The forwarding table answers that, and the bridge tool prints it.
bridge fdb show br br0
It displays the current forwarding table of the bridge br0. Each entry ties a MAC address to a port. If the MAC address you expect isn’t behind the port you expect, you have a pointer for where to look next.
The docs list these filters for show:
br BRDEVfor one bridgebrport DEVfor one portvlan VIDfor one VLANstate STATEanddynamicto filter on the state of an entry
For example, all entries learned on one port:
bridge fdb show brport eth1
With -statistics the output also includes the time each entry was last updated and last used:
bridge -statistics fdb show br br0
The sibling bridge link show lists the ports of all bridges with their configuration and flags, and takes dev DEV or master DEVICE to narrow it down. And bridge monitor fdb follows changes as they happen. Its object list may contain link, fdb, vlan and mdb.
The caveat: it only works on a host that actually has a bridge, so you run it on the Linux host, not inside a guest.
Further reading: bridge(8)