Trace the „outgoing interfaces“ IP addresses

Traceroute geht nur in eine Richtung und meldet die hops, auf denen das Paket eingeht.

Möchte man nun aber die IP Adresse haben auf welcher ein Paket zurück kommt, kann man es mit PING machen.

Bsp:

traceroute to 5.5.5.5 (5.5.5.5), 64 hops max, 52 byte packets
 1  lede (192.168.5.1)  1057.332 ms  0.904 ms  0.854 ms
 2  192.168.1.1 (192.168.1.1)  34.999 ms  57.743 ms  38.352 ms
 3  1.1.1.1 (1.1.1.1)  42.960 ms  35.190 ms  43.002 ms
 4  2.2.2.2 (2.2.2.2)  53.539 ms  35.680 ms  39.800 ms
 5  4.4.4.4 (4.4.4.4)  37.132 ms  38.576 ms  56.824 ms
 6  5.5.5.5 (5.5.5.5)  82.788 ms

um nun zu gucken wo ein Paket jedoch rein kommt,
einfach ein ping -R auf die einzelnen Hops.

ping -R 2.2.2.2
PING 2.2.2.2 (2.2.2.2): 56 data bytes
64 bytes from 2.2.2.2: icmp_seq=0 ttl=62 time=10.623 ms
RR: 	192.168.1.2
	1.1.1.2
	2.2.2.1
	192.168.1.1
	lede.lan (192.168.5.1)
	device.lan (192.168.5.107)
64 bytes from 2.2.2.2: icmp_seq=1 ttl=62 time=7.358 ms	(same route)
64 bytes from 2.2.2.2: icmp_seq=2 ttl=62 time=9.505 ms	(same route)
64 bytes from 2.2.2.2: icmp_seq=3 ttl=62 time=11.764 ms	(same route)
--- 2.2.2.2 ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss