You can define and configure session limit groups under the L2TP destination profile. Under each destination profile, you can define a maximum of 4096 session limit groups.
The maximum session limit is applied for each of the session limit groups in L2TP Destination Profile Sessions Limit Group Configuration mode.
![]() | Note: The max-sessions command is also supported in L2TP Destination Profile Configuration mode and L2TP Destination Profile Host Configuration mode. |
When a session is requested, the LNS first checks the maximum sessions set for the L2TP destination profile. If no limit is set, or if the current session count is less than the configured limit, the LNS then performs the same check on the L2TP destination sessions limit profile. If no limit is set, or if the current session limit is less than the configured limit, the LNS then performs the same check on the L2TP destination host profile limit. If no limit is set, or if the current session count is also less than the L2TP destination host profile limit, then the new session can be established. If a session request exceeds any of the maximum sessions settings, the LNS rejects the session.
To set the maximum sessions allowed for a group for the specified destination, use the max-sessions command in L2TP Destination Profile Sessions Limit Group Configuration mode. You can configure this as follows:
To set the maximum sessions allowed for a group for the specified host, use the max-sessions command in L2TP Destination Profile Sessions Limit Group Configuration mode. You can configure this as follows:
![]() | Note: Ensure that the group name is already defined under the destination profile. |