Skip to content

Traceroute

Traceroute maps the sequence of routers between the MikroTik device and a destination by sending probes with incrementally increasing TTL values. Each router that decrements TTL to zero returns an ICMP Time Exceeded message, revealing its address and the round-trip time to that hop.

Use traceroute when ping confirms reachability loss but you need to know where in the path the problem occurs.

/tool traceroute address=8.8.8.8

RouterOS displays results as hops are discovered. Press q or Ctrl+C to stop.

PropertyDescription
addressDestination IP address or hostname
countNumber of probes per hop (default: 3)
timeoutTime to wait for each probe reply (default: 1s)
max-hopsMaximum number of hops before stopping (default: 30)
PropertyDescription
src-addressSource IP address to use for probes. Use on multihomed routers to test a specific egress path
interfaceForce probes out a specific interface
PropertyDescription
protocolProbe protocol: icmp (default) or udp. Switch to UDP to bypass firewalls that filter ICMP
portDestination port for UDP probes (default: 33434)
/tool traceroute address=8.8.8.8
/tool traceroute address=1.1.1.1 count=3 timeout=2s

Increase timeout if intermediate hops have high latency.

/tool traceroute address=203.0.113.10 src-address=198.51.100.2

Useful to verify egress path selection on routers with multiple WAN addresses.

/tool traceroute address=203.0.113.10 interface=ether2

Forces probes out a specific interface. Useful to test which path a given WAN link takes.

/tool traceroute address=198.51.100.10 protocol=udp port=33434

UDP probes match the behavior of traditional Unix traceroute.

Each row in the output represents one hop:

# ADDRESS STATUS TIME1 TIME2 TIME3
1 192.168.88.1 sent=3 received=3 1ms 1ms 1ms
2 10.0.0.1 sent=3 received=3 5ms 5ms 6ms
3 * sent=3 received=0 timeout timeout timeout
4 8.8.8.8 sent=3 received=3 12ms 12ms 13ms
OutputMeaning
IP address with RTT valuesHop responded to TTL-expired probes
* (asterisk)No reply received within timeout — hop is filtered or rate-limiting ICMP
Increasing RTT at a specific hopCongestion or queuing at that router
RTT drops at a later hopAsymmetric routing — return path differs from forward path
Final destination unreachableRouting break, firewall block, or host down

A * at hop 3 with successful replies at hop 4 means hop 3 silently forwarded the packet but filtered the ICMP Time Exceeded response. This is normal on carrier networks. The data plane is functioning; only ICMP is filtered.

Traceroute shows only the forward path. Return ICMP packets may travel a different route. High RTT variations or unexpected * entries at specific hops can indicate asymmetric routing rather than a fault.

To verify asymmetry, run traceroute from both ends and compare paths.

CapabilityPingTraceroute
Test end-to-end reachability
Measure round-trip latencyPer-hop
Identify which hop has the problem
Detect routing loops
Test policy routing / VRF pathsPartial

Use ping first to confirm the problem, then traceroute to localize it.

If the same IP addresses repeat across multiple hops, a routing loop exists. Check for conflicting static routes or an OSPF/BGP misconfiguration at those routers.

# Confirm break is at hop 3 by comparing two different destinations
/tool traceroute address=8.8.8.8
/tool traceroute address=1.1.1.1

If both fail at the same hop with the same next-hop IP, the issue is upstream of that router.

# Via first ISP interface
/tool traceroute address=203.0.113.10 interface=ether1
# Via second ISP interface
/tool traceroute address=203.0.113.10 interface=ether2

Compare outputs to confirm each interface routes traffic via the expected upstream.

Symptom: /tool traceroute returns exit code -1 with no output.

Cause: Using a slash path separator instead of a space — /tool/traceroute is invalid RouterOS syntax.

RouterOS menu paths use spaces to separate menu levels in the CLI:

# Correct
/tool traceroute address=8.8.8.8
# Wrong — returns exit code -1
/tool/traceroute address=8.8.8.8

The forward-slash form is accepted as a path-style command prefix but does not resolve to any command, producing no output and exit code -1.

Every hop timing out usually means the destination is unreachable or ICMP is blocked end-to-end. Try a UDP probe:

/tool traceroute address=8.8.8.8 protocol=udp

The path may exceed the default 30-hop limit. Increase max-hops:

/tool traceroute address=8.8.8.8 max-hops=64
  • Ping — Test reachability before using traceroute to localize the fault
  • Torch — Real-time per-flow traffic inspection on an interface
  • RouterOS Troubleshooting Methodology — Systematic layer-by-layer diagnostic approach