Rate limiting traffic on an EX Series Switch Routed VLAN Interface (RVI) can be accomplished using a policer and firewall filter. This allows you to limit the traffic across specific vlans if required.
Toplogy:
Configuration:
policer icmp { if-exceeding { bandwidth-limit 100k; burst-size-limit 100; } then discard; } family inet { filter icmp_protect { term test { from { destination-address { 10.102.0.1/32; } protocol icmp; } then { policer icmp; count icmp_packet; } } term default { then accept; } } }
Apply the firewall filter to the "input" RVI of VLAN A or VLAN B: