Ping

Document revision 1.9 (30-Apr-2003)
This document applies to MikroTik RouterOS v2.7

Table of Contents

Summary

Ping uses Internet Control Message Protocol (ICMP) Echo messages to determine if a remote host is active or inactive and to determine the round-trip delay when communicating with it.

Specifications

Packages required : system
License required : Any
Home menu level : /, /tool mac-server ping
Protocols utilized : ICMP (RFC792)
Hardware usage: not significant

Related Documents

Software Package Installation and Upgrading
IP Addresses and Address Resolution Protocol (ARP)
ICMP Bandwidth Test
Traceroute MAC Telnet Server and Client

Description

Ping sends ICMP echo (ICMP type 8) message to the host and waits for the ICMP echo-reply (ICMP type 0) from that host. The interval between these events is called round trip. If the response (that is called pong) has not come until the end of the interval, we assume it has timed out. The second significant parameter reported is ttl (Time to Live). Is is decremented at each machine in which the packet is processed. The packet will reach its destination only when the ttl is greater than the number of routers between the source and the destination

The Ping Command

Command name: /ping

Property Description

(IP address | MAC address) - IP or MAC address for destination host
size (28...65535, default: 64) - Size of the IP packet (in bytes, including the IP and ICMP headers)
do-not-fragment - If added, packets will not be fragmented
interval (10ms...5s, default: 1s) - Delay between messages
count (integer, default: 0) - How many times ICMP packets will be sent

  • 0 - Ping continues till [Ctrl]+[C] is pressed
    ttl (1...255, default: 255) - Time To Live (TTL) value of the ICMP packet

    Notes

    If DNS service is configured, it is possible to ping by DNS address. To do it from Winbox, you should resolve DNS address first, pressing right mouse button over it address and choosing Lookup Address.

    Packet size may not be greater than the interface's mtu. If 'pinging' by MAC address, minimal packet size iz 50.

    Only neighbour MikroTik RouterOS routers with MAC-ping feature enabled can be 'pinged' by MAC address.

    Examples

    [admin@MikroTik] > ping 159.148.60.2 count=5 interval=40ms size=64
    159.148.60.2 64 byte pong: ttl=247 time=32 ms
    159.148.60.2 64 byte pong: ttl=247 time=30 ms
    159.148.60.2 64 byte pong: ttl=247 time=40 ms
    159.148.60.2 pong timeout
    159.148.60.2 64 byte pong: ttl=247 time=28 ms
    5 packets transmitted, 4 packets received, 20% packet loss
    round-trip min/avg/max = 28/32.5/40 ms
    [admin@MikroTik] >
    

    MAC Ping Server

    Submenu level : /tool mac-server ping
    [admin@MikroTik] tool mac-server ping> print
        enabled: yes
    [admin@MikroTik] tool mac-server ping>
    

    Property Description

    enabled (yes | no) - whether MAC pings to this router are allowed

    Example

    To disable MAC pings:
    [admin@MikroTik] tool mac-server ping> set enabled=no
    [admin@MikroTik] tool mac-server ping> print
        enabled: no
    [admin@MikroTik] tool mac-server ping>
    


    © Copyright 1999-2003, MikroTik