Traceroute

Hello Pradyumna

When using traceroute, you cannot adjust the TTL yourself. TTL is used in a specific way for traceroute, and if you change that, traceroute will not function correctly. For normal traffic however, both Windows and Linux allow you to change the default TTL. Doing a simple search online I have found that:

For Windows:

Using the Windows registry:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\servic es\Tcpip\Parameters]
“DefaultTTL”=dword:00000081

To execute this commands in console:

netsh int ipv4 set glob defaultcurhoplimit=129
netsh int ipv6 set glob defaultcurhoplimit=129

For Linux:

sudo sysctl net.ipv4.ip_default_ttl=129

For Cisco, I believe that you cannot change the default TTL, but I was unable to find any documentation confirming or denying this.

All of this has to do with when is the TTL decremented, and when is it considered expired. Take a look at the following post that describes how TTL is handled by routers, including the order of operations concerning routing and decrementing the TTL. The post has to do with eBGP multihop, but the TTL concepts are the same:

TTL is a parameter that is found in the IPv4 or IPv6 packet header, therefore it is exclusively a Layer 3 mechanism. Therefore TTL will be decremented whenever a packet is routed.

I hope this has been helpful!

Laz

1 Like