2-552
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands
set span
set span
To enable or disable SPAN and to set up the switch port an d VLAN analyzer for multip le SPAN sessions,
use the set span command.
set span disable [dest_mod/dest_port | all]
set span {src_mod/src_ports | src_vlans | sc0} {dest_mod/dest_port} [rx | tx | both] [inpkts
{enable | disable}] [learning {enable | disable}] [multicast {enable | disable}]
[filter vlans...] [create]
Syntax Description
Defaults The default is SPAN is disabled, no VLAN filtering is enabled, multicast is enabled, input packets are
disabled, and learning is enabled.
Command Types Switch command.
Command Modes Privileged.
disable Disables SPAN.
dest_mod (Optional) Monitoring module (SPAN destination).
dest_port (Optional) Monitoring port (SPAN destination).
all (Optional) Disables all SPAN sessions.
src_mod Monitored module (SPAN source).
src_ports Monitored ports (SPAN source).
src_vlans Monitored VLANs (SPAN source).
sc0 Specifies the inband port is a valid source.
rx (Optional) Specifies that information received at the source (ingress
SPAN) is monitored.
tx (Optional) Specifies that information transmitted from the source (egress
SPAN) is monitored.
both (Optional) Specifies that information both transmitted from the source
(ingress SPAN) and received (egress SPAN) at the source are monitored.
inpkts enable (Optional ) Enable s the receiving of normal i nbound tra ffic on the SPAN
destination port.
inpkts disable (Optional) Disables the receiving of normal inbound traffic on the SPAN
destination port.
learning enable (Optional) Enables learning for the SPAN destination port.
learning disable (Optional) Disables learning for the SPAN destination port.
multicast enable (Optional) Enables monitoring multicast traffic (egress traffic only).
multicast disable (Optional) Disables monitoring multicast traffic (egress traffic only).
filter vlans (Optional) Monitors traffic on selected VLANs on source trunk ports.
create (Optional) Create a SPAN port.