User Tools

Site Tools


eduardo:cisco:sw:sw-span

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

eduardo:cisco:sw:sw-span [2010/07/26 12:07] – created eduardoeduardo:cisco:sw:sw-span [2024/02/23 08:20] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== SPAN/RSPAN ======
  
 +===== SPAN on CATOS =====
 +  * SPAN on CATOS
 +<code>
 +! *** Enable
 +Switch> (enable) set span {src-port | src-vlan} {dst-port} [rx|tx|both]
 +
 +! *** Disable
 +Switch> (enable) set span disable {dst-port}
 +
 +Switch> show span
 +</code>
 +
 +===== SPAN on IOS =====
 +  * SPAN on IOS
 +<code>
 +! *** Enable
 +Switch(config)# monitor session 1 source interface {src-ports} [rx|tx|both]
 +Switch(config)# monitor session 1 destination interface {dst-ports}
 +
 +Switch> show monitor
 +</code>
 +
 +===== RSPAN on CATOS =====
 +  * RSPAN on CATOS
 +    - Configure RSPAN vlan
 +    - Configure RSPAN source ports
 +    - Configure RSPAN destination ports
 +  * OPTIONAL
 +    - Trunking the RSPAN vlan if spanning multiple switches
 +
 +<code>
 +Switch> (enable) set vlan 500 rspan
 +Switch> (enable) set rspan source {src-ports | src-vlans} {rspan-vlan} {rx|tx|both}
 +Switch> (enable) set rspan destination {dst-ports} {rspan-vlan}
 +
 +! *** Disable
 +Switch> (enable) set rspan disable source {rspan-vlan|all}
 +Switch> (enable) set rspan disable destination {dst-ports|all}
 +
 +Switch> show span
 +</code>
 +
 +===== RSPAN on IOS =====
 +  * RSPAN on IOS
 +    - Configure RSPAN vlan
 +    - Configure RSPAN source ports to span to RSPAN vlan
 +    - Configure SPAN to source from RSPAN vlan 
 +    - Configure SPAN to destination ports
 +  * OPTIONAL
 +    - Trunking the RSPAN vlan if spanning multiple switches
 +
 +<code>
 +Switch(config)# vlan {rspan-vlan}
 +Switch(config-vlan)# remote-span
 +
 +Switch(config)# monitor session 1 source interface {src-ports} [rx|tx|both]
 +Switch(config)# monitor session 1 destination remote vlan {rspan-vlan}
 +
 +Switch(config)# monitor session 2 source remote vlan {rspan-vlan}
 +Switch(config)# monitor session 2 destination interface {dst-ports}
 +
 +Switch> show monitor
 +</code>