User Tools

Site Tools


eduardo:cisco:sw:sw-span

SPAN/RSPAN

SPAN on CATOS

  • SPAN on CATOS
! *** 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

SPAN on IOS

  • SPAN on IOS
! *** 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

RSPAN on CATOS

  • RSPAN on CATOS
    1. Configure RSPAN vlan
    2. Configure RSPAN source ports
    3. Configure RSPAN destination ports
  • OPTIONAL
    1. Trunking the RSPAN vlan if spanning multiple switches
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

RSPAN on IOS

  • RSPAN on IOS
    1. Configure RSPAN vlan
    2. Configure RSPAN source ports to span to RSPAN vlan
    3. Configure SPAN to source from RSPAN vlan
    4. Configure SPAN to destination ports
  • OPTIONAL
    1. Trunking the RSPAN vlan if spanning multiple switches
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
eduardo/cisco/sw/sw-span.txt · Last modified: 2024/02/23 08:20 by 127.0.0.1