Skip to content

Instantly share code, notes, and snippets.

@beardicus
Last active February 10, 2026 19:57
Show Gist options
  • Select an option

  • Save beardicus/1415a09537b28681f46e to your computer and use it in GitHub Desktop.

Select an option

Save beardicus/1415a09537b28681f46e to your computer and use it in GitHub Desktop.
EdgeRouter Lite QOS Settings
#
# fair-queue based settings for EdgeRouter Lite traffic shaping
#
# download is typically 30 and change. everything is “default” right
# now, so this isn’t doing much
set traffic-policy shaper download
set traffic-policy shaper download bandwidth 30Mbit
set traffic-policy shaper download default bandwidth 100%
set traffic-policy shaper download default ceiling 100%
set traffic-policy shaper download default queue-type fair-queue
set interfaces ethernet eth1 traffic-policy out download
# upload is typically 5.5-ish. should be clamped at less than 100%
# of advertised bandwidth to avoid buffer bloat and lag
set traffic-policy shaper upload
set traffic-policy shaper upload bandwidth 5Mbit
# guarantee default traffic at least 50% of bandwidth
set traffic-policy shaper upload default bandwidth 50%
set traffic-policy shaper upload default ceiling 100%
set traffic-policy shaper upload default queue-type fair-queue
# crashplan traffic only guaranteed 10%
set traffic-policy shaper upload class 10 bandwidth 10%
set traffic-policy shaper upload class 10 ceiling 90%
set traffic-policy shaper upload class 10 match crashplan ip dscp 8
set traffic-policy shaper upload class 10 queue-type fair-queue
set interfaces ethernet eth0 traffic-policy out upload
@slesru
Copy link

slesru commented Jun 27, 2017

Hmm, no example for firewall marking? :-(

@hlmtre
Copy link

hlmtre commented Feb 8, 2019

So these QoS settings gave me an excellent example to copy and make sense of for my VyOS box (the config translates over 1-to-1; copy and paste). Suddenly QoS makes sense. Thank you.

@lildadou
Copy link

The lower the priority number, the higher the priority. The default priority value is 0, the highest priority
https://docs.vyos.io/en/latest/configuration/trafficpolicy/index.html

(command line of edgeos 3.0.1 says the same)

@beardicus
Copy link
Author

The lower the priority number, the higher the priority. The default priority value is 0, the highest priority
https://docs.vyos.io/en/latest/configuration/trafficpolicy/index.html

(command line of edgeos 3.0.1 says the same)

Looks like the docs were wrong when I set this up: https://forum.vyos.io/t/error-in-vyos-qos-documentation-incl-the-old-vyatta-6-x-docs/5257

Seemed to work for me, but maybe it was just the bandwidth restrictions that helped. Yikes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment