summaryrefslogtreecommitdiff
path: root/docs/_include/interface-mirror.txt
diff options
context:
space:
mode:
authorjack9603301 <jack9603301@163.com>2020-12-09 16:53:33 +0800
committerjack9603301 <jack9603301@163.com>2020-12-09 16:53:33 +0800
commitdd2b63e441ce0d48ae1cbe8d1abac9e4d55c2465 (patch)
tree61f0e8bdd92ed8edd60bc37744f1f4e3b4627dac /docs/_include/interface-mirror.txt
parentfb9d298eb2fff6d77f3b50ec3a3639c32b5d4cbc (diff)
downloadvyos-documentation-dd2b63e441ce0d48ae1cbe8d1abac9e4d55c2465.tar.gz
vyos-documentation-dd2b63e441ce0d48ae1cbe8d1abac9e4d55c2465.zip
interface: mirror: Upload Port Mirror(SPAN) Document
Diffstat (limited to 'docs/_include/interface-mirror.txt')
-rw-r--r--docs/_include/interface-mirror.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/_include/interface-mirror.txt b/docs/_include/interface-mirror.txt
new file mode 100644
index 00000000..8cdbf77d
--- /dev/null
+++ b/docs/_include/interface-mirror.txt
@@ -0,0 +1,17 @@
+SPAN port mirroring can copy the inbound/outbound traffic of the interface to the
+specified interface, usually the interface can be connected to some special equipment,
+such as behavior control system, intrusion detection system and traffic collector,
+and can copy all related traffic from this port
+
+VyOS uses the `mirror` option to configure port mirroring. The configuration is divided
+into 2 different directions. Destination ports should be configured for different traffic directions.
+
+.. cfgcmd:: set interfaces {{ var0 }} <interface> mirror ingress <monitor-interface>
+
+ Configure port mirroring for `interface` inbound traffic and copy the traffic to `monitor-interface`
+
+.. cfgcmd:: set interfaces {{ var0 }} <interface> mirror egress <monitor-interface>
+
+ Configure port mirroring for `interface` outbound traffic and copy the traffic to `monitor-interface`
+
+