How to limit bandwidth on a GRE tunnel?

Hello community.
I have just setup a 4 GRE tunnels between 4 points over internet.
I need to limit the 1st Tunnel to 100Mbit/s, the 2nd and 3rd Tunnel to 250Mbit/s and the 4th Tunnel to 500Mbit/s.
I have a 10G connection on all points.

Can someone provide me a example on how to do it?
I’ve tried this config (starting for tun1), but it doesn’t work:

show qos
 interface tun1 {
     egress 100MbitShaper
 }
 policy {
     shaper 100MbitShaper {
         class 10 {
             bandwidth 80mbit
             ceiling 100%
             queue-type fq-codel
         }
         default {
             bandwidth 100mbit
             ceiling 100%
         }
     }
 }

Seems to me like you’re missing root BW settings.
set traffic-policy shaper 100MbitShaper bandwidth ‘100mbit’
Linux tc show commands can show what’s queues are configured, and packet counts. Steep learning curve though

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.