Cisco Nexus 5000 Series Switch CLI Software Configuration Guide, NX-OS 4.0(1a)N1 (OL-16597-01, January 2009)

Send feedback to nx5000-docfeedback@cisco.com
49-5
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 49 Configuring SPAN
Configuring SPAN
The following example shows configuring an Ethernet SPAN destination port:
switch# configure terminal
switch(config)# interface fc 2/4
switch(config-if)# switchport mode SD
switch(config-if)# switchport speed 1000
switch(config-if)# exit
switch(config)# monitor session 2
switch(config-monitor)# destination interface fc 2/4
Configuring Source Ports
You can configure the source ports for a SPAN session. The source ports can be Ethernet, Fibre Channel,
or virtual Fibre Channel ports.
To configure the source ports for a SPAN session, perform this task:
The following example shows configuring an Ethernet SPAN source port:
switch# configure terminal
switch(config)# monitor session 2
switch(config-monitor)# source interface ethernet 1/16
The following example shows configuring a Fibre Channel SPAN source port:
...
switch(config-monitor)# source interface fc 2/1
The following example shows configuring a virtual Fibre Channel SPAN source port:
...
switch(config-monitor)# source interface vfc 129
Configuring Source Port Channels, VLANs, or VSANs
You can configure the source channels for a SPAN session. These ports can be port channels, SAN port
channels, VLANs, and VSANs. The monitored direction can only be ingress and applies to all physical
ports in the group.
Command Purpose
switch(config-monitor)# source interface
type slot/port [rx | tx | both]
Configures sources and the traffic direction in which
to duplicate packets. You can enter a range of
Ethernet, Fibre Channel, or virtual Fibre Channel
ports. You can specify the traffic direction to
duplicate as ingress (rx), egress (tx), or both. By
default, the direction is both.