Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Setting the L2TP Tunnel Idle Timeout

You can configure the LAC or the LNS to specify how long a tunnel without any sessions remains active. The idle timer starts when the last session on the tunnel is terminated. When the timer expires the tunnel is disconnected. This idle timeout frees up resources otherwise consumed by inactive tunnels.

If you set the idle timeout value to zero, the tunnel is forced to remain active indefinitely after the last session is terminated until one of the following occurs:

  • You issue the clear services l2tp tunnel command.
  • The remote peer disconnects the tunnel.

Best Practice: Before you downgrade to a Junos OS Release that does not support this statement, we recommend that you explicitly unconfigure the feature by including the no idle-timeout statement at the [edit services l2tp tunnel] hierarchy level.

To set the tunnel idle timeout:

  • Configure the timeout period.
    [edit services l2tp tunnel]user@host# set idle-timeout seconds

Published: 2012-11-29