Manual:Tools/Ping: Difference between revisions

From MikroTik Wiki
Jump to navigation Jump to search
Line 15: Line 15:


Ping tool can be used to ping IP address and mac address. Mac ping works only to devices that has mac ping server configured. [[#Mac Ping | <code>Read more>></code>]]
Ping tool can be used to ping IP address and mac address. Mac ping works only to devices that has mac ping server configured. [[#Mac Ping | <code>Read more>></code>]]
{{Mr-arg-table-h
|prop=Property
|desc=Description
}}
{{Mr-arg-table
|arg=arp-ping
|type=<nowiki>yes | no</nowiki>
|default=
|desc=
}}
{{Mr-arg-table
|arg=count
|type=integer [0..4294967295]
|default=0
|desc=Total number of packets to send (defult is to send forever until interrupted).
}}
{{Mr-arg-table
|arg=do-not-fragment
|type=
|default=
|desc=If do-not-fragment flag is set packets will not be fragmented if size exceeds interface mtu.
}}
{{Mr-arg-table
|arg=interface
|type=string
|default=
|desc=Which interface to use (required when pinging IPv6 address)
}}
{{Mr-arg-table
|arg=interval
|type=time [10ms..5s]
|default=1s
|desc=how long to wait for response. If no response is received within 1000ms, ping will show as "timed out", but if you will receive a response after 3ms, still the ping program will wait the rest of 997ms until it sends next ping.
}}
{{Mr-arg-table
|arg=routing-table
|type=string
|default=main
|desc=Which routing table to use to resolve destination. Used in [[M:Virtual_Routing_and_Forwarding | VRF]] setups.
}}
{{Mr-arg-table
|arg=size
|type=integer
|default=64
|desc=Packet size to be used in bytes (includes payload and IP header)
}}
{{Mr-arg-table
|arg=src-address
|type=IPv4,IPv6
|default=
|desc=IPv4/IPv6 address to be set as packets source. Useful if replies must be sent to specific address.
}}
{{Mr-arg-table-end
|arg=ttl
|type=integer [1..255]
|default=
|desc=Time to live parameter adjustment
}}


{{cont}}
{{cont}}

Revision as of 09:57, 14 July 2010

Version.png

Applies to RouterOS: v3, v4, v5 +

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. Ping tool sends ICMP (type 8) message to the host and waits for the ICMP echo-reply (type 0). 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.

Properties

Command: /ping [address] [properties]


Ping tool can be used to ping IP address and mac address. Mac ping works only to devices that has mac ping server configured. Read more>>

Property Description
arp-ping (yes | no; Default: )
count (integer [0..4294967295]; Default: 0) Total number of packets to send (defult is to send forever until interrupted).
do-not-fragment (; Default: ) If do-not-fragment flag is set packets will not be fragmented if size exceeds interface mtu.
interface (string; Default: ) Which interface to use (required when pinging IPv6 address)
interval (time [10ms..5s]; Default: 1s) how long to wait for response. If no response is received within 1000ms, ping will show as "timed out", but if you will receive a response after 3ms, still the ping program will wait the rest of 997ms until it sends next ping.
routing-table (string; Default: main) Which routing table to use to resolve destination. Used in VRF setups.
size (integer; Default: 64) Packet size to be used in bytes (includes payload and IP header)
src-address (IPv4,IPv6; Default: ) IPv4/IPv6 address to be set as packets source. Useful if replies must be sent to specific address.
ttl (integer [1..255]; Default: ) Time to live parameter adjustment

[ Top | Back to Content ]