What is value of TTL in Ping command and how does it different from TTL in traceroute command?
An IP TTL is set initially by the system sending the packet. It can be set to any value between 1 and 255; different operating systems set different defaults. Each router that receives the packet subtracts at least 1 from the count; if the count remains greater than 0, the router forwards the packet, otherwise it discards it and sends an Internet Control Message Protocol (ICMP) message back to the originating host, which may trigger a resend.
Let's see how different OS set the default value of TTL
Device / OS TTL
*nix (Linux/Unix) 64
Windows 128
Solaris/AIX 254