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.