Hello,
@smitmail42 wrote:
So I've got a 100m cct coming in ge-0/0/0 and I need to dynamically allocate 20/80 out to ge-0/0/1 & 2 - whereby ge-0/0/2 gets at least 80M (but can also be allocated whatever part of the 20m ge-0/0/1 isn't using)
if that makes sense!
Think of it this way: 100Mbps coming into ge-0/0/0 has already arrived, You cannot do anything about it.
Now, think of what composition this traffic has:
- if all of it (100%) needs to go out of ge-0/0/1, then put a 20M output policer/shaper on ge-0/0/1, then ge-0/0/1 will get 20%. ge-0/0/2 will get nothing but there was nothing towards ge-0/0/2 in the 1st place
- if 50% of ge-0/0/0-received traffic needs to go out of ge-0/0/1 and another 50% of it needs to go out of ge-0/0/2, then the same ge-0/0/1 output policer/shaper will rate-limit down to 20Mbps which is Your goal as stated above, and ge-0/0/2 will get 50Mbps as offered to it.
- if 10% of ge-0/0/0-received traffic needs to go out of ge-0/0/1 and 90% out of ge-0/0/2, then 20Mbps output policer/shaper on ge-0/0/1 will not get triggered. ge-0/0/2 will receive full 90Mbps which meets Your goal "ge-0/0/2 must be allocated whatever ge-0/0/1 isn't using" - ge-0/0/1 "will not use" 10Mbps out of "allocated" 20.
- if 0% of ge-0/0/0-received traffic needs to go out of ge-0/0/1 and 100% out of ge-0/0/2, then 20Mbps output policer/shaper on ge-0/0/1 will not get triggered. ge-0/0/2 will receive full 100Mbps which meets Your goal "ge-0/0/2 must be allocated whatever ge-0/0/1 isn't using" - ge-0/0/1 "will not use" 20Mbps out of "allocated" 20.
All-in-all, simple 20Mbps output policer/shaper on ge-0/0/1 will do what You asked.
If Your ask is actually not what You have in mind, then this is another story
HTH
Thx
Alex