Configuring Span From The Cli - Cisco WS-X6066-SLB-APC - Content Switching Module Software Manual

Catalyst 6000 series software configuration guide
Hide thumbs Also See for WS-X6066-SLB-APC - Content Switching Module:
Table of Contents

Advertisement

Chapter 38
Configuring SPAN and RSPAN

Configuring SPAN from the CLI

To configure SPAN, you specify the source, the destination port, the direction of the traffic through the
source that you want to mirror to the destination port, and whether or not the destination port can receive
packets.
To configure a SPAN port, perform this task in privileged mode:
Task
Step 1
Configure the SPAN source and destination ports. set span {src_mod/src_ports | src_vlans | sc0}
Step 2
Verify the SPAN configuration.
If the SPAN destination port is connected to another device and you enable reception of incoming
Caution
packets (using the inpkts enable keywords), the SPAN destination port receives traffic for whatever
VLAN the SPAN destination port belongs to. However, the SPAN destination port does not
participate in spanning tree for that VLAN. Use caution when using the inpkts keyword to avoid
creating network loops with the SPAN destination port or assigning the SPAN destination port to an
unused VLAN.
This example shows how to configure SPAN so that both transmit and receive traffic from port 1/1 (the
SPAN source) is mirrored on port 2/1 (the SPAN destination):
Console> (enable) set span 1/1 2/1
Destination
Admin Source
Oper Source
Direction
Incoming Packets: disabled
Learning
Multicast
Filter
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
Destination
Admin Source
Oper Source
Direction
Incoming Packets: disabled
Learning
Multicast
Filter
Console> (enable)
This example shows how to set VLAN 522 as the SPAN source and port 2/12 as the SPAN destination.
Only transmit traffic is monitored. Normal incoming packets on the SPAN destination port are allowed.
Console> (enable) set span 522 2/12 tx inpkts enable
78-13315-02
: Port 2/1
: Port 1/1
: Port 1/1
: transmit/receive
: enabled
: enabled
: -
: Port 2/1
: VLAN 522
: Port 3/1-2
: transmit/receive
: enabled
: enabled
: -
Catalyst 6000 Family Software Configuration Guide—Releases 6.3 and 6.4
Command
{dest_mod/dest_port} [rx | tx | both] [inpkts
{enable | disable}] [learning {enable | disable}]
[multicast {enable | disable}]
[filter vlans...] [create]
show span
Configuring SPAN
38-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents