ttl <COUNT>

no ttl


Sets the TTL (time-to-live), also known as the hop count, for tunneled packets. If not configured, the default value of 64 is used for the tunnel. (The hop count of the original packets is not changed.) A maximum of four different TTL values can be used at the same time by all tunnels on the switch. For example, if tunnel-1 has TTL 10, tunnel-2 has TTL 20, tunnel-3 has TTL 30, and tunnel-4 has TTL 40, then tunnel-5 cannot have a unique TTL value, it must reuse one of the values assigned to the other tunnels (10, 20, 30, 40).

The no form of this command sets TTL to the default value of 64.

Command context




Specifies the hop count. Range: 1 to 255. Default: 64.


Administrators or local user group members with execution rights for this command.


Defines a TTL of 55 for IPv6 in IPv4 tunnel 27.
switch(config)# interface tunnel 27 mode ip 6in4
switch(config-ip-if)# ttl 55
Sets the TTL for IPv6 in IPv4 tunnel 27 to the default value of 64.
switch(config)# interface tunnel 27
switch(config-ip-if)# no ttl