Configuring and Applying IEEE 802.1ad Classifiers
If you apply an IEEE 802.1 classifier to a logical interface, this classifier takes precedence and is not compatible with any other classifier type. For Juniper Networks MX Series 5G Universal Routing Platform interfaces or IQ2 PICs with IEEE 802.1ad frame formats or EX Series switches, you can set the forwarding class and loss priority for traffic on the basis of the three IEEE 802.1p bits (three bits in either the inner virtual LAN (VLAN) tag or the outer VLAN tag) and the drop eligible indicator (DEI) bit. You can apply the default map or customize one or more of the default values.
You then apply the classifier to the interface on which you configure IEEE 802.1ad frame formats.
The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
- Define the custom IEEE 802.1ad map:
Create the classifier by specifying a name for it and defining it as an IEEE-802.1ad (DEI) classifier.
[edit]user@host# edit class-of-service classifiers ieee-802.1ad dot1p_dei_classAssign the forwarding class and loss priority to the code-point alias.
[edit class-of-service classifiers ieee-802.1ad dot1p_dei_class]user@host# set forwarding-class best-effort loss-priority low code-points [0000 1101]
- Apply the classifier to the logical interface:
Specify the interface to which you want to apply the classifier.
[edit]user@host# edit class-of-service interfaces ge-2/0/0 unit 0Specify the name of the classifier you want to apply to the interface.
[edit class-of-service interfaces ge-2/0/0 unit 0]user@host# set classifiers ieee-802.1ad dot1p_dei_class
- Verify the custom IEEE 802.1ad map configuration:[edit]user@host# showclass-of-service {classifiers {ieee-802.1ad dot1p_dei_class {forwarding-class best-effort {loss-priority low code-points [ 0000 1101 ];}}}}class-of-service {interfaces {ge-2/0/0 {unit 0 {classifiers {ieee-802.1ad dot1p_dei_class;}}}}]