The ping command has an option to configure the Time To Live (TTL) of the packet to be transmitted. These activities will show you how to use the ping command with a custom TTL.
To prepare for this activity:
- Start Windows.
- Log in if necessary.
Activity 1 - Ping with a Custom TTL
To ping with a custom TTL:
- Open a command prompt.
- Type ping 188.8.131.52 and press Enter. 184.108.40.206 is the IPv4 address of one of Google's public DNS servers.
- Observe the results. The ping request should be successful.
- Type ping -i 1 220.127.116.11 and press Enter.
- Observe the results. The ping request should fail with TTL expired in transit. The response should also indicate the IP address of the router where the TTL expired.
- Type ping -i 2 18.104.22.168 and press Enter.
- Observe the results. Then repeat the ping command, each time increasing the TTL (-i) parameter by one until the ping is successful again. The first TTL count which results in success indicates the number of routers or "hops" between your computer and Google's public DNS server.
- Close the command prompt to complete this activity.