ip ttl

Modifies the time-to-live (TTL) threshold value.
Syntax
ip ttl threshold-value
no ip ttl threshold-value
Command Default

The default value for the TTL threshold is 64.

Parameters
threshold-value
Sets the time TTL for packets on the network. The range is from 1 to 255 hops. The default is 64 hops.
Modes

Global configuration mode

Usage Guidelines

The time to live (TTL) threshold prevents routing loops by specifying the maximum number of router hops an IP packet originated by the Layer 3 switch can travel through. Each device capable of forwarding IP that receives the packet decrements (decreases) the packet TTL by one. If a device receives a packet with a TTL of 1 and reduces the TTL to zero, the device drops the packet.

The no form of the command resets TTL to 64 hops.

Examples

The following example sets the TTL value to 25 hops.

device(config)# ip ttl 25