Configuring Span - Cisco WS-C2948G-GE-TX Configuration Manual

Catalyst 4500 series switch
Table of Contents

Advertisement

Configuring SPAN

Configuring SPAN
To configure SPAN, perform this task in privileged mode:
Task
Step 1
Configure a SPAN source and a SPAN destination
port.
Step 2
Verify the SPAN configuration.
If the SPAN destination port is connected to another device and reception of incoming packets is enabled
Caution
by entering the inpkts enable keywords, the SPAN destination port receives traffic for the VLAN to
which the SPAN destination port belongs. However, the SPAN destination port does not participate in
spanning tree for that VLAN, so avoid creating network loops with the SPAN destination port.
This example shows how to configure SPAN so that both the transmit and receive traffic from port 2/4
(the SPAN source) is mirrored on port 3/6 (the SPAN destination):
Console> (enable) set span 2/4 3/6
Overwrote Port 3/6 to monitor transmit/receive traffic of Port 2/4
Incoming Packets disabled. Learning enabled.
Console> (enable) show span
Destination
Admin Source
Oper Source
Direction
Incoming Packets: disabled
Learning
Filter
Status
----------------------------------------------
Total local span sessions:
Console> (enable)
This example shows how to set VLAN 522 as the SPAN source and port 2/1 as the SPAN destination:
Console> (enable) set span 522 2/1
Overwrote Port 2/1 to monitor transmit/receive traffic of VLAN 522
Incoming Packets disabled. Learning enabled.
Console> (enable) show span
Destination
Admin Source
Oper Source
Direction
Incoming Packets: disabled
Learning
Filter
Status
----------------------------------------------
Total local span sessions:
Console> (enable)
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, and Catalyst 2980G Switches Software Configuration Guide—Release 8.2GLX
26-6
: Port 3/6
: Port 2/4
: None
: transmit/receive
: enabled
: -
: active
1
: Port 2/1
: VLAN 522
: Port 2/1-2
: transmit/receive
: enabled
: -
: active
1
Chapter 26
Configuring SPAN and RSPAN
Command
set span {src_mod/src_ports | src_vlan}
dest_mod/dest_port [rx | tx | both] [filter vlan]
[inpkts {enable | disable}] [learning {enable |
disable}] [create]
show span
78-15908-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents