Managing L2TP
Configuring an E-series router for B-RAS allows it to operate as an LAC with default settings. You can modify the default settings as follows:
This also applies to an LNS, but there is no default configuration that enables the LNS.
- Specify the time period for which the router maintains dynamic destinations, tunnels, or sessions after termination.
This also applies to an LNS, but there is no default configuration that enables the LNS.
When the router is established as an LAC or LNS and is creating destinations, tunnels, and sessions, you can manage them as follows:
- Prevent the creation of new sessions, tunnels, and destinations.
- Close and reopen all or selected destinations, tunnels, and sessions.
NOTE: All the commands in this section apply to both the LAC and the LNS.
l2tp drain
- Use to prevent the creation of new destinations, tunnels, and sessions on the router.
- This command and the l2tp shutdown command both affect the administrative state of L2TP on the router. 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.
- Example
host1(config)#l2tp drainUse the no version to enable the creation of sessions on a tunnel. l2tp drain destination
- Use to prevent the creation of new tunnels and sessions at a destination.
- This command and the l2tp shutdown destination command both affect the administrative state of L2TP for the destination. 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.
- Example
host1(config)#l2tp drain destination ip 172.31.1.98Use the no version to enable the creation of tunnels and sessions for a destination. l2tp drain tunnel
- Use to prevent the creation of new sessions for a tunnel.
- This command and the l2tp shutdown 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.
- Example
host1(config)#l2tp drain tunnel virtual-router default ip 172.31.1.98 isp.comUse the no version to enable the creation of a tunnel. l2tp retransmission
- Use to specify the number of retransmission retries.
- Use the established keyword to apply the retry count only to established tunnels.
- Use the not-established keyword to apply the retry count only to tunnels that are not established.
- If you do not include a keyword, the router applies the retry count to both established and nonestablished tunnels.
- Example
host1(config)#l2tp retransmission 4 establishedUse the no version to set the retransmission retry count to the default, 5. l2tp shutdown
- Use to close all destinations, tunnels, and sessions, and to prevent the creation of new destinations, tunnels, and sessions on the router.
- This command and the l2tp drain command both affect the administrative state of L2TP on the router. 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.
- Example
host1(config)#l2tp shutdownUse the no version to enable the creation of new destinations, tunnels, and sessions. l2tp shutdown destination
- Use to close all tunnels and sessions for a destination and to prevent the creation of tunnels and sessions for that destination.
- This command and the l2tp drain destination command both affect the administrative state of L2TP for the destination. 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.
- Example
host1(config)#l2tp shutdown destination 1Use the no version to enable the creation of new tunnels and sessions for a destination. l2tp shutdown session
host1(config)#l2tp shutdown session 1/1/1The no version has no effect, because sessions can be created only dynamically at this release. l2tp shutdown tunnel
- Use to close all sessions in a tunnel and to prevent the creation of sessions in a tunnel.
- This 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.
- Example
host1(config)#l2tp shutdown tunnel 1/isp.comUse the no version to enable the creation of new sessions for the tunnel.