Create SPAN session
=================================
9kswitch# conf t
9kswitch(config)# monitor session 1
Configure destination port (destination cannot be a FEX port or a Port-channel!)
=================================
9kswitch# conf t
9kswitch(config)# interface eth 1/15
9kswitch(config-if)# switchport monitor
9kswitch(config-if)# exit
9kswitch(config)# monitor session 1
9kswitch(config-monitor)# destination interface eth 1/15
Configure source port (or VLAN)
=================================
9kswitch(config-monitor)# source interface eth 1/10
9kswitch(config-monitor)# source interface eth 1/11
or
9kswitch(config-monitor)# source vlan x
Activate a SPAN session
==================================
9kswitch(config)# no monitor session 1 shut
Display SPAN session
==================================
9kswitch# show monitor
or
9kswitch# show monitor session 1
conf t
monitor session 1
exit
int eth 1/15
switchport monitor
exit
monitor session 1
destination int eth 1/15
source int eth 1/10
source int eth 1/11
exit
no monitor session 1 shut
Cisco Nexus 9000: Configuring SPAN