1)
set firewall family ethernet-switching filter filter-500m term limit then accept
set firewall family ethernet-switching filter filter-500m term limit then policer policer-500m
2)
set firewall policer policer-500m if-exceeding bandwidth-limit 500m
set firewall policer policer-500m if-exceeding burst-size-limit 250k
set firewall policer policer-500m then discard
3)
set interfaces ge-0/0/1 unit 0 family ethernet-switching filter input filter-500m
set firewall family ethernet-switching filter filter-100m term limit then accept
set firewall family ethernet-switching filter filter-100m term limit then policer policer-100m
set firewall family ethernet-switching filter filter-300m term limit then accept
set firewall family ethernet-switching filter filter-300m term limit then policer policer-300m
set firewall family ethernet-switching filter filter-500m term limit then accept
set firewall family ethernet-switching filter filter-500m term limit then policer policer-500m
set firewall family ethernet-switching filter filter-30m term limit then accept
set firewall family ethernet-switching filter filter-30m term limit then policer policer-30m
set firewall policer policer-100m if-exceeding bandwidth-limit 100m
set firewall policer policer-100m if-exceeding burst-size-limit 250k
set firewall policer policer-100m then discard
set firewall policer policer-300m if-exceeding bandwidth-limit 300m
set firewall policer policer-300m if-exceeding burst-size-limit 250k
set firewall policer policer-300m then discard
set firewall policer policer-500m if-exceeding bandwidth-limit 500m
set firewall policer policer-500m if-exceeding burst-size-limit 250k
set firewall policer policer-500m then discard
set firewall policer policer-30m if-exceeding bandwidth-limit 30m
set firewall policer policer-30m if-exceeding burst-size-limit 250k
set firewall policer policer-30m then discard