# Configuring QoS for Tunnel-Server Ports for L2TP LNS Sessions

You can configure QoS for a tunnel-service port that can be used as a dynamic interface associated with an L2TP LNS session.

Before you configure QoS for a tunnel-server port:

- Configure the dedicated or shared tunnel-server port.

  See JunosE Physical Layer Configuration Guide.

  | Note: Dedicated and shared tunnel servers do not support QoS profiles on interfaces stacked on the server-port.

- 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 the tunnel-server port:

1. Create the QoS profile.
   host1(config)#qos-profile lns-tsport
2. Configure group nodes for the tunnel-server ports.
   host1(config-qos-profile)#ip queue traffic-class best-effort scheduler-profile business-data queue-profile data host1(config-qos-profile)#ip queue traffic-class video scheduler-profile video queue-profile video host1(config-qos-profile)#ip queue traffic-class voice scheduler-profile voice queue-profile voice host1(config-qos-profile)#server-port group video host1(config-qos-profile)#server-port group data host1(config-qos-profile)#server-port group voice scheduler-profile strict-priority
3. Create and attach the QoS port-type profile for server ports.
   host1(config)#qos-port-type-profile server-port qos-profile lns-tsport

#### Related Documentation

- For more information about tunnel-server ports, see JunosE Physical Layer Configuration Guide
- group
- interface
- node
- qos-port-type-profile
- qos-profile
- queue
- scheduler-profile
- traffic-class
- tunnel-server