Ping

Document revision:1 (Mon Jul 19 09:36:24 GMT 2004)
Applies to: V2.8

General Information

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: Level1
Submenu level: /, /tool mac-server ping
Standards and Technologies: ICMP
Hardware usage: Not significant

Related Documents

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

count (integer; default: 0) - how many times ICMP packets will be sent
0 - Ping continues till [Ctrl]+[C] is pressed

do-not-fragment - if added, packets will not be fragmented

interval (time: 10ms..5s; default: 1s) - delay between messages

size (integer: 28..65535; default: 64) - size of the IP packet (in bytes, including the IP and ICMP headers)

ttl (integer: 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.

You can not ping with packets larger that the MTU of that interface, so the packet size should always be equal or less than 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.

Example

An example of Ping command:

[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

Property Description

enabled (yes | no; default: yes) - 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>