<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Chirag on Medium]]></title>
        <description><![CDATA[Stories by Chirag on Medium]]></description>
        <link>https://medium.com/@chiragvaidya?source=rss-fad3d63e9ccb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*r4Jmoiu27a9cLiAd.jpeg</url>
            <title>Stories by Chirag on Medium</title>
            <link>https://medium.com/@chiragvaidya?source=rss-fad3d63e9ccb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 18:57:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chiragvaidya/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[SPAN — In SPAN, you create a SPAN source that consists of at least one port or at least one VLAN on…]]></title>
            <link>https://medium.com/@chiragvaidya/span-in-span-you-create-a-span-source-that-consists-of-at-least-one-port-or-at-least-one-vlan-on-8b50175b916a?source=rss-fad3d63e9ccb------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b50175b916a</guid>
            <dc:creator><![CDATA[Chirag]]></dc:creator>
            <pubDate>Thu, 10 Sep 2015 09:56:36 GMT</pubDate>
            <atom:updated>2015-09-10T09:56:36.985Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>SPAN</strong> — In SPAN, you create a SPAN source that consists of at least one port or at least one VLAN on a switch. On the same switch, you configure a destination port. The SPAN source data is then gathered and delivered to the SPAN destination.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/0*_UFonKSUrutpZweM.jpg" /></figure><p><strong><em>Basic SPAN Configuration Example</em></strong></p><p>MDF-ROC1# <strong>configure terminal</strong></p><p>MDF-ROC1(config)# <strong>monitor session 1 source interface fa0/12</strong></p><p>MDF-ROC1(config)# <strong>monitor session 1 destination interface fa0/24</strong></p><p><strong>Complex SPAN Configuration</strong></p><p>we configure a switch to send the following traffic to interface fa0/24, preserving the encapsulation from the sources:</p><p>¦ Received on interface fa0/18</p><p>¦ Sent on interface fa0/9</p><p>¦ Sent and received on interface fa0/19 (which is a trunk)</p><p>We also filter (remove) VLANs 1, 2, 3, and 229 from the traffic coming from the fa0/19 trunk port.</p><p>MDF-ROC3# <strong>config term</strong></p><p>MDF-ROC3(config)# <strong>monitor session 11 source interface fa0/18 rx</strong></p><p>MDF-ROC3(config)# <strong>monitor session 11 source interface fa0/9 tx</strong></p><p>MDF-ROC3(config)# <strong>monitor session 11 source interface fa0/19</strong></p><p>MDF-ROC3(config)# <strong>monitor session 11 filter vlan 1–3 , 229</strong></p><p>MDF-ROC3(config)# <strong>monitor session 11 destination interface fa0/24 encapsulation replicate</strong></p><p><strong>RSPAN</strong> — In RSPAN, you create the same source type — at least one port or at least one VLAN. The destination for this session is the RSPAN VLAN, rather than a single port on the switch. At the switch that contains an RSPAN destination port, the RSPAN VLAN data is delivered to the RSPAN port.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/0*FVAgmILlJ5dPrwpq.jpg" /></figure><p><strong>RSPAN Configuration</strong></p><p>we configure two switches, IDF-SYR1 and IDF-SYR2, to send traffic to RSPAN VLAN 199, which is delivered to port fa0/24 on switch MDF-SYR9 as follows:</p><p>¦ From IDF-SYR1, all traffic received on VLANs 66–68</p><p>¦ From IDF-SYR2, all traffic received on VLAN 9</p><p>¦ From IDF-SYR2, all traffic sent and received on VLAN 11</p><p>Note that all three switches use a different session ID, which is permissible in RSPAN. The only limitation on session numbering is that the session number must be 1 to 66.</p><p>IDF-SYR1# <strong>config term</strong></p><p>IDF-SYR1(config)# <strong>vlan 199</strong></p><p>IDF-SYR1(config-vlan)# <strong>remote span</strong></p><p>IDF-SYR1(config-vlan)# <strong>exit</strong></p><p>IDF-SYR1(config)# <strong>monitor session 3 source vlan 66–68 rx</strong></p><p>IDF-SYR1(config)# <strong>monitor session 3 destination remote vlan 199</strong></p><p>!Now moving to IDF-SYR2:</p><p>IDF-SYR2# <strong>config term</strong></p><p>IDF-SYR2(config)# <strong>vlan 199</strong></p><p>IDF-SYR2(config-vlan)# <strong>remote span</strong></p><p>IDF-SYR2(config-vlan)# <strong>exit</strong></p><p>IDF-SYR2(config)# <strong>monitor session 23 source vlan 9 rx</strong></p><p>IDF-SYR2(config)# <strong>monitor session 23 source vlan 11</strong></p><p>IDF-SYR2(config)# <strong>monitor session 23 destination remote vlan 199</strong></p><p>!Now moving to MDF-SYR9</p><p>MDF-SYR9# <strong>config term</strong></p><p>MDF-SYR9(config)# <strong>vlan 199</strong></p><p>MDF-SYR9(config-vlan)# <strong>remote span</strong></p><p>MDF-SYR9(config-vlan)# <strong>exit</strong></p><p>MDF-SYR9(config)# <strong>monitor session 63 source remote vlan 199</strong></p><p>MDF-SYR9(config)# <strong>monitor session 63 destination interface fa0/24</strong></p><p>MDF-SYR9(config)# <strong>end</strong></p><p><strong>ERSPAN</strong> — In ERSPAN, we are actually encapsulating the Remote SPAN information. Encapsulated Remote SPAN (ERSPAN), as the name implies, creates a generic routing encapsulation (GRE) tunnel for all captured traffic and allows it to be extended across Layer 3 domains.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/0*gVko7yhXrT_q57a5.jpg" /></figure><p><strong>ERSPAN Configuration</strong></p><p>we will configure ASR 1002 to capture received traffic and send to it to Catalyst 6509 Gig2/2/1. This traffic will simply be captured, encapsulated in GRE by ASR 1002 natively, and routed over to the Catalyst 6509. A sniffing station on the 6500 attached to GE2/2/1 will see the complete Ethernet frame (L2 to L7) information.</p><p>ASR1002(config)# <strong>monitor session 1 type erspan-source</strong></p><p>ASR1002(config-mon-erspan-src)# <strong>source interface gig0/1/0 rx</strong></p><p>ASR1002(config-mon-erspan-src)# <strong>no shutdown</strong></p><p>ASR1002(config-mon-erspan-src)# <strong>destination</strong></p><p>ASR1002(config-mon-erspan-src-dst)# <strong>erspan-id 101</strong></p><p>ASR1002(config-mon-erspan-src-dst)# <strong>ip address 10.1.1.1</strong></p><p>ASR1002(config-mon-erspan-src-dst)# <strong>origin ip address 172.16.1.1</strong></p><p>!Now for the configuration of the Catalyst 6500</p><p>SW6509(config)# <strong>monitor session 2 type erspan-destination</strong></p><p>SW6509(config-mon-erspan-dst)# <strong>destination interface gigabitEthernet2/2/1</strong></p><p>SW6509(config-mon-erspan-dst)# <strong>no shutdown</strong></p><p>SW6509(config-mon-erspan-dst)# <strong>source</strong></p><p>SW6509(config-mon-erspan-dst-src)# <strong>erspan-id 101</strong></p><p>SW6509(config-mon-erspan-dst-src)# <strong>ip address 10.1.1.1</strong></p><p><strong>Restrictions and Conditions</strong></p><p>Destination ports in SPAN, RSPAN, and ERSPAN have multiple restrictions. The key restrictions include the following:</p><p>¦ When you configure a destination port, its original configuration is overwritten.</p><p>If the SPAN configuration is removed, the original configuration on that port is restored.</p><p>¦ When you configure a destination port, the port is removed from any EtherChannel bundle if it were part of one. If it were a routed port, the SPAN destination configuration overrides the routed port configuration.</p><p>¦ Destination ports do not support port security, 802.1x authentication, or private VLANs. In general, SPAN/RSPAN and 802.1x are incompatible.</p><p>¦ Destination ports do not support any Layer 2 protocols, including CDP, Spanning Tree, VTP, DTP, and so on.</p><p>A set of similar restrictions for RSPAN destination VLANs also exists. See the references in the “Further Reading” section at the end of this chapter for more information about those restrictions.</p><p>SPAN, RSPAN, and ERSPAN require compliance with a number of specific conditions to work. For SPAN, the key restrictions include the following:</p><p>¦ The source can be either one or more ports or a VLAN, but not a mix of these.</p><p>¦ Up to 64 SPAN destination ports can be configured on a switch.</p><p>¦ Switched or routed ports can be configured as SPAN source ports or SPAN destination ports.</p><p>¦ Be careful to avoid overloading the SPAN destination port. A 100-Mbps source port can easily overload a 10-Mbps destination port; it’s even easier to overload a 100Mbps destination port when the source is a VLAN.</p><p>¦ Within a single SPAN session, you cannot deliver traffic to a destination port when it is sourced by a mix of SPAN, RSPAN, or ERSPAN source ports or VLANs. This restriction comes into play when you want to mirror traffic to both a local port on a switch (in SPAN) and a remote port on another switch (in RSPAN or ERSPAN mode).</p><p>¦ A SPAN destination port cannot be a source port, and a source port cannot be a destination port.</p><p>¦ Only one SPAN/RSPAN/ERSPAN session can send traffic to a single destination port.</p><p>¦ A SPAN destination port ceases to act as a normal switch port. That is, it passes only SPAN-related traffic.</p><p>¦ It’s possible to configure a trunk port as the source of a SPAN or RSPAN session. In this case, all VLANs on the trunk are monitored by default; the <strong>filter vlan</strong> command option can be configured to limit the VLANs being monitored in this situation.</p><p>¦ Traffic that is routed from another VLAN to a source VLAN cannot be monitored with SPAN. An easy way to understand this concept is that only traffic that enters or exits the switch in a source port or VLAN is forwarded in a SPAN session. In other words, if the traffic comes from another source within the switch (by routing from another VLAN, for example), that traffic isn’t forwarded through SPAN.</p><p>Note — From a troubleshooting standpoint, it’s important to note that if the destination port is shut down, the SPAN instance won’t come up. When you bring the port up, the SPAN session will follow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b50175b916a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>