MikroTik Tutorial: show mac address table

CLI command to show mac table

interface bridge host print

List mac address table for a specific bridge interface

interface bridge host print where bridge=bridge1

Find mac addresses learned through a specific port

interface bridge host print where on-interface=ether10

Find mac addresses learned through a specific port on a specific bridge

interface bridge host print where on-interface=ether10 bridge=bridge1

Filter out local mac addresses
The results so far will also include the local mac addresses of the bridge interface annotated with the L flag. If you want exclude these local mac addresses from the list just append local=no.

interface bridge host print where local=no

Search for a specific MAC address in the table

interface bridge host print where mac-address=44:D9:E7:36:E1:67

Search for all mac addresses with a specific OUI prefix

interface bridge host print where mac-address~44:D9:E7

show mac address table for hardware switching
interface ethernet switch host print

Find mac addresses learned from an interface
List all mac addresses learned from ether1

/interface ethernet switch host print where ports=ether1

Search switch mac table for a specific mac address

/interface ethernet switch host print where mac-address=DC:A4:CA:A3:18:21

Source : https://jcutrer.com/howto/networking/mikrotik/show-mac-address-table



Posted

in

Tags: