← Back to Blog
monitoring security beginner

What Is Connected to Your MikroTik? Find and Label Every Device with ARP, DHCP and MAC Vendors

A client says the internet is slow, and the first question is always the same: what is actually connected? Most small networks grow without anyone keeping a list. A camera here, a TV box there, a phone someone connected last month. Until you can name every device on a network, you cannot tell a normal one from one that should not be there. This note shows how to get that list from the router itself and how to put a name next to each entry.

1

Read the ARP table

The router keeps an ARP entry for every device it has recently talked to on a connected network. It is the quickest list of who is there right now:

/ip arp print

Each line gives an IP address, a MAC address and the interface it was seen on. Entries are dynamic and expire, so a device that has been silent for a while may be missing. A device that is on but idle will reappear as soon as it sends traffic.

2

Add the host names from the DHCP leases

An IP and a MAC tell you little. If the clients get their address from this router, the lease table usually adds a host name:

/ip dhcp-server lease print

Phones and laptops tend to announce a readable name, such as Marias-iPhone. Cameras, TV boxes and IoT devices often announce nothing useful or a generic one. Devices with a static address configured by hand never appear here, which is why the ARP table is the more complete of the two.

3

Find out which physical port each MAC is on

When the ports are part of a bridge, the bridge host table tells you which port a MAC was learned on:

/interface bridge host print

This is what turns "there is an unknown device" into "it is on ether5, the cable that goes to the back office". If the port goes to a switch or an access point, you will see many MACs behind the same port, and you continue the search on that equipment.

4

Identify the manufacturer from the MAC address

The first three bytes of a MAC address (the OUI) identify the manufacturer, and the IEEE publishes the full registry. A MAC starting with a Hikvision prefix is almost certainly a camera; one starting with a Samsung or Apple prefix is probably a phone or TV. You can look prefixes up in the public IEEE OUI list or on any OUI lookup site.

One caveat saves a lot of confusion. Modern phones use a private, randomized MAC per Wi-Fi network. You can recognize it because the second hex digit of the first byte is 2, 6, A or E (for example DA:...). Those addresses belong to no manufacturer, so a lookup returning nothing is expected and does not mean the device is suspicious.

5

Label what you recognize

The point of the exercise is to leave a list that makes sense next month. For devices on DHCP, put the name in the lease itself:

/ip dhcp-server lease set [find mac-address=AA:BB:CC:11:22:33] comment="Front desk printer"

If the device should always have the same address, turn the lease into a static one:

/ip dhcp-server lease make-static [find mac-address=AA:BB:CC:11:22:33]

Do this for fixed equipment such as cameras, printers, access points and servers. For phones and laptops that come and go, a label is optional.

6

Get warned when a new device joins

A one-time review gets stale. To have the router log every new lease, attach a script to the DHCP server:

/system script add name=lease-log source={
  :if ($leaseBound = 1) do={
    :log info ("new lease " . $leaseActMAC . " " . $leaseActIP)
  }
}
/ip dhcp-server set [find name=dhcp1] lease-script=lease-log

Replace dhcp1 with the name of your DHCP server. The line goes to the router log, where you can forward it or review it. It will not tell you whether the device is welcome, but it makes sure you notice it arrived.

Why do it this way

Not knowing what is on your network is how a neighbor ends up on the Wi-Fi, how a compromised TV box keeps running for months, and how a bandwidth hog hides in plain sight. The list you build here is also what makes every other task easier: if you know that ether5 is the camera switch, a traffic spike there stops being a mystery. Ten minutes of labeling turns an anonymous table of addresses into an inventory.

How MoniTik helps

The Manage section of MoniTik has a Connected Devices tab that shows the router's live ARP table without opening a terminal. Next to each MAC you can write a comment, which is stored in MoniTik and not on the router, so labeling a device never touches its configuration. The manufacturer comes from an IEEE registry bundled with the platform, so your clients' MAC addresses are not sent to any external lookup service. That registry covers the large, common manufacturer blocks; MACs from newer small blocks, and randomized phone addresses, show up as unknown.

Start Free Trial
Isabela Navarro
Isabela Navarro Network Engineer

Isabela writes about the everyday MikroTik tasks that never quite make it into the official docs.