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
arp-interface ( name ) - ping, using ARP requests on this interface, instead of ICMP requests.
( 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
src-address ( IP address ) - Source address for ping
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 its address and choosing
Lookup Address.
You cannot 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 bytes.
Only neighbour MikroTik RouterOS routers with MAC-ping feature enabled can be 'pinged' by
MAC address.
Example of ping command
An example of Ping command:
/pi 159.148.95.16 count=5 interval=500ms
159.148.95.16 64 byte ping: ttl=59 time=21 ms
159.148.95.16 ping timeout
159.148.95.16 ping timeout
159.148.95.16 ping timeout
159.148.95.16 64 byte ping: ttl=59 time=16 ms
5 packets transmitted, 2 packets received, 60% packet loss
round-trip min/avg/max = 16/18.5/21 ms
[admin@MikroTik] >
Resolve IP address:
To resolve IP address from a DNS name, type the command:
/ping www.google.lv
Page 617 of 695
Copyright 1999-2007, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.
Содержание RouterOS v2.9
Страница 1: ...MikroTik RouterOS v2 9 Reference Manual ...