Configuring an Interface Policer Using Tricolor Marking Policing
You can configure a policer to limit traffic on an interface in the ingress or egress direction. Instead of policing each address family individually on an interface, you can aggregate policing with one policer. This single aggregated policer is known as the logical-interface policer. You can configure tricolor marking policing to limit the bandwidth through a logical interface.
To configure a policer on a logical interface using tricolor marking policing, include the
actionstatement and thelogical-interface-policerstatement at the [edit firewall three-color-policername] hierarchy level:[edit firewall]three-color-policername{action {loss-priority high then discard;}logical-interface-policer;single-rate {(color-aware | color-blind);committed-information-ratebps;committed-burst-sizebytes;excess-burst-sizebytes;}two-rate {(color-aware | color-blind);committed-information-ratebps;committed-burst-sizebytes;peak-information-ratebps;peak-burst-sizebytes;}}For detailed information about bandwidth policers on a logical interface, see Configuring an Aggregate Policer.
You can configure separate policing on the ingress and egress direction on the logical interface.
Example: Rate-Limiting Bandwidth Using Tricolor Marking Policing
Configure tricolor marking policing on a logical interface to rate-limit the bandwidth on the logical interface.
[edit firewall]three-color-policer trtcm-1 {action {loss-priority high then discard;}logical-interface-policer;two-rate {color-blind;committed-information-rate 1500000;committed-burst-size 150k;peak-information-rate 3m;peak-burst-size 300k;}}