S e n d c o m m e n t s t o n e x u s 3 k - d o c f e e d b a c k @ c i s c o . c o m
-SM-320
Cisco Nexus 3000 Series NX-OS System Management Command Reference
OL-29557-04
Chapter System Management Commands
source (SPAN, ERSPAN)
source (SPAN, ERSPAN)
To add an Ethernet Switched Port Analyzer (SPAN) or an Encapsulated Remote Switched Port Analyzer
(ERSPAN) source port, use the
source
command. To remove the source SPAN or ERSPAN port, use the
no
form of this command.
source
{
interface
{
ethernet
slot
/
port
|
port-channel
channel-num
} [{
both
|
rx
|
tx
}] |
vlan
vlan-num
}
no source
{
interface
{
ethernet
slot
/
port
|
port-channel
channel-num
} |
vlan
vlan-num
}
Syntax Description
Command Default
None
Command Modes
SPAN session configuration mode
ERSPAN session configuration mode
Command History
Usage Guidelines
A source port (also called a
monitored port
) is a switched port that you monitor for network traffic
analysis. In a single local SPAN session, you can monitor source port traffic such as received (Rx),
transmitted (Tx), or bidirectional (both).
A source port can be an Ethernet port, port channel, SAN port channel, or a VLAN port. It cannot be a
destination port.
For ERSPAN, if you do not specify
both
,
rx
, or
tx
, the source traffic is analyzed for both directions.
interface
Specifies the interface type to use as the source SPAN port.
ethernet
slot
/
port
Specifies the IEEE 802.3z Ethernet interface to use as the source SPAN port.
The slot number is from 1 to 255 and the port number is from 1 to 128.
port-channel
channel-num
Specifies the EtherChannel interface to use as the source SPAN port. The
EtherChannel number is from 1 to 4096.
both
(Optional) Specifies both ingress and egress traffic on the source port.
Note
Applies to ERSPAN source port.
rx
(Optional) Specifies only ingress traffic on the source port.
Note
Applies to ERSPAN source port.
tx
(Optional) Specifies only egress traffic on the source port.
Note
Applies to ERSPAN source port.
vlan
vlan-num
Specifies the VLAN inteface to use as the source SPAN port. The range is
from 1 to 3967 and 4048 to 4093.
Release
Modification
5.0(3)U2(2)
This command was introduced.