summaryrefslogtreecommitdiff
path: root/docs/_include
diff options
context:
space:
mode:
authorjack9603301 <jack9603301@163.com>2020-12-20 22:24:48 +0800
committerjack9603301 <jack9603301@163.com>2020-12-20 22:24:48 +0800
commit84ea67db630846210df983f4ab4cb966a550790a (patch)
treea4dc269b2c04529ed23a449f837ecb6d1b3b3b7a /docs/_include
parentd5c446635e17058bb736be6a6b08a70890bd8c5e (diff)
downloadvyos-documentation-84ea67db630846210df983f4ab4cb966a550790a.tar.gz
vyos-documentation-84ea67db630846210df983f4ab4cb966a550790a.zip
Examples of adding VLAN awareness and port mirroring
Diffstat (limited to 'docs/_include')
-rw-r--r--docs/_include/interface-mirror.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/_include/interface-mirror.txt b/docs/_include/interface-mirror.txt
index a3d12220..7903299a 100644
--- a/docs/_include/interface-mirror.txt
+++ b/docs/_include/interface-mirror.txt
@@ -12,11 +12,23 @@ for different traffic directions.
Configure port mirroring for `interface` inbound traffic and copy the
traffic to `monitor-interface`
+
+ Example: Mirror the inbound traffic of `{{ var1 }}` port to `eth2`
+
+ .. code-block:: none
+
+ set interfaces {{ var0 }} {{ var1 }} mirror ingress {{ var2 }}
.. cfgcmd:: set interfaces {{ var0 }} <interface> mirror egress
<monitor-interface>
Configure port mirroring for `interface` outbound traffic and copy the
traffic to `monitor-interface`
+
+ Example: Mirror the outbound traffic of `{{ var1 }}` port to `eth2`
+
+ .. code-block:: none
+
+ set interfaces {{ var0 }} {{ var1 }} mirror egress {{ var2 }}