# Configuring L2TP Dial-Out

To configure L2TP dial-out:

1. Enable the creation of a dial-out session.
   host1(config)#l2tp dial-out target 10.10.0.0 255.255.0.0 L2TP-dial-out.de.dt profile dialOut
2. (Optional) Set the maximum time allowed for successful establishment of an L2TP dial-out session.
   host1(config)#l2tp dial-out connecting-timer-value 30
3. (Optional) Set how long the dial-out session stays in the dormant state waiting for a new trigger after the associated L2TP outgoing call ends.
   host1(config)#l2tp dial-out dormant-timer-value 300
4. (Optional) Set the maximum number of trigger packets held in buffer while the dial-out session is being established.
   host1(config)#l2tp dial-out max-buffered-triggers 50

You can also:

- Manually delete a dial-out session.
  host1#l2tp dial-out session delete 10.10.0.0
- Reset a dial-out session by forcing it to the dormant state.
  host1#l2tp dial-out session reset 10.10.0.0

l2tp dial-out connecting-timer-value

- Use to set the maximum time allowed for attempts to establish L2TP dial-out sessions.
- If the session fails to be established before the connecting timer expires, subsequent attempts to establish the dial-out session to the same destination are inhibited temporarily.
- The range is 30–3600 seconds.
- Example
  host1(config)#l2tp dial-out connecting-timer-value 30
- Use the no version to set the connecting timer to the default, 30 seconds.
- See l2tp dial-out connecting-timer-value

l2tp dial-out dormant-timer-value

- Use to set how long the dial-out session waits in the dormant state for a new trigger after the associated L2TP outgoing call ends.
- If no trigger is received before the dormant timer expires, the dial-out session is deleted.
- The range is 0–3600 seconds.
- Example
  host1(config)#l2tp dial-out dormant-timer-value 300
- Use the no version to set the dormant timer to the default, 300 seconds (5 minutes).
- See l2tp dial-out dormant-timer-value

l2tp dial-out max-buffered-triggers

- Use to set the maximum number of buffered trigger packets held for any dial-out session pending the successful establishment of the L2TP session. Once the session is established, the buffered trigger packets are transmitted.
- Trigger packets received when the maximum number of triggers are already buffered are discarded.
- The range of values is 0–50.
- Example
  host1(config)#l2tp dial-out max-buffered-triggers 50
- Use the no version to set the number of trigger buffers to the default, 0.
- See l2tp dial-out max-buffered-triggers

l2tp dial-out session delete

- Use to delete a dial-out session.
- Closes any L2TP outgoing call associated with the dial-out session.
- Example
  host1#l2tp dial-out session delete 10.10.0.0
- There is no no version.
- See l2tp dial-out session delete

l2tp dial-out session reset

- Use to force the dial-out session to the dormant state where it remains until the dormant timer expires or it receives a new trigger.
- Closes any L2TP outgoing call associated with the dial-out session.
- Example
  host1#l2tp dial-out session reset 10.10.0.0
- There is no no version.
- See l2tp dial-out session reset

l2tp dial-out target

- Use to define an L2TP dial-out target. When the router receives packets destined for the target, it creates a dial-out session.
- When you create a target, you must specify the following:
  - ipAddress—IP address of the target
  - ipAddressMask—IP address mask of the target
  - domainName—Domain name used in the outgoing call Access-Request message
  - profileName—Name of profile used to create the interface stack
- Example
  host1(config)#l2tp dial-out target 10.10.0.0 255.255.0.0 L2TP-dial-out.de.dt profile dialOut
- Use the default version to remove the L2TP dial-out route.
- Use the no version to remove the L2TP dial-out route or target.
- See l2tp dial-out target