Configure tricolor policers and apply them to an interface:
- [edit firewall]
- three-color-policer three-color-policer-color-blind {
- logical-interface-policer;
-
- two-rate {
- color-blind;
- committed-information-rate 1500000;
- committed-burst-size 150;
- peak-information-rate 3;
- peak-burst-size 300;
- }
- }
- three-color-policer three-color-policer-color-aware {
- logical-interface-policer;
-
- two-rate {
- color-aware;
- committed-information-rate 1500000;
- committed-burst-size 150;
- peak-information-rate 3;
- peak-burst-size 300;
- }
- }
- [edit interfaces ge-1/1/0]
- unit 1 {
-
- layer2-policer {
- input-three-color three-color-policer-color-blind;
- output-three-color three-color-policer-color-aware;
- }
- }
Configure a two-color policer and apply it to an interface:
- [edit firewall]
- policer two-color-policer {
- logical-interface-policer;
-
- if-exceeding {
- bandwidth-percent 90;
- burst-size-limit 300;
- }
- then loss-priority-high;
- }
- [edit interfaces ge-1/1/0]
- unit 2 {
-
- layer2-policer {
- input-policer two-color-policer;
- output-policer two-color-policer;
- }
- }