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-defaultt-class interface rule traffic scheduler queue drop statisticsgroup type type class profile profile profile profile-------- ------------ ----- ----------- --------- ------- ------- ----------l2tp-session queue best-effort default default default defaultConfiguring 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:
See Configuring Traffic Classes That Define Service Levels.
See Configuring Queue Profiles to Manage Buffers and Thresholds.
See Configuring a Scheduler Hierarchy.
To configure QoS for an L2TP LNS session:
- Remove the best-effort traffic class rule from the IP interface type of the server-default QoS profile.
host1(config)#qos-profile server-defaulthost1(config-qos-profile)#no ip queue traffic-class best-efforthost1(config-qos-profile)#exit- 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 tcGroup1host1(config-traffic-class-group)#traffic-class voicehost1(config-traffic-class-group)#exit- Configure the QoS profile.
- Create the QoS profile, and enter QoS Profile Configuration mode.
host1(config)#qos-profile l2tpQpro25host1(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 400khost1(config-qos-profile)#lt2p-session queue traffic-class voice scheduler-profile 100khost1(config-qos-profile)#exithost1(config)#
- Attach the QoS profile to the interface on which you have configured L2TP.
host1(config)#interface gigabitEthernet 6/0host1(config-if)#qos-profile- (Optional) Verify the new QoS profile configuration.
host1(config)#show qos-profile l2tpQpro25qos-profile l2tpQpro25:t-class interface rule traffic scheduler queue drop statisticsgroup type type class profile profile profile profile-------- --------- ----- ----------- --------- ------- ------- ----------l2tp-session queue best-effort 400k default default defaulttcGroup1 l2tp-session queue voice 100k default default defaultConfiguring QoS for an L2TP LAC Session
Before you configure QoS for an L2TP LAC session:
See Configuring Traffic Classes That Define Service Levels.
See Configuring Queue Profiles to Manage Buffers and Thresholds.
See Configuring a Scheduler Hierarchy.
To configure QoS for an L2TP LAC session:
- Create the QoS profile, and enter QoS Profile Configuration mode.
host1(config)#qos-profile l2tpQpro25host1(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 400khost1(config-qos-profile)#lt2p-session queue traffic-class voice scheduler-profile 100khost1(config-qos-profile)#exithost1(config)#
- Attach the QoS profile to the interface on which you have configured L2TP.
host1(config)#interface gigabitEthernet 6/0host1(config-if)#qos-profile l2tpQpro25- (Optional) Verify the new QoS profile configuration.
host1(config)#show qos-profile l2tpQpro25qos-profile l2tpQpro25:t-class interface rule traffic scheduler queue drop statisticsgroup type type class profile profile profile profile-------- --------- ----- ----------- --------- ------- ------- ----------l2tp-session queue best-effort 400k default default defaulttcGroup1 l2tp-session queue voice 100k default default default
- Supported Interface Types for QoS Profiles
- Sample Scheduler Hierarchies for L2TP
- group command
- interface command
- qos-profile command
- queue command
- scheduler-profile command
- show qos-profile command
- traffic-class command