diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-08-05 12:27:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-05 12:27:52 +0200 |
commit | 1e98f1964cd4168138a432f6bb24daadb1d1964b (patch) | |
tree | e5521240e272f3ca7c5378e98fb6093221e5508d /docs/qos.rst | |
parent | b1c07c89b29f6f2f370677aa96385d569d4a1bfc (diff) | |
parent | 046e7cebaffdfec37edbbdf2e24943382c30ce1b (diff) | |
download | vyos-documentation-1e98f1964cd4168138a432f6bb24daadb1d1964b.tar.gz vyos-documentation-1e98f1964cd4168138a432f6bb24daadb1d1964b.zip |
Merge pull request #302 from currite/qos-examples
qos: fix and complete examples
Diffstat (limited to 'docs/qos.rst')
-rw-r--r-- | docs/qos.rst | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/docs/qos.rst b/docs/qos.rst index 0fb1233b..a4e56665 100644 --- a/docs/qos.rst +++ b/docs/qos.rst @@ -1098,14 +1098,12 @@ A simple example of Shaper using priorities. .. code-block:: none set traffic-policy shaper MY-HTB bandwidth '50mbit' - set traffic-policy shaper MY-HTB class 10 bandwidth '10%' - set traffic-policy shaper MY-HTB class 10 ceiling '15%' - set traffic-policy shaper MY-HTB class 10 match ADDRESS10 ip source address '192.168.10.0/24' - set traffic-policy shaper MY-HTB class 10 priority '0' - set traffic-policy shaper MY-HTB class 10 queue-type 'fair-queue' + set traffic-policy shaper MY-HTB class 10 bandwidth '20%' + set traffic-policy shaper MY-HTB class 10 match DSCP ip dscp 'EF' + set traffic-policy shaper MY-HTB class 10 queue-type 'fq-codel' set traffic-policy shaper MY-HTB class 20 bandwidth '10%' set traffic-policy shaper MY-HTB class 20 ceiling '50%' - set traffic-policy shaper MY-HTB class 20 match ADDRESS20 ip source address '192.168.20.0/24' + set traffic-policy shaper MY-HTB class 20 match PORT666 ip destination port '666' set traffic-policy shaper MY-HTB class 20 priority '3' set traffic-policy shaper MY-HTB class 20 queue-type 'fair-queue' set traffic-policy shaper MY-HTB class 30 bandwidth '10%' @@ -1117,7 +1115,6 @@ A simple example of Shaper using priorities. set traffic-policy shaper MY-HTB default ceiling '100%' set traffic-policy shaper MY-HTB default priority '7' set traffic-policy shaper MY-HTB default queue-type 'fair-queue' - Applying a traffic policy @@ -1129,17 +1126,21 @@ Once a traffic-policy is created, you can apply it to an interface: set interfaces etherhet eth0 traffic-policy out WAN-OUT -You can only apply one policy per interface and direction, but you can -have several policies working at the same time: +You can only apply one policy per interface and direction, but you could +reuse a policy on different interfaces and directions: .. code-block:: none set interfaces ethernet eth0 traffic-policy in WAN-IN set interfaces etherhet eth0 traffic-policy out WAN-OUT - set interfaces etherhet eth1 traffic-policy out WAN-OUT - set interfaces ethernet eth2 traffic-policy out LAN-IN + set interfaces etherhet eth1 traffic-policy in LAN-IN + set interfaces etherhet eth1 traffic-policy out LAN-OUT + set interfaces ethernet eth2 traffic-policy in LAN-IN set interfaces ethernet eth2 traffic-policy out LAN-OUT - + set interfaces etherhet eth3 traffic-policy in TWO-WAY-POLICY + set interfaces etherhet eth3 traffic-policy out TWO-WAY-POLICY + set interfaces etherhet eth4 traffic-policy in TWO-WAY-POLICY + set interfaces etherhet eth4 traffic-policy out TWO-WAY-POLICY Getting queueing information ---------------------------- |