{"id":6353,"date":"2026-05-04T12:10:31","date_gmt":"2026-05-04T12:10:31","guid":{"rendered":"http:\/\/docs.connexite.co.uk\/index.php\/docs\/connexite-documentation\/synapse-cli-documentation\/cli-configuring-span\/"},"modified":"2026-05-04T12:19:08","modified_gmt":"2026-05-04T12:19:08","slug":"cli-configuring-span","status":"publish","type":"docs","link":"https:\/\/docs.connexite.co.uk\/index.php\/docs\/network\/synapse-cli-documentation\/cli-configuring-span\/","title":{"rendered":"Configuring SPAN"},"content":{"rendered":"<h2 class=\"connexite-doc-h2\">Overview of SPAN<\/h2>\n<p>You can analyze network traffic passing through ports by using SPAN\uff08Local Switched Port Analyzer\uff09to send a copy of the traffic to another port on the switch that has been connected to a network analyzer or other monitoring or security device. SPAN copies traffic received or sent (or both) on source ports to a destination port for analysis. SPAN does not affect the switching of network traffic on the source ports. You must dedicate the destination port for SPAN use. Except for traffic that is required for the SPAN session, destination ports do not receive or forward traffic.<\/p>\n<h2 class=\"connexite-doc-h2\">Example of SPAN configuration<\/h2>\n<p>SPAN supports a session entirely within one switch. all source ports and destination ports are in the same switch. SPAN sessions allow you to monitor traffic on one or more ports, and send the monitored traffic to only one destination port. A SPAN session is an association of a destination port with source ports, all on a single network device.<\/p>\n<h2 class=\"connexite-doc-h2\">Configuring<\/h2>\n<ul class=\"connexite-doc-list\">\n<li>Creating a Session<\/li>\n<\/ul>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config)#monitor session SESSION-ID<\/code><\/pre>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config)#no monitor session SESSION-ID<\/code><\/pre>\n<p class=\"connexite-doc-command-desc\">Create a SPAN session. For session_number, the range is 1 to 7<\/p>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config-monitor)#description DESC<\/code><\/pre>\n<p class=\"connexite-doc-command-desc\">Add a description (up to 64 characters) for an interface<\/p>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config-monitor)#source interface IFNAME {both | rx | tx}<\/code><\/pre>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config-monitor)#no source interface IFNAME {both | rx | tx}<\/code><\/pre>\n<p class=\"connexite-doc-command-desc\">Specify the SPAN session and the source port.<\/p>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config-monitor)#destination interface IFNAME<\/code><\/pre>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config-monitor)#no destination interface IFNAME<\/code><\/pre>\n<p class=\"connexite-doc-command-desc\">Specify the SPAN session and the destination port.<\/p>\n<h2 class=\"connexite-doc-h2\">Examples<\/h2>\n<p>Example 1\uff1a This example shows how to create SPAN session, and configure session source interfaces and destination interface. Step 1: Create session.<\/p>\n<pre class=\"connexite-doc-command\"><code>SWITCH#configure terminal<\/code><\/pre>\n<p class=\"connexite-doc-command-desc\">Enter configuration commands, one per line. End with CNTL\/Z.<\/p>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config)#monitor session 1<\/code><\/pre>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config-monitor)#<\/code><\/pre>\n<p class=\"connexite-doc-command-desc\">Step 2: Configuring session description.<\/p>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config-monitor)#description TRAFFIC_MONITOR<\/code><\/pre>\n<p class=\"connexite-doc-command-desc\">Step 3: Configuring session source interfaces.<\/p>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config-monitor)#source interface gigabitEthernet0\/1 rx<\/code><\/pre>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config-monitor)#source interface gigabitEthernet0\/2 both<\/code><\/pre>\n<p class=\"connexite-doc-command-desc\">Step 4: Configuring session destination interface.<\/p>\n<pre class=\"connexite-doc-command\"><code>SWITCH(config-monitor)#destination interface gigabitEthernet0\/8<\/code><\/pre>\n<h2 class=\"connexite-doc-h2\">Display information<\/h2>\n<ul class=\"connexite-doc-list\">\n<li>Display Single Session<\/li>\n<\/ul>\n<pre class=\"connexite-doc-command\"><code>SWITCH#show monitor session 1<\/code><\/pre>\n<p class=\"connexite-doc-command-desc\">session 1 &#8212;&#8212;&#8212;&#8212;&#8212; description : TRAFFIC_MONITOR type : local source intf : tx : gigabitEthernet0\/2 rx : gigabitEthernet0\/1 gigabitEthernet0\/2 both : gigabitEthernet0\/2 source VLANs : rx : destination ports : gigabitEthernet0\/8 Legend: f = forwarding enabled, l = learning enabled<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Networking \u203a Switching \u203a Edge \u203a Synapse<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":6349,"menu_order":4,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[115,119,116],"class_list":["post-6353","docs","type-docs","status-publish","hentry","doc_tag-connexite","doc_tag-network","doc_tag-synapse-cli-documentation","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.connexite.co.uk\/index.php\/wp-json\/wp\/v2\/docs\/6353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.connexite.co.uk\/index.php\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/docs.connexite.co.uk\/index.php\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/docs.connexite.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.connexite.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=6353"}],"version-history":[{"count":1,"href":"https:\/\/docs.connexite.co.uk\/index.php\/wp-json\/wp\/v2\/docs\/6353\/revisions"}],"predecessor-version":[{"id":6401,"href":"https:\/\/docs.connexite.co.uk\/index.php\/wp-json\/wp\/v2\/docs\/6353\/revisions\/6401"}],"up":[{"embeddable":true,"href":"https:\/\/docs.connexite.co.uk\/index.php\/wp-json\/wp\/v2\/docs\/6349"}],"wp:attachment":[{"href":"https:\/\/docs.connexite.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=6353"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/docs.connexite.co.uk\/index.php\/wp-json\/wp\/v2\/doc_tag?post=6353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}