Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Shutting Down Destinations, Tunnels, and Sessions

    You can configure how the router shuts down L2TP destinations, tunnels, and sessions. You can specify the following shutdown methods, which also prevent the creation of new tunnels:

    1. Closing and Preventing Existing and New Destinations, Tunnels, and Sessions on the Router
    2. Closing and Preventing Existing and New Tunnels and Sessions for a Destination
    3. Closing and Preventing Existing and New Sessions in a Specific Tunnel
    4. Closing a Specific Session

    Closing and Preventing Existing and New Destinations, Tunnels, and Sessions on the Router

    You use the l2tp shutdown command to close all existing destinations, tunnels, and sessions, and to prevent the creation of new destinations, tunnels, and sessions on the router.

    If an SCCRQ message is received when the l2tp shutdown command is configured, then a StopCCN packet along with the appropriate Result Code AVP (Result Code value set to 2 and Error Code to 4) is sent to the LAC to indicate that the LNS is shut down.

    The l2tp shutdown and l2tp drain commands affect the administrative state of L2TP on the router. Although each command has a different effect, the no version of each command leaves L2TP in the enabled state.

    • To close all destinations, tunnels, and sessions on the router:
      host1(config)#l2tp shutdown

    Closing and Preventing Existing and New Tunnels and Sessions for a Destination

    You use the l2tp shutdown destination command to close all existing tunnels and sessions for a destination and to prevent the creation of tunnels and sessions for that destination.

    The l2tp shutdown destination and l2tp drain destination commands affect the administrative state of L2TP for the destination. Although each command has a different effect, the no version of each command leaves L2TP in the enabled state.

    • To close tunnels and sessions, and prevent the creation of new tunnels and sessions for the specified destination:
      host1(config)#l2tp shutdown destination 1

    Closing and Preventing Existing and New Sessions in a Specific Tunnel

    You use the l2tp shutdown tunnel command to close all sessions in a tunnel and to prevent the creation of sessions in a tunnel.

    The l2tp shutdown tunnel command and the l2tp drain tunnel command both affect the administrative state of L2TP for the tunnel. Although each command has a different effect, the no version of each command is equivalent. Each command’s no version leaves L2TP in the enabled state.

    • To close all existing sessions in a specific tunnel and prevent creation of new sessions:
      host1(config)#l2tp shutdown tunnel 1/isp.com

    Closing a Specific Session

    You use the l2tp shutdown session command to close the specified session.

    • To close a specific session:
      host1(config)#l2tp shutdown session 1/1/1

    Published: 2014-08-20