Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Hierarchical Class of Service User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configuring Dynamic CoS for an L2TP LAC Tunnel

date_range 29-Nov-23

Before you begin, configure the L2TP LAC. See Configuring an L2TP LAC.

In L2TP configurations, IP and L2TP headers are added to packets arriving at a PPP subscriber interface on the LAC before being tunneled to the L2TP network server (LNS).

Classifiers and rewrite rules enable you to properly transfer the ToS (Type of Service) value or the 802.1p value from the inner IP header to the outer IP header of the L2TP packet.

To manage the IP header values for a LAC tunnel:

  1. Configure the classifier for the inner tunnel.
    1. Define the fixed or behavior aggregate (BA) classifier.
      • To configure a fixed classifier:

        content_copy zoom_out_map
        [edit class-of-service interfaces interface-name unit logical-unit-number]
        user@host# set forwarding-class class-name
        
      • To configure a BA classifier:

        content_copy zoom_out_map
        [edit class-of-service]
        user@host#set classifiers (ieee-802.1 | inet-precedence) classifier-name forwarding-class class-name loss-priority level code-points [ aliases ] [ bit-patterns]
        
    2. Apply the classifier to the Layer 2 interface or Layer 3 interface. For Layer 2, you can apply the classifier at the PPP interface or an underlying VLAN interface. For Layer 3, you can apply classifiers to a family of PPP interfaces.
      • To apply the classifier for the IEEE 802.1p value:

        content_copy zoom_out_map
        [edit dynamic-profiles profile-name class-of-service interfaces interface-name unit logical-unit-number classifiers]
        user@host# set ieee-802.1 (classifier-name | default) vlan-tag (inner | outer)
        
      • To apply the classifier for the ToS value:

        content_copy zoom_out_map
        [edit dynamic-profiles profile-name class-of-service interfaces interface-name unit logical-unit-number classifiers]
        user@host# set inet-precedence (classifier-name | default)
        
  2. Configure the rewrite rule for the egress tunnel.
    1. Configure the rewrite rule with the forwarding class and the loss priority value.
      content_copy zoom_out_map
      [edit class-of-service]
      user@host# set rewrite-rules (ieee-802.1 | inet-precedence) rewrite-name forwarding-class class-name loss-priority level code-point (alias | bits) 
      
    2. Apply the rewrite rule to the PPP interface for which the L2TP tunnel is configured.
      • To apply the rewrite-rule for the IEEE 802.1p value:

        content_copy zoom_out_map
        [edit dynamic-profiles profile-name class-of-service interfaces interface-name unit logical-unit-number rewrite-rules]
        user@host# set ieee-802.1 (rewrite-name | default) vlan-tag (outer | outer-and-inner)
        
      • To apply the rewrite rule for the ToS value:

        content_copy zoom_out_map
        [edit dynamic-profiles profile-name class-of-service interfaces interface-name unit logical-unit-number rewrite-rules]
        user@host# set inet-precedence (rewrite-name | default)
        
footer-navigation