Skip to content

Instantly share code, notes, and snippets.

@beigna
Created January 13, 2017 01:59
Show Gist options
  • Save beigna/8a33ca44a3d57df4fa634d8008156474 to your computer and use it in GitHub Desktop.
Save beigna/8a33ca44a3d57df4fa634d8008156474 to your computer and use it in GitHub Desktop.
Traffic Shaping on EdgeMax
set traffic-policy shaper WorldIn description "Download"
set traffic-policy shaper WorldIn bandwidth 9600kbit
set traffic-policy shaper WorldIn class 10 description "interactive"
set traffic-policy shaper WorldIn class 10 bandwidth 20%
set traffic-policy shaper WorldIn class 10 ceiling 100%
set traffic-policy shaper WorldIn class 10 match dns ip destination port 53
set traffic-policy shaper WorldIn class 10 match ssh ip destination port 22
set traffic-policy shaper WorldIn class 10 match icmp
set traffic-policy shaper WorldIn class 20 description "surfing"
set traffic-policy shaper WorldIn class 20 bandwidth 30%
set traffic-policy shaper WorldIn class 20 ceiling 100%
set traffic-policy shaper WorldIn class 20 match web ip destination ports 0-1023
set traffic-policy shaper WorldIn default bandwidth 20%
set traffic-policy shaper WorldIn default ceiling 100%
set interfaces switch switch0 traffic-policy out WorldIn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment