Configuring Groups for LNS Sessions

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:

  1. Define an L2TP destination profile.
    host1(config)#l2tp destination profile abc virtual-router default ip address 10.10.10.1
  2. Define a session limit group in L2TP Destination Profile Configuration mode.
    host1(config-l2tp-dest-profile)#sessions-limit-group g1
  3. Define the maximum number of sessions allowed in the group.
    host1(config-l2tp-dest-profile-sessions-limit-group)#max-sessions 8000
  4. To view the output, use the show l2tp destination profile command.
    host1#show l2tp destination profile abc

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:

  1. Configure a remote host name.
    host1(config-l2tp-dest-profile)#remote host xyz
  2. Assign a sessions limit group name for the remote host.
    host1(config-l2tp-dest-profile-host)#sessions-limit-group g1

    Note: Ensure that the group name is already defined under the destination profile.

  3. To view the output, use the show l2tp destination profile command.
    host1#show l2tp destination profile abc

Related Documentation