Sign inSign up

gophernet/traceroute

By gophernet

Updated almost 8 years ago

traceroute prints the route that IP packets traverse going to a remote host

Image
4

1M+

gophernet/traceroute repository overview

traceroute

traceroute print the route that IP packets traverse going to a remote host.

Have you ever been on a system or a network switch and noticed there is some proprietary ping or traceroute without any of the options you need? Well, we have :p so lets get basic with traceroute>

$ docker run -it --rm gophernet/traceroute

Usage: traceroute [-46FIlnrv] [-f 1ST_TTL] [-m MAXTTL] [-q PROBES] [-p PORT]
	[-t TOS] [-w WAIT_SEC] [-g GATEWAY] [-s SRC_IP] [-i IFACE]
	[-z PAUSE_MSEC] HOST [BYTES]

Trace the route to HOST

	-4,-6	Force IP or IPv6 name resolution
	-F	Set don't fragment bit
	-I	Use ICMP ECHO instead of UDP datagrams
	-l	Display TTL value of the returned packet
	-n	Print numeric addresses
	-r	Bypass routing tables, send directly to HOST
	-v	Verbose
	-f N	First number of hops (default 1)
	-m N	Max number of hops
	-q N	Number of probes per hop (default 3)
	-p N	Base UDP port number used in probes
		(default 33434)
	-s IP	Source address
	-i IFACE Source interface
	-t N	Type-of-service in probe packets (default 0)
	-w SEC	Time to wait for a response (default 3)
	-g IP	Loose source route gateway (8 max)

Example Usage with a target site (github.com):

$ docker run -it --rm gophernet/traceroute github.com

traceroute to github.com (192.30.252.131), 30 hops max, 46 byte packets
 1  172.17.0.1 (172.17.0.1)  0.005 ms  0.004 ms  0.001 ms
 2  10.0.2.2 (10.0.2.2)  0.074 ms  0.117 ms  0.215 ms
 .....

To exit the trace prior to the trace finishing, use Control+P+Q twice to detach and Control+C to exit the container.

Tag summary

Content type

Image

Digest

Size

2.1 MB

Last updated

almost 8 years ago

docker pull gophernet/traceroute