fbpx

Can netwatch in MikroTik also be used with a mac address?

In MikroTik RouterOS, NetWatch is a useful tool that allows you to monitor the availability of hosts on the network by sending pings (ICMP echo requests) and executing scripts when the status of these hosts changes (that is, when a host becomes reachable or unreachable).

NetWatch is primarily designed to work with IP addresses and not directly with MAC addresses.

How NetWatch works:

NetWatch allows you to configure a list of IP addresses to monitor, and you can specify specific actions (such as scripts) that should be executed when the connection status to one of these addresses changes. Typical configurations include:

  • Host IP: The IP address of the device to be monitored.
  • Interval: The frequency with which NetWatch sends pings to the host.
  • timeout: The time to wait for the ping response.
  • Up Script: The script that runs when the host becomes reachable.
  • DownScript: The script that runs when the host becomes unreachable.

Using MAC Addresses in NetWatch:

Since NetWatch uses the ICMP protocol to monitor the status of hosts, it requires IP addresses to send pings. MAC addresses, which are unique identifiers assigned to network interfaces for communication within the same local network (LAN), are not usable directly in NetWatch because they are not routable or accessible beyond the local network segment.

Alternatives to Monitor Devices by MAC:

If you need to monitor devices specifically by their MAC address, you could consider alternatives such as:

  • ARP monitoring: Observe the ARP table in the MikroTik, which links IP addresses with MAC addresses. You could configure a script that periodically checks the ARP table to detect whether a MAC address is still present or not.
  • DHCP Leases: Monitor DHCP leases to see if specific devices (identified by their MAC addresses) are active and receiving IP addresses.

Conclusion:

NetWatch is a powerful tool for monitoring the availability of devices and services on a network using IP addresses.

For monitoring based on MAC addresses, it would be necessary to implement alternative solutions that do not directly depend on the standard NetWatch functionality in MikroTik RouterOS.

There are no tags for this post.
Did this content help you?
Facebook
Twitter
LinkedIn
WhatsApp
Telegram

Other documents in this category

Leave your comment

Your email address will not be published. Required fields are marked with *

Tutorials available at MikroLABs

No Courses Found!

DISCOUNT CODE

AN24-LIB

applies to MikroTik books and book packs

Days
Hours
Minutes
Seconds

Introduction to
OSPF - BGP - MPLS

Sign up for this Free course

MAE-RAV-ROS-240118
Days
Hours
Minutes
Seconds

Sign up for this Free course

MAS-ROS-240111

Promo for Three Kings Day!

KINGS24

15%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the Three Kings Day discount code!

* promotion valid until Sunday January 7, 2024
** the code (KINGS24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

New Year's Eve Promo!

NY24

20%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the New Year's Eve discount code!

* promotion valid until Monday, January 1, 2024
** the code (NY24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

Christmas discounts!

XMAS23

30%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the discount code for Christmas!!!

**codes are applied in the shopping cart
Promo valid until Monday December 25, 2023

CYBER WEEK DISCOUNTS

CW23-MK

17%

all MikroTik OnLine courses

CW23-AX

30%

all Academy courses

CW23-LIB

25%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Cyber ​​Week!!!

**codes are applied in the shopping cart
Promo valid until Sunday December 3, 2023

BLACK FRIDAY DISCOUNTS

BF23-MX

22%

all MikroTik OnLine courses

BF23-AX

35%

all Academy courses

BF23-LIB

30%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Black Friday!!!

**Codes are applied in the shopping cart

codes are applied in the shopping cart
valid until Sunday November 26, 2023

Days
Hours
Minutes
Seconds

Sign up for this Free course

MAE-VPN-SET-231115

Halloween promo

Take advantage of discount codes for Halloween.

Codes are applied in the shopping cart

HW23-MK

11% discount on all MikroTik OnLine courses

11%

HW23-AX

30% discount on all Academy courses

30%

HW23-LIB

25% discount on all MikroTik Books and Book Packs

25%

Register and participate in the free course Introduction to Advanced Routing with MikroTik (MAE-RAV-ROS)

Today (Wednesday) October 11, 2023
7pm to 11pm (Colombia, Ecuador, Peru)

MAE-RAV-ROS-231011