interfaces tunnel <tunx> parameters ip ttl <ttl>
Sets the time-to-live (TTL) value to write into the IP header of a tunnel packet.
The TTL byte of the encapsulated packet is copied into the TTL byte of the IP header of a tunnel packet.
- tunx
- The identifier of a tunnel interface. The identifier ranges from tun0 through tunx, where x is a nonnegative integer.
- ttl
- The value to write into the TTL field in the IP header of a tunnel packet (the carrier packet). The value ranges from 0 through 255, where 0 means a tunnel packet copies the TTL value from the packet being encapsulated (the passenger packet). The default value is 255.
Configuration mode
interfaces {
tunnel tunx {
parameters {
ip {
ttl ttl
}
}
}
}
The TTL field of the IP header of a packet limits the lifetime of an IP packet and prevents indefinite packet looping.
Use the set form of this command to set the TTL value to write into the TTL field of the IP header for a packet that traverses a tunnel interface.
Use the delete form of this command to restore the default behavior for the TTL field, that is, the TTL byte of the encapsulated packet is copied into the TTL byte of the IP header of the tunnel packet.
Use the show form of this command to display the current TTL value to write into the IP header of a tunnel packet.