> For the complete documentation index, see [llms.txt](https://riteshs4hu.gitbook.io/infosec-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://riteshs4hu.gitbook.io/infosec-notes/reconnaissance/active-reconnaissance-approach/netwrok-scanning-tools/tracepath.md).

# tracepath

`tracepath` is a network diagnostic tool used to trace the route that packets take from a source to a destination. It is similar to `traceroute` but does not require root privileges, whereas some `traceroute` options do. `tracepath` helps analyze network latency, detect routing issues, and identify packet loss without requiring elevated permissions.

### Syntax

```bash
tracepath [options] <destination>
```

### Basic Usage

* **Trace the route to a destination**

  ```bash
  tracepath example.com
  ```

  (Displays each hop, its latency, and MTU discovery.)

### Key Options

* **Use IPv4 only**

  ```bash
  tracepath -4 example.com
  ```
* **Use IPv6 only**

  ```bash
  tracepath -6 example.com
  ```
* **Specify a source address**

  ```bash
  tracepath -s 192.168.1.100 example.com
  ```
* **Set a maximum number of hops (default is 30)**

  ```bash
  tracepath -m 20 example.com
  ```
* **Enable verbose mode**

  ```bash
  tracepath -n example.com
  ```
