Перейти к содержимому

Как узнать mac адрес mikrotik

  • автор:

Посмотреть какой mac за портом сетевой карты (Mikrotik, Linux)

Подскажите пожалуйста какой командой посмотреть мак на порту микротика? (мак железяки которая на этом порту сидит) на д линках это например так — sh fdb port 1. И как выглядит команда для win/линукса ,что бы посмотреть то же самое?

проверить пока возможности нет. но она же должна показать мак адрес устройства даже если у него настройки сети не сделаны?) просто мак на порту, на 2 уровне osi работает комманда?

По идее да. Можно еще сканировать попробовать.

Если та железка посылает что-то в сеть, то мак будет известен микротику. Если нет — то нет.

Нет. «show fdb» показывает таблицу MAC-адресов на коммутаторе, а «ip arp print» — таблицу arp, то есть, видимые устройства с IP и их MAC-и. То есть, нет IP (или IP не имеет отношения к соответствующему интерфейсу маршрутизатора) — нет записи в arp-таблице. А в таблице MAC-адресов коммутатора MAC будет и в том случае, если устройство про IP вообще не в курсе. В общем, это разные уровни OSI (L2 и L3).

Вот, нашёл: interface bridge host print

Соответственно, это если есть порты, объединённые в бридж, и только для них.

а таблицу mac адрессов как на д линке (уровень 2 оси) как можно посмотреть на микротике и в линуксе?

в микротике interface ethernet print покажет маки, принадлежащие портам микротика

MikroTik Tutorial: show mac address table

Here are the commands to show the mac address table on a MikroTik Router. In addition to using the command line to show the mac address table, this tutorial I will also show you how to search for a specific MAC address and filter the table to show mac addresses learned through a specific port. There are actually several commands that you should know, depending on how your router is configured.

The two types of configuration are software switching (using bridge interfaces) and hardware switching. You can actually have a valid configuration that uses both. And in this scenario, separate mac address tables are maintained.

CLI command to show mac table

This command will print the contents of the mac address table for all bridges. If you have multiple bridge interfaces and want to narrow down the list to a specific bridge, here is the command.

List mac address table for a specific bridge interface

where bridge1 is the name of your bridge interface.

Find mac addresses learned through a specific port

This will find all mac addresses learned through ether10 across all mac address tables. If you want to target a specific bridge you will use the following command.

Find mac addresses learned through a specific port on a specific bridge
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.

Get MAC Address using MikroTik

In MikroTik Router, terminal is a command-line network utility tool that displays more information like MAC Address. You can get connections, protocol, routing, network interface and network protocol details from here.

To get MAC Address from IP in MikroTik type:
tool ip-scan address 192.168.2.31

You have to execute the command in terminal in MikroTik Router

That was a grate tips to show MAC Address from IP using MikroTik Router terminal. Just needed to copy paste the MAC address in ARP area. I used Reply-Only for security reasons.

IP Scan tool allows user to scan network based on some network prefix or by setting interface to listen to. Either way tool collects certain data from the network.

If you would like to get hostname from IP using windows command line interface, you can see this post by click here.

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in settings .

Change cookie settings

  • Privacy Overview
  • Strictly Necessary Cookies

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Маршрутизаторы Mikrotik. Мелочи. MAC на порту.

Итак, у нас возникла необходимость посмотреть, какие же MAC-адреса висят за тем или иным интерфейсом маршрутизатора.
Поехали. Заходим на Mikrotik по его IP/MAC-адреса посредством программы Winbox:

Естественно, нужно знать данные для юзера, под которым вы пытаетесь зайти на маршрутизатор — логин и пароль. Так или иначе, попадаем в окно Winbox.

Перед нами главная страница Микротика. Теперь, чтобы посмотреть пресловутые MAC-адреса, проходим во вкладку Bridge, а оттуда в Hosts.

Допустим, нам интересно, что за MAC-адреса за третьим физическим интерфейсом маршрутизатора:
Маршрутизаторы Mikrotik. Мелочи. MAC на порту.
Смотрим столбец On Interface и ищем там ether3.
С буквой L у нас идет MAC-адрес самого интерфейса, а остальное это видимые за портом маки. Они то нас и интересуют.
Для любителей телнета предусмотрены соответствующие команды в терминале. Их несколько и они имеют разную логику и функционал.
ip arp print — показывает таблицу arp, то есть, видимые устройства с IP и их MAC-и. Это совсем не аналог show fdb на коммутаторе! То есть, нет IP (или IP не имеет отношения к соответствующему интерфейсу маршрутизатора) — нет записи в arp-таблице. А в таблице MAC-адресов коммутатора MAC будет и в том случае, если устройство про IP вообще не в курсе. В общем, это разные уровни OSI (L2 и L3).
interface bridge host print — а вот эта команда покажет все, что есть за соответствующим интерфейсом.
interface ethernet print — покажет MAC-адреса физических интерфейсов Микротика
interface ethernet switch host print — волшебная команда, выводящая таблицу хостов за Ethernet-интерфейсами:
скачать dle 12.0

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Школа онлайн с государственным аттестатом