[Contents] [Prev] [Next] [Index] [Report an Error]

Applying a Layer 2 Policer to a Gigabit Ethernet Interface

To rate-limit traffic by attaching a policer to Gigabit Ethernet interface, include the layer2-policer statement with the direction, type, and name of the policer:

[edit interfaces ge-fpc/pic/port unit 0]
layer2-policer {
input-policer policer-name;
input-three-color policer-name;
output-policer policer-name;
output-three-color policer-name;
}

The direction (input or output) and type (policer or three-color) are combined into one statement and the policer named must be properly configured.

One input or output policer of either type can be configured on the interface.

Examples: Applying Layer 2 Policers to a Gigabit Ethernet Interface

Apply color-blind and color-aware two-rate TCM policers as input and output policers to a Gigabit Ethernet interface:

ge-1/0/0 {
unit 0
layer2-policer {
input-three-color trTCM1-cb;    # Apply the trTCM1-color-blind policer.
output-three-color trTCM1-ca;    # Apply the trTCM1-color-aware policer.
}
}

Apply two-level and color-blind single-rate TCM policers as input and output policers to a Gigabit Ethernet interface:

ge-1/0/0 {
unit 1
layer2-policer {
input-policer two-color-policer;    # Apply a two-color policer.
output-three-color srTCM2-cb;    # Apply the srTCM1-color-blind policer.
}
}

Apply a color-aware single-rate TCM policer as output policer on a Gigabit Ethernet interface:

ge-1/0/0 {
unit 2
layer2-policer {
output-three-color srTCM3-ca {    # Apply the srTCM3-color-aware policer.
}
}

[Contents] [Prev] [Next] [Index] [Report an Error]