Configuring SPAN and RSPAN
How to Configure SPAN and RSPAN
Command
4.
monitor session session_number
destination {interface interface-id [, | -]
[encapsulation replicate]}
5.
end
Creating a Local SPAN Session and Configuring Incoming Traffic
Command
1.
configure terminal
2.
no monitor session {session_number | all |
local | remote}
Purpose
Specifies the SPAN session and the destination port (monitoring
port).
session_number—Specifies the session number entered in step 3.
Note:
For local SPAN, you must use the same session number for the
source and destination interfaces.
interface-id—Specifies the destination port. The destination
interface must be a physical port; it cannot be an EtherChannel,
and it cannot be a VLAN.
(Optional) [, | -]—Specifies a series or range of interfaces. Enter
a space before and after the comma; enter a space before and
after the hyphen.
(Optional) encapsulation replicate—Specifies that the
destination interface replicates the source interface
encapsulation method. If not selected, the default is to send
packets in native form (untagged).
Note:
You can use monitor session session_number destination
command multiple times to configure multiple destination ports.
Returns to privileged EXEC mode.
Purpose
Enters global configuration mode.
Removes any existing SPAN configuration for the session.
476