we have different VLANs which are running over a VLAN trunk and want to perform egress traffic shaping on these different vlans.
For example, VLAN A should not exceed 5 mbit outbound, VLAN B should not exceed 15 mbit outbound and VLAN C should not exceed 25 mbit outbound. For all of these VLANs, there exist RVIs too.
On physical interfaces, I would do this with class of service:
set class-of-service interfaces ge-0/0/7 shaping-rate 25m
But this command isn't valid for vlan interfaces.
Is there any trick to do this?
Plattform is a EX4200 with JunOS 10.2.
Egress policing is not available on the ex series switches afaik.
I believe you could do it provided that you map each VLAN into a separate Queue, and then you can configure a shaping-rate for the queue to transmit at specific data-rates.
I believe something like this would work --
don't forget you need to apply a scheduler-map to the interface, etc etc, but that should apply the shaping you desire.
Surely if you had more than one interface on the same scheduler you would share the bandwidth configured?