summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-08-04 22:46:22 +0200
committerGitHub <noreply@github.com>2020-08-04 22:46:22 +0200
commitaa3ed0cd539b738c234c6ae01fc2f7053c293523 (patch)
treeaabd015f91667ed3e254a2d8efb96712aa311c7a /docs
parent0284bdc9457d96b2f9da7999408fc5eb61d237e7 (diff)
parentf1c38b133517baca9fdc1d7c3c74c314664cc992 (diff)
downloadvyos-documentation-aa3ed0cd539b738c234c6ae01fc2f7053c293523.tar.gz
vyos-documentation-aa3ed0cd539b738c234c6ae01fc2f7053c293523.zip
Merge pull request #298 from currite/ingress-shaping
qos: move ingress shaping to the end of the article
Diffstat (limited to 'docs')
-rw-r--r--docs/qos.rst62
1 files changed, 32 insertions, 30 deletions
diff --git a/docs/qos.rst b/docs/qos.rst
index c0266461..05e66ba4 100644
--- a/docs/qos.rst
+++ b/docs/qos.rst
@@ -1114,6 +1114,38 @@ A simple example of Shaper using priorities.
+Applying a traffic policy
+=========================
+
+Once a traffic-policy is created, you can apply it to an interface:
+
+.. code-block:: none
+
+ 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:
+
+.. 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 ethernet eth2 traffic-policy out LAN-OUT
+
+
+Getting queueing information
+----------------------------
+
+.. opcmd:: show queueing <interface-type> <interface-name>
+
+ Use this command to see the queueing information for an interface.
+ You will be able to see a packet counter (Sent, Dropped, Overlimit
+ and Backlog) per policy and class configured.
+
+
+
.. _ingress-shaping:
The case of ingress shaping
@@ -1146,36 +1178,6 @@ That is how it is possible to do the so-called "ingress shaping".
-Applying a traffic policy
-=========================
-
-Once a traffic-policy is created, you can apply it to an interface:
-
-.. code-block:: none
-
- 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:
-
-.. 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 ethernet eth2 traffic-policy out LAN-OUT
-
-
-Getting queueing information
-----------------------------
-
-.. opcmd:: show queueing <interface-type> <interface-name>
-
- Use this command to see the queueing information for an interface.
- You will be able to see a packet counter (Sent, Dropped, Overlimit
- and Backlog) per policy and class configured.
-
.. _that can give you a great deal of flexibility: https://blog.vyos.io/using-the-policy-route-and-packet-marking-for-custom-qos-matches
.. _tc: https://en.wikipedia.org/wiki/Tc_(Linux)