Juniper JUNOS OS 10.4 - FOR EX REV 1 Manual page 3777

For ex series ethernet switches
Table of Contents

Advertisement

Step-by-Step
Procedure
Results
Copyright © 2010, Juniper Networks, Inc.
To configure a custom DSCP classifier, custom EXP rewrite rule, and a policer on the
ingress PE switch:
Import the default DSCP classifier classes to the custom DSCP classifier that you
1.
are creating:
[edit class-of-service]
user@switch# set classifiers dscp dscp1 import default
Add the expedited-forwarding class to this custom DSCP classifier, specifying a
2.
loss priority and code point:
[edit class-of-service]
user@switch# set classifiers dscp dscp1 forwarding-class expedited-forwarding
loss-priority low code-points 000111
Specify the values for the custom EXP rewrite rule,
3.
[edit class-of-service]
user@switch# set rewrite-rules exp e1 forwarding-class expedited-forwarding
loss-priority low code-point 111
Bind the DSCP classifier to the CCC interface:
4.
[edit ]
user@switch# set class-of-service interfaces ge-0/0/1 unit 0 classifier dscp1
Specify the number of bits per second permitted, on average, for the firewall policer,
5.
which will later be applied to the LSP:
[edit firewall]
set policer mypolicer if-exceeding bandwidth-limit 500m
Specify the maximum size permitted for bursts of data that exceed the given
6.
bandwidth limit for this policer:
[edit firewall policer]
set mypolicer if-exceeding burst-size-limit 33553920
Discard traffic that exceeds the rate limits for this policer:
7.
[edit firewall policer]
set mypolicer then discard
To reference the policer, configure a filter term that includes the policer action:
8.
[edit firewall]
user@switch# set family any filter myfilter term t1 then policer mypolicer
Apply the filter to the LSP:
9.
[edit protocols mpls]
set label-switched-path lsp_to_pe2_ge1 policing filter myfilter
Display the results of the configuration:
[edit]
user@switch# show
class-of-service {
classifiers {
dscp dscp1 {
Chapter 133: Example of MPLS Configuration
e1
:
3673

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os 10.4

Table of Contents