Hi,
Policer is not supported for egress. You can use ingress policing and egress shaping.
root@test# commit
[edit]
'filter'
Referenced filter 'RATE-LIMIT' can not be used as policer not supported on egress
Basic configuration for policer is shown below.
set interfaces ae0 mtu 9216
set interfaces ae0 aggregated-ether-options minimum-links 1
set interfaces ae0 aggregated-ether-options link-speed 1g
set interfaces ae0 aggregated-ether-options lacp active
set interfaces ae0 unit 0 family ethernet-switching vlan members VLAN-TEST
set interfaces ae0 unit 0 family ethernet-switching filter input RATE-LIMIT
set firewall family ethernet-switching filter RATE-LIMIT term one then policer MAX_BANDWIDTH
set firewall family ethernet-switching filter RATE-LIMIT term one then policer MAX_BANDWIDTH
set firewall policer MAX_BANDWIDTH if-exceeding bandwidth-limit 1m
set firewall policer MAX_BANDWIDTH if-exceeding burst-size-limit 200k
set firewall policer MAX_BANDWIDTH then discard
Regards,
Rahul