|Document revision:||1 (Mon Jul 19 09:36:24 GMT 2004)|
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.
SpecificationsPackages required: system
License required: Level1
Submenu level: /, /tool mac-server ping
Standards and Technologies: ICMP
Hardware usage: Not significant
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 CommandCommand name: /ping
Property Description(IP address | MAC address) - IP or MAC address for destination hostcount (integer; default: 0) - how many times ICMP packets will be sent
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.
An example of Ping command:
[admin@MikroTik] > ping 18.104.22.168 count=5 interval=40ms size=64 22.214.171.124 64 byte pong: ttl=247 time=32 ms 126.96.36.199 64 byte pong: ttl=247 time=30 ms 188.8.131.52 64 byte pong: ttl=247 time=40 ms 184.108.40.206 pong timeout 220.127.116.11 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 ServerSubmenu level: /tool mac-server ping
Property Descriptionenabled (yes | no; default: yes) - whether MAC pings to this router are allowed
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>