MikroTik: Show Connected Devices IP & MAC
source link: https://www.shellhacks.com/mikrotik-show-connected-devices-ip-mac/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
MikroTik: Show Connected Devices IP & MAC
If you wonder how to find out which devices are connected to a MikriTik router, you will find the answer in this note.
Below I am showing 3 different ways of getting MAC and IP addresses of the devices connected to the MikroTik router, using a terminal or a Winbox/Winfig.
It is up to you to decide which way of identifying the connected devices is the best.
Cool Tip: Scan a network with the ping
command only! Discover all the active computers in your LAN! Read more →
Show Devices Connected to MikroTik
To scan for the devices connected to the MikroTik router from the terminal, execute:
[admin@MikroTik] > /tool ip-scan - sample output - Columns: ADDRESS, MAC-ADDRESS, TIME, DNS, NETBIOS ADDRESS MAC-ADDRESS TIME DNS NETBIOS 192.168.1.64 2C:CC:XX:XX:XX:XX 0ms 192.168.1.1 60:35:XX:XX:XX:XX 0ms box. 192.168.1.93 0ms MikroTik. 192.168.1.26 84:14:XX:XX:XX:XX 192.168.1.68 78:5D:XX:XX:XX:XX 0ms LGwebOSTV. 192.168.88.254 DC:A6:XX:XX:XX:XX 0ms RASPBERRYPI/WORKGROUP 192.168.88.1 0ms router.lan. 192.168.88.246 0E:20:XX:XX:XX:XX 45ms 192.168.88.247 D0:C6:XX:XX:XX:XX HP-440G6/WORKGROUP 192.168.1.78 D6:45:XX:XX:XX:XX 69ms Galaxy-S21-5G. -- [Q quit|D dump|C-z pause]
To show the devices connected to the MikroTik router using Winbox/Winfig, go to “Tools” → “IP Scan” and click on “Start”:
In the example above i’ve left the “Interface” and “Address Range” fields empty to scan for the connected devices on all interfaces.
If the MikroTik router works as a DHCP server, the connected devices can also be listed using the following command:
[admin@MikroTik] > /ip dhcp-server lease print - sample output - Flags: D, B - BLOCKED Columns: ADDRESS, MAC-ADDRESS, HOST-NAME, SERVER, STATUS, LAST-SEEN # ADDRESS MAC-ADDRESS HOST-NAME SERVER STATUS LAST-SEEN 0 D 192.168.88.254 DC:A6:XX:XX:XX:XX raspberrypi defconf bound 42s 1 D 192.168.88.247 D0:C6:XX:XX:XX:XX hp-440g6 defconf bound 1m4s 2 D 192.168.88.246 0E:20:XX:XX:XX:XX Galaxy-M51 defconf bound 3m8s
Winbox/Winfig: “IP” → “DHCP Server”, “Leases” tab.
Alternatively, you can get the connected devices by checking connections on a firewall :
[admin@MikroTik] > /ip firewall connection print interval=1
Winbox/Winfig: “IP” → “Firewall”, “Connections” tab.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK