Community discussions

MikroTik App
 
csr
just joined
Topic Author
Posts: 13
Joined: Thu Jan 09, 2014 1:07 pm

Strange behavior of ping command

Thu Oct 27, 2016 3:12 pm

I use some script to change main gateweay.
:local PingStatus \
(([/ping $pingTo1 interface=$InterfaceName size=28 interval=0.5 count=$pingCount routing-table=$InterfaceName] + \
[/ping $pingTo2 interface=$InterfaceName size=28 interval=0.5 count=$pingCount routing-table=$InterfaceName] ) / ($pingCount * 2) * 100);
Sometimes variable PingStatus equal 0. I have only two variable status: $PingCount*2 (without ping lost) or zero (where all ping lost). I check my router by ping from internet. In time i have pingStatus=0 i have no packet lost from outer ping. What it can be?