What are the parameters for the traceroute command in L…
In Linux, the traceroute command is used to trace the path of packets on a network. Here are the common parameters for the traceroute command:
- -I: Sending ICMP Echo requests as test data packets.
- – U: Sending test packets using UDP datagrams.
- – T: Sending TCP SYN requests as test data packets.
- -n: Disable DNS resolution to show tracking results in IP addresses.
- -w
: sets the waiting time limit in seconds. - -q <查询数目>:设置每跃点的最大查询数目
- -m
: set the maximum hop count, which is the maximum TTL value. - -p
: set the target port number for UDP or TCP. - Set the source IP address.
- Set the initial TTL value using the parameter -f.
- – z
: sets the delay time between each packet sent - -R: Bypass the regular routing table and use the original routing table directly.
- Before sending each data packet, enable the IP header’s routing option.
- -g
: specify the router address for testing the specified gateway path. - The AS number (Autonomous System number) appears in the tracking results.
These parameters can be used to customize the behavior and output of the traceroute command. More detailed information about the traceroute command can be obtained by running the man traceroute command.