ttl

Syntax

ttl <COUNT>

no ttl

Description

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

config-gre-if

config-ip-if

Parameters

<COUNT>

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

Authority

Administrators

Examples

Defines a TTL of 99 for GRE tunnel 33.

switch(config)# interface tunnel 33 mode gre ipv4
switch(config-gre-if)# ttl 99

Sets the TTL for GRE tunnel 33 to the default value of 64.

switch(config)# interface tunnel 33
switch(config-gre-if)# no ttl

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