Blog

using System.Net.NetworkInformation;

public static bool PingHost(string nameOrAddress)
{
    bool pingable = false;
    Ping pinger = null;

    try
    {
        pinger = new Ping();
        PingReply reply = pinger.Send(nameOrAddress);
        pingable = reply.Status == IPStatus.Success;
    }...

This tutorial helps you guide setting up DHCP reservations on a Mikrotik RouterOS.