# Configuring QoS for an L2TP Session

This section provides general procedures for configure QoS for an L2TP LNS session or a LAC L2TP session.

For both procedures, the resulting scheduler hierarchy depends on the type of network architecture that you use.

L2TP session interfaces have default QoS profiles and scheduler nodes. The default configuration includes the following settings:

    host1(config)# show qos-profile l2tp-session-default
    t-class   interface   rule    traffic   scheduler  queue   drop   statistics
     group      type      type     class     profile  profile profile  profile
    -------- ------------ ----- ----------- --------- ------- ------- ----------
             l2tp-session queue best-effort default   default default default

- Configuring QoS for an L2TP LNS Session
- Configuring QoS for an L2TP LAC Session

## Configuring QoS for an L2TP LNS Session

When you configure QoS for an LNS, you must modify the server-default QoS profile to remove the best-effort traffic class rule from the IP interface type. This enables you to create L2TP session queues, and is not required to provide QoS on an LAC.

Before you configure QoS for an L2TP LNS session:

- Configure the traffic classes.

  See Configuring Traffic Classes That Define Service Levels.

- Configure the queuing hierarchy.

  See Configuring Queue Profiles to Manage Buffers and Thresholds.

- Configure the scheduler hierarchy and shaping with scheduler profiles.

  See Configuring a Scheduler Hierarchy.

To configure QoS for an L2TP LNS session:

1. Remove the best-effort traffic class rule from the IP interface type of the server-default QoS profile.
   host1(config)#qos-profile server-default host1(config-qos-profile)#no ip queue traffic-class best-effort host1(config-qos-profile)#exit
2. Create a traffic-class group, and enter Traffic Class Group Configuration mode. Add the traffic class voice to the new group.
   host1(config)#traffic-class-group tcGroup1 host1(config-traffic-class-group)#traffic-class voice host1(config-traffic-class-group)#exit
3. Configure the QoS profile.
   - Create the QoS profile, and enter QoS Profile Configuration mode.
     host1(config)#qos-profile l2tpQpro25 host1(config-qos-profile)#
   - Add queues for L2TP session interfaces to the QoS profile.
     host1(config-qos-profile)#lt2p-session queue traffic-class best-effort scheduler-profile 400k host1(config-qos-profile)#lt2p-session queue traffic-class voice scheduler-profile 100k host1(config-qos-profile)#exit host1(config)#
4. Attach the QoS profile to the interface on which you have configured L2TP.
   host1(config)#interface gigabitEthernet 6/0 host1(config-if)#qos-profile
5. (Optional) Verify the new QoS profile configuration.

       host1(config)#show qos-profile l2tpQpro25

       qos-profile l2tpQpro25:
       t-class  interface    rule    traffic   scheduler queue  drop   statistics
        group     type       type     class     profile  profile profile  profile
       -------- ---------    -----  -------- --------- ------- ------- ----------
                l2tp-session queue best-effort 400k      default default default
       tcGroup1 l2tp-session queue voice       100k      default default default

## Configuring QoS for an L2TP LAC Session

Before you configure QoS for an L2TP LAC session:

- Configure traffic classes.

  See Configuring Traffic Classes That Define Service Levels.

- Configure the queuing hierarchy.

  See Configuring Queue Profiles to Manage Buffers and Thresholds.

- Configure the scheduler hierarchy and shaping with scheduler profiles.

  See Configuring a Scheduler Hierarchy.

To configure QoS for an L2TP LAC session:

1. Configure the QoS profile.
   - Create the QoS profile, and enter QoS Profile Configuration mode.
     host1(config)#qos-profile l2tpQpro25 host1(config-qos-profile)#
   - Add queues for L2TP session interfaces to the QoS profile.
     host1(config-qos-profile)#lt2p-session queue traffic-class best-effort scheduler-profile 400k host1(config-qos-profile)#lt2p-session queue traffic-class voice scheduler-profile 100k host1(config-qos-profile)#exit host1(config)#
2. Attach the QoS profile to the interface on which you have configured L2TP.
   host1(config)#interface gigabitEthernet 6/0 host1(config-if)#qos-profile l2tpQpro25
3. (Optional) Verify the new QoS profile configuration.

       host1(config)#show qos-profile l2tpQpro25

       qos-profile l2tpQpro25:

       t-class  interface    rule    traffic   scheduler queue  drop   statistics
        group     type       type     class     profile  profile profile  profile
       -------- ---------    ----- --------- --------- ------- ------- ----------
                l2tp-session queue best-effort 400k      default default default
       tcGroup1 l2tp-session queue voice       100k      default default default

#### Related Documentation

- Supported Interface Types for QoS Profiles
- Sample Scheduler Hierarchies for L2TP
- group
- interface
- qos-profile
- queue
- scheduler-profile
- show qos-profile
- traffic-class